https://retellai.com/?utm_source=discord&utm_medium=seo logo
, What is the best way to work with many\multi-rec...
# ❓・ai-evy-support
s
@AI Evy , What is the best way to work with many\multi-record databases? What type of flow (Conversation Flow Agent\Single Prompt Agent\Multi-Prompt Agent? Where is the best place to store records so that searching is quick and efficient?
a
Thanks for tagging me @smartbizznes_88831. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, here's guidance on choosing the right agent type for working with multi-record databases: Choosing the Right Agent Type: For complex database interactions requiring structured logic and branching paths, Conversation Flow Agent is recommended [(1) ]() . This agent type provides the most control over dialogue paths and allows you to create intricate conversation structures [(2) ]() . It's particularly beneficial when you need to handle multiple database queries with conditional logic [(1) ]() . Key benefits of Conversation Flow for database work: - Structured conversations with defined exact paths and transitions - Predictable behavior where each node has specific logic and outcomes - Support for conditional branching and state management - Function nodes that can trigger API calls to your database [(3) ]() Alternative Options: - **Multi-Prompt Agent**: Suitable if you need to handle multiple topics or tasks within a single session, combining several prompts into a structured tree [(2) ]() . This works when database interactions follow a more linear pattern [(4) ]() . - **Single Prompt Agent**: Best for straightforward, quick database lookups where minimal interaction is needed [(2) ]() . However, it may lead to hallucinations as complexity increases . **Databa
se Storage Recommendations:** The documentation doesn't provide specific guidance on where to store records for optimal search performance with Retell AI. The platform focuses on the conversational interface rather than database architecture. You would typically integrate your existing database through Function Nodes (for Conversation Flow) or custom functions, which can trigger API calls to retrieve data [(3) ]() [(1) ]() . For specific database integration patterns and performance optimization, I'd recommend reaching out to Retell AI support or checking their GitHub for implementation examples. Would you like more details about setting up Function Nodes for database queries? **
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[3] Inside Retell AI | The Conversational AI Platform Behind Scalable AI Phone Systems | Retell AI](https://www.retellai.com/blog/inside-retell-ai-conversational-ai-phone-system) [[4] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.