I need to pass to the tool some data from the AI Agent. Like, “task name” and “task tags” to create a task via Custom Workflow Tool.
So I don’t know what to refer to in the Extra Inputs. Because this data is coming from the Agent response. In Flowise, these inputs are defined separately as variables like $task_name, and then I can use them. What should I write here?
If the tool function and params are described well enough, the AI model will generate the parameters on its own and pass it to the tool as “query”. I’ve noticed a common misunderstanding that “Extra Workflow Inputs” are required to make the Agent use the tool but that’s not really true.
Sorry, couldn’t apply this scheme for Custom Workflow Tools as was in my post. There’s no code window. And when you have several parameters to pass (not 1 like in your example), you can’t just use the “query” parameter - it is single, while there are several parameters.
Ah ok. If you can provide a small example, that would help.
I’ve attached an alternate version of the previous example but with the custom workflow tool. Also I’ve just noticed that you can specify input schema now to custom workflow tools which makes it a lot easier.
Edit: The input schema doesn’t show up in the preview but does if you import it into the n8n.
Thank you. But still can’t understand how to pass parameters
Please see the example. Here I want to add a task. And for that AI Agent must extract “task name” and “task tags” from the request and pass it to the Tool. Please see the expected input in the Set node. And I don’t understand how to put in the Tool this data.
Your prompt was task-oriented and not goal-oriented, which may have been why the AI failed to recognise that you wanted to create a task in notion. My advice is don’t tell the AI “how to do it” (eg. what params to pass) but instead prefer “what to do” (eg. create a task in notion).
There’s a certain degree of trust you have to give if working with AI Agents!
Recommend upgrading to the latest version of n8n to get input schema option for workflow code tool.
Super interesting topic, thanks for all that !
I also understand that this new agent would need, for my usage at least, some parameters for binaries also provided from the previous agent node !
I’m on latest, 1.42.1. The 1.44.1 version is “next”.
Can’t figure out how to set the input schema. There’s no such a setting in the Tool. The documentation just mentions it but doesn’t show how to find this.
I copied your example and applied your request. I get this: