gateway/modules/workflows/processing/shared/automationTemplateInitial.json

66 lines
2.3 KiB
JSON

{
"template":
{
"overview": "Automated workflow task",
"tasks": [
{
"id": "Task01",
"title": "Main Task",
"description": "Execute automated workflow",
"objective": "Execute automated workflow",
"actionList": [
{
"execMethod": "ai",
"execAction": "webResearch",
"execParameters": {
"prompt": "{{KEY:webResearchPrompt}}",
"list(url)": ["{{KEY:webResearchUrl}}"]
},
"execResultLabel": "web_research_results"
},
{
"execMethod": "sharepoint",
"execAction": "listDocuments",
"execParameters": {
"connectionReference": "{{KEY:connectionName}}",
"pathQuery": "{{KEY:sharepointFolderNameSource}}"
},
"execResultLabel": "sharepoint_source_path"
},
{
"execMethod": "sharepoint",
"execAction": "readDocuments",
"execParameters": {
"connectionReference": "{{KEY:connectionName}}",
"documentList": ["sharepoint_source_path"],
"pathQuery": "{{KEY:sharepointFolderNameSource}}"
},
"execResultLabel": "sharepoint_source_documents"
},
{
"execMethod": "sharepoint",
"execAction": "uploadDocument",
"execParameters": {
"connectionReference": "{{KEY:connectionName}}",
"documentList": ["sharepoint_source_documents","web_research_results"],
"pathQuery": "{{KEY:sharepointFolderNameDestination}}",
"fileNames": ["report.docx"]
},
"execResultLabel": "sharepoint_upload_documents"
}
]
}
]
}
,
"parameters":
{
"connectionName": "connection:msft:p.motsch@valueon.ch",
"webResearchUrl": "https://www.valueon.ch",
"webResearchPrompt": "Wer arbeitet bei ValueOn AG in der Schweiz und was machen die?",
"PromptSharepointSource": "Fasse die Dokumente in einer Liste zusammen",
"sharepointFolderNameSource": "/site:Company Share/Freigegebene Dokumente/15. Persoenliche Ordner/Patrick Motsch/input",
"sharepointFolderNameDestination": "/site:Company Share/Freigegebene Dokumente/15. Persoenliche Ordner/Patrick Motsch/output",
"PromptDeliverable": "Erstelle mir einen Word Bericht der Webanalyse und der Dokumente im Sharepoint"
}
}