https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i autoamtically create multi prompt agents or ...
# ❓・ai-evy-support
c
@AI Evy can i autoamtically create multi prompt agents or Conversation agents using webhook, apis and paramethers? without the need of any manual input/edit in retell?
a
Thanks for tagging me @clientnexus_71205. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can programmatically create both multi-prompt agents and Conversation Flow agents using Retell AI's APIs without any manual input in the dashboard. [(1) ]() For Conversation Flow agents, use the Create Conversation Flow API. Here's an example:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
 model_choice: { model: 'gpt-4.1', type: 'cascading' },
 nodes: [
 {
 id: 'start',
 instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
 type: 'conversation',
 },
 ],
 start_speaker: 'agent',
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
For Chat agents (which can use multi-prompt via Retell LLM) , use the Create Chat Agent API. [(2) ]() You can attach a Response Engine that contains your LLM configuration, including multi-prompt states. The API allows you to define: -
response_engine
with your LLM configuration -
agent_name
for identification -
webhook_url
for event handling - Dynamic variables and analysis settings You can also dynamically override agent behavior per call using webhooks with
override_agent_id
. [(8) ]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Create Chat Agent](https://docs.retellai.com/api-references/create-chat-agent) ​
c
@AI Evy what is the core differences between this two and the best use cases and cenarios?
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
### Answer --- The core differences between Conversation Flow agents and Multi-Prompt agents (Single/Multi Prompt agents) are in structure, control, and flexibility: [(1) ]() Conversation Flow agents: - Use multiple nodes to handle different scenarios - Provide fine-grained control over conversation paths - Enable predictable behavior with specific logic per node - Support complex scenario handling with conditional branching and state management - Allow node-specific fine-tuning with examples - Take longer to set up but are easier to maintain with more stable and predictable performance Multi-Prompt agents (Single/Multi Prompt) : - More flexible and natural handling of varied user behavior [(2) ]() - Less structured approach compared to Conversation Flow [(1) ]() Best use cases: Conversation Flow is ideal when you need: - Structured conversations with exact paths - Predictable outcomes - Complex scenario handling - Fine-grained control over the flow Flex Mode (a hybrid approach) combines both: [(2) ]() - Conversation Flow's clear, visual business logic - Single Prompt Agent's flexible, natural handling of varied user behavior - Allows easy context switching between different tasks - Can handle multiple tasks completed simultaneously - Can resume previous tasks without repeating completed steps Use Flex Mode when you want the clarity of a flowchart for business steps but need the freedom of a single prompt for dynamic task handling. --- **
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Flex Mode](https://docs.retellai.com/build/conversation-flow/flex-mode) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy give me real life examples with type of agents, like receptionist, sales, sdrs and indsutries and which ones will be better for each agent, conversational and multi prompt
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
### Answer --- Based on the available sources, here are real-world examples and recommendations for different agent types: Single/Multi Prompt Agents - Best For: Simple Receptionist/After-Hours Agents: [(1) ]() - Simple, straightforward conversations - Quick prototypes and testing - Agents with 1-3 functions - Linear conversation flows When to Avoid Single Prompt: As complexity increases, single prompt agents may experience behavioral drift, function calling issues, maintenance challenges, and context confusion . Consider using conversation flow or multi-prompt when your single prompt exceeds 1000 words or uses more than 5 functions . Multi-Prompt Agents - Best For: Lead Qualification/SDR Agents: The sources provide a specific example for lead qualification with multi-prompt structure : State 1: Lead Qualification - Gather customer information - Validate requirements - No appointment booking functions available State 2: Appointment Scheduling - Only accessible after qualification complete - Booking functions enabled - Context from qualification available Benefits for Sales/SDR Use Cases: - Predictable behavior with clear, focused purpose for each state - Easier debugging with issues isolated to specific states - Better function control with tools available only when appropriate - Scalable design allowing new states without affecting existing ones Conversation Flow Agents - Best For: Complex Sales/Healthcare/Multi-Step Processes: [(2) ]() - Structured conversations with exact paths and transitions - Predictable behavior with specific logic and outcomes - Complex scenario handling with conditional branching and state management - Fine-tuning capabilities with node-specifi
c examples Flex Mode - Best For: Dynamic Sales/Customer Service: [(3) ]() Flex Mode combines conversation flow structure with single prompt flexibility . Use when you need: - Easy context switching between different tasks (e.g., every node would become global node) - Ability to move to the proper task if the user completed multiple tasks at the same time - Resume previous tasks without repeating already completed steps Important Limitation: If you use flex mode for more than 20 nodes, performance might degrade and agent might have higher hallucination risk . The sources recommend splitting into smaller components . --- **
​ To learn more, see the sources I considered: [[1] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Flex Mode](https://docs.retellai.com/build/conversation-flow/flex-mode) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy how can i get phone numbers that are not us/canada? only by sip trunk?
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- ### Answer Yes, for phone numbers outside the US/Canada, you'll need to use Elastic SIP Trunking to connect your custom telephony provider. [(1) ]() How it works: 1. Set up SIP trunking with your telephony provider that supports your desired region 2. Configure your number to point to the SIP trunk 3. Import the number to Retell using the termination SIP URI from your provider Supported telephony providers with guides: - Twilio [(2) ]() - Telnyx [(3) ]() - Vonage [(1) ]() Retell's SIP server details: - URI:
sip:sip.retellai.com
- IP block for traffic:
18.98.16.120/30
(All regions) ,
143.223.88.0/21
(US only) ,
161.115.160.0/19
(US only) Transport methods supported: - TCP (Recommended) :
sip:sip.retellai.com;transport=tcp
- UDP:
sip:sip.retellai.com;transport=udp
- TLS:
sip:sip.retellai.com;transport=tls
Once imported via SIP trunking, your international numbers will support all Retell telephony features (assuming your provider supports them) . [(1) ]() [(4) ]() --- **
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] SIP TRUNK](https://discord.com/channels/1186424376300679209/1301537823438147704) [[4] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) ​