My ai agent is does not work when it uses a tool

Describe the problem/error/question

What is the error message (if any)?

Cannot read properties of undefined (reading ‘0’)

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Body_Shady

I think you missed the Agent node in your workflow? Also, which version of n8n are you on?
We had a couple of bug fixes regarding the Agent and using Tools. Can you make sure you are on the latest version and then see if you are still getting any errors?

Please provide screenshots as well - that will help the debug process.

Thank You!