I created a simple Telegram bot using n8n. And inside this workflow in the AI Agent tool, I added Google Tasks. So, I marked some tasks as completed, but when I asked about that list of all completed tasks, it responded that no completed tasks were found! I tried many times to clearly say to check but same result!
But when I say to list all tasks or ask something about it, its answer is correct. Other things are alright.
I did the filter option on “show completed” but its not work still!.
When the workflow exciting the process, all nodes work perfectly and just the final node where to send Telegraph message, its showing “bad request error”
I assume its Bad request - Please check your parameters error from the Telegram node. If so, could you share the Telegram node with us? A screenshot, or preferably its code.
It seems to be related to the system prompt. Explicitly tell the agent that it can use the same tool to list completed tasks by defining the corresponding parameters.
You can prompt ChatGPT to write a clear system prompt for your agent. If that doesnt help, try changing the model to a smarter one.
Now, I tried gpt 4.1 mini and also other provider models, but still can’t provide me the completed task! Its always replying “You have 0 completed tasks at the moment.” Although I mentioned to for completed task.