Subagent todo

Hi everyone, I am stuck with my Task sub-agent. To put it simply, I have a super agent that manages my sub-agents. (tasks, calendar, email, contacts) I have a problem only with the task part. When I test my sub-agent workflow, it works. However, when I ask it to list the tasks to do from the super agent, I get an error.

Normalize the input structure from the Super Agent before calling the Task sub-agent using a Set node. Ensure it matches the exact JSON schema the Task agent expects when run standalone. Also, confirm all required fields (like system message variables) are defined and not null.

The task subflow works on its own, but it fails from the super-agent because it doesn’t know when or how to invoke it correctly. The key is to configure a clear system prompt in the main Agent node so that it knows how to use the appropriate tool/sub-agent and pass the expected parameters. Review the ToolWorkflow to ensure it receives and responds correctly with data, and add additional verification nodes if necessary.

You should do something similar within the system prompt so that the agent can use the tools correctly:

You are the master agent. You have a sub-agent called "Task Agent" that manages tasks. When the user requests to list pending tasks, you must call the subagent using the following format:

{
"tool": "Task Agent",
"input": {
"action": "listTasks",
"userId": "<user ID>",
"dueDateFrom": "<optional date>"
}
}

Return to the user only the response provided by the subagent. Do not process anything directly.