https://discord.gg/botpress logo
Improving Reliability of Autonomous Node Responses...
# 🤝help
q
Hi everyone, I'm working with an autonomous node that helps users choose the most suitable product from our internal product database. However, around 3 out of 10 interactions fail — the agent either hallucinates, repeats a previously sent product card, or incorrectly answers product-specific follow-up questions. What’s supposed to happen: 1. The agent asks the user relevant questions to understand their needs. 2. It selects one ideal product using our database (not from the catalog). 3. It sends a WhatsApp card with the selected product. 4. If the user asks for more details, the agent should answer — not resend the card. - Unfortunately, what often happens is: - The agent sends the same card again when the user asks for more info. Or it gives inaccurate or hallucinated answers. To be clear, in the image you can see the exact instruction prompt I gave to the agent, fully translated: I'm looking for advice on: How to connect or chain two autonomous nodes (e.g., one for reasoning, one for verification or filtering). Techniques or architectures that help vet the quality of responses before sending them. Whether a scoring mechanism, rule-based filter, or a second LLM could help as a safety net. Any ideas, examples, or tools would be greatly appreciated. Thanks in advance! https://cdn.discordapp.com/attachments/1370105681650258001/1370105682157899886/Captura_de_pantalla_2025-05-08_143009.png?ex=681e49d9&is=681cf859&hm=342a5f40735d929d44e4593bf1f92edb64b7a732795f503e9beb6f4d33515c58&
p
Hi! 1.How to connect or chain two autonomous nodes (e.g., one for reasoning, one for verification or filtering). You can use a transition with label/expression {{workflow.ProductosPorComprar.length > 0}} for example. Now, in terms of quality assurance, my recommendation is to use a more explicit approach that avoids the use of autonomous nodes. You could have an choice card that let's the user pick whether they have more questions or not. If so, query the knowledge base with the product sent (could be stored in a variable) and return the answer. Hope this helps!
q
Thanks you, @prehistoric-airplane-85682! 🙂
p
No problem :))
r
I have same proble with you @quaint-agent-70318 , the answer is not correct or lack of information even using query KB or Autonomous Node, then I tried to train an Open AI Assistant (both use the same model GPT 4o mini), the result is much better. So my recommend is using OpenAI Assistant for your Data and intergrated into Botpress for your bot. The disavantage is that it tooks longer for an answer (timeout sometime > 30s)
q
Thanks you!
Hello Leanne! I hope you're doing well. I've been trying this expression: {{workflow.ProductosPorComprar.length > 0}}. The condition label shows that the expression is true, but the flow still doesn't transition to the next autonomous node. I'm not sure why it's not working.
p
Did you add in your AN instructions something like "when you've gathered workflow.ProductosPorComprar transition to the next node? Something else that can be done is using a different workflow for which there would be an input variable ProductosPor Comprar. This means before transitioning to that workflow, the AN has to provide the variable.
2 Views