incredible_swan_16923
08/19/2025, 11:42 PMAI Evy
08/19/2025, 11:42 PMAI Evy
08/19/2025, 11:42 PMretell_llm_dynamic_variables field when using the Create Phone Call API :
json
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}
You could add email addresses as dynamic variables in a similar format.
For more specific guidance on email integration, I'd recommend checking these resources:
- [Contact Sales]()
- [)
Would you like me to provide a general answer about dynamic email addressing approaches instead?AI Evy
08/19/2025, 11:42 PMAI Evy
08/19/2025, 11:42 PMincredible_swan_16923
08/19/2025, 11:43 PMincredible_swan_16923
08/19/2025, 11:44 PMAI Evy
08/19/2025, 11:44 PMAI Evy
08/19/2025, 11:44 PMjson
{
"customer_email": "customer@example.com",
"backup_email": "support@company.com",
"notification_type": "order_confirmation"
}
### 2. Tool/Function Integration
Create a custom tool or function that:
- Accepts email addresses as parameters
- Handles email composition and sending
- Uses your preferred email service (SendGrid, AWS SES, etc.)
### 3. Dynamic Email Selection Logic
Implement logic to choose the appropriate email address based on:
- Customer preferences stored in your CRM
- Call context or conversation flow
- Fallback addresses for different scenarios
### 4. Email Template Personalization
Use the collected dynamic variables to personalize email content:
- Customer name and details
- Specific products or services discussed
- Call summary or next steps
### Best Practices
- Validate email addresses before sending
- Implement error handling for failed sends
- Log email activities for tracking
- Consider email deliverability and compliance requirements
- Use appropriate email templates for different scenarios
This approach allows you to leverage conversation data to send targeted, personalized emails to the right recipients based on the call context.AI Evy
08/19/2025, 11:44 PMAI Evy
08/19/2025, 11:44 PMincredible_swan_16923
08/20/2025, 2:58 AMAI Evy
08/20/2025, 2:58 AMAI Evy
08/20/2025, 2:58 AMretell_llm_dynamic_variables field [(1) ]() :
json
{
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
You could include email addresses here if you can identify the caller by their phone number.
## 2. Collect Information During the Call
For cases where caller details aren't available initially, you can use function/tool calls during the conversation [(2) ]() . The bot can ask for and collect an account number or registered phone number, then call a function that fetches user details including email addresses .
## 3. Use Custom Functions for Dynamic Data
You can create custom functions that:
- Accept caller information as parameters
- Look up email addresses from your CRM/database
- Return the email data to be used during the call
The function/tool call should return the user details, which you can then use during the call .
## 4. Inbound-Specific Variables
For inbound calls, you have access to system variables like:
- {{user_number}} - the caller's phone number [(3) ]()
- {{direction}} - will be "inbound"
These can help identify the caller and retrieve their email address from your systems.
The key difference from outbound calls is that for inbound calls, you typically need to either pre-populate variables when the call is registered or collect the information dynamically during the conversation using custom functions.AI Evy
08/20/2025, 2:58 AMAI Evy
08/20/2025, 2:58 AM