Vano
08/15/2025, 5:20 PMAI Evy
08/15/2025, 5:20 PMAI Evy
08/15/2025, 5:20 PM- {{current_step}} != "reservation_in_progress"
- {{user_location}} == "New York"
3. Add Transition Fine-tune Examples
If you're experiencing incorrect transitions, you can add transition finetune examples to improve the model's decision-making . This helps the agent better understand when to trigger the global node versus staying in the current flow.
4. Consider Node-Specific Logic
Remember that if what the user said can be handled by a global node, the agent will transition to the global node, otherwise it will stay in the current node . You might need to structure your flow so that certain nodes have their own handling for reservation-related queries.
The key is making your global node condition more specific to the exact scenarios where you want the interruption to occur, rather than having it trigger on any mention of reservations or food orders.AI Evy
08/15/2025, 5:20 PMAI Evy
08/15/2025, 5:20 PMVano
08/15/2025, 5:23 PMAI Evy
08/15/2025, 5:23 PMAI Evy
08/15/2025, 5:23 PMGlobal Node checkbox and setting a condition for when the global node should be transitioned to [(1) ]() . This is where you would add your more specific condition instead of the broad "User wants to make a reservation or place a food order."
2. In Transition Conditions
For equation-based conditions using dynamic variables, you add these in the transition conditions section [(2) ]() . You can access this by clicking on the node and then clicking on the "+" button for adding a transition condition .
The equation conditions would look like this:
{{current_step}} != "reservation_in_progress"
{{user_location}} == "New York"
{{current_time}} > 9 AND {{current_time}} < 18
Where to Find These Settings:
- **Global Node checkbox**: In the node settings panel when you select your node [(1) ]()
- **Transition conditions**: Click on the bottom part of the node to add edges and transition conditions [(3) ]()
- **Equation editor**: When adding equation conditions, this opens an equation editor where you can add, delete, and reorder equations [(2) ]()
Note that equation conditions are evaluated first, then prompt conditions, and equation conditions are evaluated from top to bottom .AI Evy
08/15/2025, 5:23 PMAI Evy
08/15/2025, 5:23 PMVano
08/15/2025, 5:26 PMAI Evy
08/15/2025, 5:26 PMAI Evy
08/15/2025, 5:26 PMcurrent_step to "reservation_in_progress", you need to use dynamic variables [(1) ]() . Dynamic variables can be set in two ways:
1. Pass it when starting the call
You can pass dynamic variables when initiating the call through the API .
2. Extract it during the call using Extract DV Node
You can use an Extract DV Node to set dynamic variables during the conversation flow [(2) ]() . The Extract DV Node is specifically designed to extract and set dynamic variables based on information gathered during the call .
Where to implement this:
- Add an Extract DV Node in your conversation flow where you want to mark that a reservation is in progress
- Configure the Extract DV Node to set {{current_step}} to "reservation_in_progress"
- Place this node at the point in your flow where the reservation process begins
Then use it in your Global Node condition:
Once you have the dynamic variable set, you can use it in your Global Node's transition condition with an equation like:
{{current_step}} != "reservation_in_progress"
[(3) ]()
This equation condition will prevent the Global Node from triggering when current_step equals "reservation_in_progress" . Remember that equation conditions are evaluated first, before prompt conditions .AI Evy
08/15/2025, 5:26 PMAI Evy
08/15/2025, 5:26 PMVano
08/15/2025, 5:35 PMAI Evy
08/15/2025, 5:35 PMAI Evy
08/15/2025, 5:35 PMText, Number, Enum, or Boolean
For your specific case:
- Variable Name: current_step
- Description: "Current step in the reservation process"
- Variable Type: Text
- The node will extract and set this to "reservation_in_progress" when the user enters the reservation flow
Variable Types available:
- Text - Any word or sentence. Examples: "headache", "John Smith"
- Number - A numeric value. Examples: 42, 98.6
- Enum - A value from a predefined list. Examples: "Yes", "No", "Maybe"
- Boolean - True or false
The Extract Dynamic Variable Node is specifically designed to extract information from conversation and store them as dynamic variables . Once set, you can reference this variable using {{current_step}} in your transition conditions.AI Evy
08/15/2025, 5:35 PMAI Evy
08/15/2025, 5:36 PMVano
08/15/2025, 5:37 PMAI Evy
08/15/2025, 5:37 PMAI Evy
08/15/2025, 5:37 PMcurrent_step to "reservation_in_progress":
You need to configure the Extract Dynamic Variable tool to recognize when to set this value . Here's how:
1. Add the Extract Dynamic Variable Tool
2. Configure the variable:
- **Variable Name**: current_step
- **Description**: "Current step in reservation process"
- **Variable Type**: Text
3. Update the prompt to specify when to extract:
When user states they want to make a reservation, please extract the information by calling the `extract_current_step` function and set current_step to "reservation_in_progress".
For the transition condition:
Once the dynamic variable is set, you use it in your Global Node's transition condition with an equation like [(2) ]() :
{{current_step}} != "reservation_in_progress"
This equation condition will be evaluated first (before prompt conditions) and will prevent the Global Node from triggering when the reservation is already in progress .
Key point: The system extracts the variable based on the conversation context and your prompt instructions - it's not automatic, but based on when the LLM determines the extraction condition is met [(1) ]() .AI Evy
08/15/2025, 5:37 PMAI Evy
08/15/2025, 5:38 PMVano
08/15/2025, 5:42 PMAI Evy
08/15/2025, 5:42 PMAI Evy
08/15/2025, 5:42 PMcurrent_step is "reservation_in_progress", you need to set up a transition condition on your Global Node [(1) ]() .
Configure the Global Node condition:
1. Select your Global Node and check the Global Node checkbox in the node settings
2. Set the transition condition to include an equation that prevents triggering when the reservation is in progress
The condition should be something like:
{{current_step}} != "reservation_in_progress"
How this works:
When you set a node to be a global node by checking the Global Node checkbox, you need to set a condition for when the global node should be transitioned to . By adding the equation condition {{current_step}} != "reservation_in_progress", the global node will only trigger when the current step is NOT equal to "reservation_in_progress" .
Important note about Global Nodes:
Global nodes are designed to handle universal scenarios that are not specific to any other node, and they can be transitioned to from everywhere . However, with your equation condition in place, the global node will be blocked from triggering whenever your dynamic variable current_step equals "reservation_in_progress".
Since global nodes can be transitioned to from anywhere and do not necessarily need to be connected to the rest of the graph , this equation-based condition gives you the control you need to prevent unwanted interruptions during your reservation flow.AI Evy
08/15/2025, 5:42 PMAI Evy
08/15/2025, 5:42 PMVano
08/15/2025, 5:43 PMVano
08/15/2025, 5:43 PMAI Evy
08/15/2025, 5:43 PMAI Evy
08/15/2025, 5:43 PMGlobal Node checkbox in the node settings .
The location is:
- Select your Global Node
- Check the Global Node checkbox in the node settings
- Set the condition in the same node settings area
The condition you want would be something like:
When user indicates this is not a good time to talk AND {{current_step}} != "reservation_in_progress"
This is different from regular edge transition conditions - for Global Nodes, the condition is set directly in the node settings when you enable the Global Node checkbox . Since global nodes can be transitioned to from anywhere, they don't necessarily need to be connected to the rest of the graph .AI Evy
08/15/2025, 5:43 PMAI Evy
08/15/2025, 5:43 PMVano
08/15/2025, 5:48 PMAI Evy
08/15/2025, 5:48 PMAI Evy
08/15/2025, 5:49 PMcurrent_step variable . For Conversation, Function, and Press Digit Nodes, you can define conditions to transition out of the node .
Setting up the transition:
After setting the variable to "reservation_in_progress", you'll want the conversation to continue to the next logical step in your reservation process. You can add a transition condition like:
User has provided reservation request details
Types of transition conditions available:
You have two options for transition conditions :
- **Prompt**: The condition is a prompt that is evaluated by the LLM
- **Equation**: The condition is a mathematical equation that is hardcoded
For your case, a prompt-based condition would work well, such as:
- "User wants to proceed with making a reservation"
- "User has indicated they want to book a table"
Important note:
All equation conditions are evaluated first, and then the prompt conditions are evaluated . If no transition condition is met, the agent will transition to the next node .
The key is to set up a clear transition condition that moves the conversation forward to the next step in your reservation process after the variable has been set.AI Evy
08/15/2025, 5:49 PMAI Evy
08/15/2025, 5:49 PMVano
08/15/2025, 6:06 PMAI Evy
08/15/2025, 6:06 PMAI Evy
08/15/2025, 6:06 PMNPM install
3. Configure your credentials - you need to fill in your API key and agent ID in the demo
4. Get your Agent ID from the Retell AI dashboard
5. Run the frontend with NPM starts
Backend Requirements:
You'll also need a backend to provide LLM answers to the server . The process involves:
1. Setting up a local backend with WebSocket support
2. Using ngrok to create a production URL that forwards requests to your localhost
3. Configuring the WebSocket URL in your Retell AI dashboard
API Reference:
For comprehensive integration options, all available APIs are listed in the Retell AI API documentation [(2) ]() .
Deployment:
Once you have both components working locally, you'll need to deploy your backend and integrate the code into your frontend [(1) ]() .
The sources show a working example where the voice agent can be embedded directly into a web interface, allowing users to interact with your AI agent through their browser .AI Evy
08/15/2025, 6:06 PMAI Evy
08/15/2025, 6:06 PMVano
08/15/2025, 7:01 PMAI Evy
08/15/2025, 7:01 PMAI Evy
08/15/2025, 7:01 PMAI Evy
08/15/2025, 7:01 PM"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
- "16b980523634a6dc504898cda492e939"
API Key format:
The API key is used in the Authorization header with the "Bearer" prefix [(2) ]() . The format is:
"Bearer YOUR_RETELL_API_KEY"
In code examples:
When used in the Retell SDK, they appear like this [(1) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
Key points:
- Agent IDs do NOT have an "agent_" prefix - they're just alphanumeric strings
- API keys do NOT have a "key_" prefix - they're used directly or with "Bearer " in headers [(2) ]()
- Both are found in your Retell AI dashboardAI Evy
08/15/2025, 7:01 PMVano
08/15/2025, 7:02 PMAI Evy
08/15/2025, 7:02 PMAI Evy
08/15/2025, 7:02 PMAI Evy
08/15/2025, 7:02 PMAuthorization: Bearer YOUR_API_KEY
In the JavaScript SDK, you use it directly without any prefix [(2) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
The API key is just the raw key value - no "key_" prefix is needed or expected [(1) ]() .AI Evy
08/15/2025, 7:02 PMVano
08/15/2025, 7:34 PMAI Evy
08/15/2025, 7:34 PMAI Evy
08/15/2025, 7:34 PMeleven_turbo_v2
- eleven_flash_v2
- eleven_turbo_v2_5
- eleven_flash_v2_5
- eleven_multilingual_v2
2. Voice Temperature - Controls voice stability, ranging from [0,2] . Lower values mean more stable speech, higher values mean more variant speech generation. This setting only applies to 11labs voices .
3. Voice Speed - Controls speech rate, ranging from [0.5,2] . Lower values mean slower speech, higher values mean faster speech rate .
4. Volume - Controls agent volume, ranging from [0,2] . Lower values mean quieter speech, higher values mean louder speech .
Important Notes:
- The Voice Temperature in Retell AI is based on ElevenLabs's stability setting, but is not exactly equal to it [(2) ]() .
- Retell AI does not currently expose all ElevenLabs API settings like speaker style, similarity, and speaker boost .
- You can create custom voices and import them [(3) ]() .
Subscription Requirements:
The sources don't specify subscription requirements for voice settings configuration. You can configure these settings through the Retell AI dashboard [(4) ]() [(5) ]() or via the API [(1) ]() .
**ConfiguratiAI Evy
08/15/2025, 7:34 PMAI Evy
08/15/2025, 7:34 PMVano
08/15/2025, 7:35 PMAI Evy
08/15/2025, 7:35 PMAI Evy
08/15/2025, 7:36 PMeleven_turbo_v2
- eleven_flash_v2
- eleven_turbo_v2_5
- eleven_flash_v2_5
- eleven_multilingual_v2
2. Voice Temperature - Controls voice stability, ranging from [0,2] . Lower values mean more stable speech, higher values mean more variant speech generation.
3. Voice Speed - Controls speech rate, ranging from [0.5,2] . Lower values mean slower speech, higher values mean faster speech rate.
4. Volume - Controls agent volume, ranging from [0,2] . Lower values mean quieter speech, higher values mean louder speech.
You can also change these settings in the dashboard:
- Through the global settings configuration [(2) ]() [(3) ]()
- In the speech settings section where you can configure voice model, voice temperature, voice speed, and volume
Important note from the community: There's a known issue when switching voice models via API - you may need to send voice settings in a separate API call to properly reset the voice model before changing the voice ID [(4) ]() .
What specific voice setting would you like to modify?AI Evy
08/15/2025, 7:36 PMvoice_model parameter elevenlabs_turbo_v2_5](https://discord.com/channels/1186424376300679209/1367836412778512545)
AI Evy
08/15/2025, 7:36 PMVano
08/15/2025, 7:36 PMAI Evy
08/15/2025, 7:36 PMAI Evy
08/15/2025, 7:36 PMeleven_turbo_v2, eleven_flash_v2, eleven_turbo_v2_5, eleven_flash_v2_5, eleven_multilingual_v2
- Voice Temperature - Controls voice stability, ranging from [0,2], which is based on ElevenLabs's stability setting but not exactly equal to it
- Voice Speed - Controls speech rate, ranging from [0.5,2]
- Volume - Controls agent volume, ranging from [0,2]
Style exaggeration, along with other ElevenLabs settings like speaker style and similarity boost, are not currently configurable through Retell AI's interface. However, you can create your own custom voice and import it [(4) ]() , which might allow you to pre-configure certain characteristics before importing into Retell AI.AI Evy
08/15/2025, 7:36 PMAI Evy
08/15/2025, 7:36 PMVano
08/15/2025, 7:39 PMAI Evy
08/15/2025, 7:39 PMAI Evy
08/15/2025, 7:39 PMAI Evy
08/15/2025, 7:40 PMAI Evy
08/15/2025, 7:40 PMVano
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:53 PMVano
08/15/2025, 7:56 PMAI Evy
08/15/2025, 7:56 PMAI Evy
08/15/2025, 7:57 PMAI Evy
08/15/2025, 7:57 PMAI Evy
08/15/2025, 7:57 PMAI Evy
08/15/2025, 7:57 PM