https://retellai.com/?utm_source=discord&utm_medium=seo logo
why would the cal
# ❓・ai-evy-support
p
@AI Evy why would the cal.com functions fail in the single prompt agent and work in the conversation flow agent?
a
Thanks for tagging me @pag0295. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there are several key differences between single prompt agents and conversation flow agents that could explain why cal.com functions might fail in one but work in the other: **Function Calling Control**: Conversation Flow Agents handle function calls in a deterministic manner, while Single/Multi Prompt Agents require explicit instructions in the prompt about when to call tools [(1) ]() . For single prompt agents, it's important to write in the prompt when to call the tool to ensure accurate tool calling . **Complexity Management**: When prompt logic gets complicated and a lot of tools are involved, it's quite easy for LLM to make a wrong decision in single prompt agents . Conversation flow provides more fine-grained control over the conversation flow compared to single prompt agents, which unlocks the ability to handle more complex scenarios [(2) ]() . **Hallucination Prevention**: Conversation flow addresses critical issues such as hallucinations by implementing a constrained framework that establishes clearer guidelines for responses [(3) ]() . This built-in ultra-guidance mechanism ensures more accurate and reliable responses [(4) ]() . **Structured Approach**: Conversation flow allows you to create multiple nodes to handle different scenarios in the conversation, providing more fine-grained control compared to single prompt agents [(2) ]() . Each node defines a small set of logic with clear transition conditions . For single prompt agents specifically, you need to
explicitly write when to call tools in your prompt and refer to the tool by its name to ensure accurate tool calling [(1) ]() . If your cal.com functions are working in conversation flow but failing in single prompt, you likely need to add more explicit instructions about when and how to call these functions in your single prompt agent's configuration.
​ To learn more, see the sources I considered: [[1] General prompt engineering guide](https://docs.retellai.com/build/prompt-engineering-guide) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] New Conversation Flow Agent, Bot Builders Office Hour](https://www.retellai.com/changelog/new-conversation-flow-agent-bot-builders-office-hour) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.