manucmt_18551
09/06/2025, 5:31 PMAI Evy
09/06/2025, 5:31 PMAI Evy
09/06/2025, 5:31 PMjson
"default_dynamic_variables": {
"customer_name": "John Doe"
}
## In Your Prompts
You can also reference static values directly in your prompts using the {{variable_name}} syntax [(1) ]() . For your example, you could set up:
- A default dynamic variable called userRequest with the value "Call back request"
- Then reference it in your prompt as {{userRequest}}
The agent will use your static default value unless a different value is provided in the API call through the retell_llm_dynamic_variables field .AI Evy
09/06/2025, 5:31 PMAI Evy
09/06/2025, 5:31 PMmanucmt_18551
09/06/2025, 5:36 PMAI Evy
09/06/2025, 5:36 PMAI Evy
09/06/2025, 5:36 PMuserRequest = 'Call back request', you can:
1. Add an Extract Variables node after your desired transition
2. Set a variable (like userRequest) with a static value rather than prompting it to extract from conversation context
3. Use this variable throughout your flow or in subsequent nodes
## Variable Scope
These variables appear to be accessible throughout your conversation flow, as the discussion mentions being able to use them later and reference them in Logic split nodes for directing flow to different nodes based on the variable values .
This approach gives you more control over when and how variables are set during the conversation flow, rather than relying only on default values or API-passed variables.AI Evy
09/06/2025, 5:36 PMAI Evy
09/06/2025, 5:36 PMmanucmt_18551
09/06/2025, 5:39 PMAI Evy
09/06/2025, 5:39 PMAI Evy
09/06/2025, 5:39 PMuserRequest
2. **Value**: Directly assign the static value to the variable
For your specific example of userRequest = 'Call back request', you would:
- Set the Variable Name to userRequest [(2) ]()
- Set the Description to something like "Set static value for user request type"
- Choose Variable Type as Text
- Configure it to assign the static value 'Call back request' directly
The Extract Dynamic Variable node is designed to extract information from conversation and store them as dynamic variables, but it's noted that it's not intended for having a conversation with the user . This makes it suitable for setting static values that don't require user interaction.
You can then reference this variable later in your flow using the {{userRequest}} syntax [(3) ]() .AI Evy
09/06/2025, 5:39 PMAI Evy
09/06/2025, 5:39 PM