Im trying to get the agent to use the call workflow tool that calls a workflow agent that manages my goolge tasks. When is run the main agent using the test workflow button it works fine, but when i change the status to active and send a request for any task related query i will get the error “Node cannot be used as a tool”.
Im not sure why as the call workflow node is an ai agent tool?
Information on your n8n setup
- n8n version: 1.79.3
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Railway
- Operating system: win 11
Hey @RubenG ,
I’ve simplified your workflow to test it quickly and I was able to make it work.
Please take a look:
.
You can use that as reference to adjust your workflow.
If my reply answers your question, please remember to mark it as a solution.
I’ve also noticed you are not using $fromAI to make the AI generate specific queries to your sub-workflow.
And your sub-workflow doesn’t receive any specific input data.
Was that intentional?
Good day gmsalomao2, thank you for the reply. the issue is I cannot include the whole workflow or the sub-workflow as they platform says I’m using more than the character limit. I might have found the issue last night while testing, It seems that the issue is with the google task tool node in the sub-workflow. i removed it and used airtable as the task management tool in the sub-workflow and the “node cannot be used as a tool” error went away.
I have also just used the sub-workflow with Telegram directly and then I also get weird responses, unless using it in a test environment then it works fine. Im starting to think the google task tool has some bug.