Describe the problem/error/question
The AI Agent is unable to use multiple tools to finish the task asked by the user.
As indicated by the screenshot, the workflow is using three tools, which are:
- Get UDAS Admin Users
- Get UDAS request created by Users
- Construct the UDAS url
And the user query is: “What are the urls of the OPEN UDAS requests from current UDAS admin user?”. To answer this question, it requires AI Agent to call these three tools in a row, using the output of previous tool as the input of the current tool. However, it seems the AI Agent can only call ONE tool at a time:
But the interesting part is, the input to the tool being called contains the correct reasoning:
{
"query": {
"request_ids": "[get_udas_request_created_by_user(email=get_current_udas_admin_user_info()['email'], status='OPEN')['request_ids']]"
}
}
The sequence to call the tools are correct, but it seems the AI Agent failed to call multiple tools continuously to complete the task. What is the best solution to this issue?
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)
Information on your n8n setup
- n8n version: 1.88.0
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Apple Silicon OS