Need help n8n

Good evening,

I am developing an automation flow in n8n, structured as an intelligent agent intended to serve a kindergarten. This agent is responsible for essential functions such as:

  • FAQ: answering general questions about the school;

  • SDR: meeting new interested parties and convincing them to schedule a visit to the school;

  • Scheduling visits;

  • Consultations on financial matters;

  • Consultations on students’ academic performance, among others.

Initially, our flow was performing its functions well. However, we recently noticed that the agent began to present “hallucinations”, failing to correctly recognize which tools (such as other agents, internal memory or database queries) it should use to respond to the various requests.

We are unsure whether the problem is related to the prompt used or whether concentrating all calls to other agents in a single orchestrator is the best approach. We would like to ask for your help to review the current configuration of the flow, identify the source of these hallucinations and ensure that the agent correctly uses the necessary tools to achieve the desired results.

Could you help us with this review?

Thank you in advance for your attention!

1 Like

Hi @Plinio_Mundim

Your use case should be achievable with n8n agents. Here’s a few thoughts.

  1. Are you using a vector store like supabase or connecting tools to the agent directly?
  2. In the system message, you may want to include language like "If a question is asked that is not in the data we gave you, answer that you dont know instead of making somethign up.
  3. You may want to use multiple agents for smaller tasks. Agents work best if they have a very specialized task to do. Think if of them like an employee. You wouldn’t have one employee do all tasks. With AI Agents, you might want to have an agent who decides which agent would be best to answer the question , and funnel the workflow to that agent. Then have each agent do a task using one of the tools. Keep it as simple as you can for each agent.

:heart:If this response helped you, please click the heart to show that it is useful

You can upload your workflow here if you want some more feedback. Here’s a gif on how to do that.

pasteworkflow