gateway/modules/workflows/processing/shared/automationTemplateInitial.json
2025-11-03 00:14:02 +01:00

80 lines
2.6 KiB
JSON

{
"overview": "Automated workflow: Web research, SharePoint data extraction, and document generation",
"userMessage": "Execute automated workflow: research web, extract SharePoint data, and generate document",
"tasks": [
{
"id": "task_1",
"objective": "Perform web research using provided URL and prompt to gather information",
"dependencies": [],
"successCriteria": [
"Web research completed successfully",
"Research results saved as web_research_response"
],
"estimatedComplexity": "medium",
"userMessage": "Researching web for information",
"actionList": [
{
"execMethod": "ai",
"execAction": "webResearch",
"execParameters": {
"prompt": "{{KEY:webResearchPrompt}}",
"list(url)": ["{{KEY:webResearchUrl}}"]
},
"execResultLabel": "web_research_response"
}
]
},
{
"id": "task_2",
"objective": "Extract data from files in SharePoint directory using provided folder path and prompt",
"dependencies": ["task_1"],
"successCriteria": [
"SharePoint files read successfully",
"Data extracted and saved as sharepoint_data"
],
"estimatedComplexity": "medium",
"userMessage": "Extracting data from SharePoint files",
"actionList": [
{
"execMethod": "sharepoint",
"execAction": "readDocuments",
"execParameters": {
"connectionReference": "{{KEY:connectionName}}",
"pathQuery": "{{KEY:sharepointFolderNameSource}}",
"documentList": [],
"includeMetadata": true
},
"execResultLabel": "sharepoint_data"
}
]
},
{
"id": "task_3",
"objective": "Generate document using web research results and SharePoint data with provided prompt",
"dependencies": ["task_1", "task_2"],
"successCriteria": [
"Document generated successfully",
"Document combines web research and SharePoint data",
"Document saved as result_data"
],
"estimatedComplexity": "high",
"userMessage": "Generating final document",
"actionList": [
{
"execMethod": "ai",
"execAction": "process",
"execParameters": {
"prompt": "{{KEY:documentPrompt}}",
"documentList": [
"web_research_response",
"sharepoint_data"
],
"outputExtension": ".docx"
},
"execResultLabel": "result_data"
}
]
}
]
}