newdawnagencies_09124
10/31/2025, 11:31 PMAI Evy
10/31/2025, 11:31 PMAI Evy
10/31/2025, 11:31 PM{{current_time}} dynamic variable before triggering calendar functions . Include this in your prompt before both check_calendar_availability and book_appointment functions so the AI knows the current date and time .
Verify timezone consistency - ensure the timezone in your Retell function call matches the timezone configured in Cal.com .
Add timezone context to your prompt - explicitly mention that current_time tells the AI the current date and time so it can convert timezones accordingly . Also consider asking the user for their timezone before checking availability .
Check for AM/PM formatting issues - there was a bug where availability times were incorrectly showing all times as AM instead of properly distinguishing AM/PM slots [(2) ]() . This has been fixed, but ensure you're on the latest version.
If you continue experiencing issues after implementing these fixes, you may want to check the detailed call logs to see if the system is sending time ranges that are in the past, which would explain the "no available slots" error [(1) ]() .AI Evy
10/31/2025, 11:31 PMAI Evy
10/31/2025, 11:31 PMnewdawnagencies_09124
11/01/2025, 5:47 PMAI Evy
11/01/2025, 5:47 PMAI Evy
11/01/2025, 5:47 PMAI Evy
11/01/2025, 5:47 PMAI Evy
11/01/2025, 5:47 PMnewdawnagencies_09124
11/04/2025, 12:23 PMAI Evy
11/04/2025, 12:23 PMAI Evy
11/04/2025, 12:23 PMfirst_name in your CSV, you can reference it as {{first_name}} .
For individual outbound calls via API, you can use retell_llm_dynamic_variables to inject dynamic data into your prompts [(2) ]() . For example:
javascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
retell_llm_dynamic_variables: {
name: 'John Doe',
blood_group: 'B+'
}
}) ;
The sources indicate that dynamic variables can be used to personalize interactions using CRM or scheduling data in real time [(3) ]() , but the specific mechanism for using CSV column data as dynamic variables in Conversation Flow nodes during batch calls isn't explicitly documented in the available sources.
I'd recommend checking out these potentially useful sources:
- [Create Batch calls]()
- [Outbound Calls (Make Calls) ]()
Would you like me to provide a general answer based on common patterns for similar systems?AI Evy
11/04/2025, 12:23 PMAI Evy
11/04/2025, 12:23 PMnewdawnagencies_09124
11/04/2025, 12:24 PMAI Evy
11/04/2025, 12:24 PMAI Evy
11/04/2025, 12:25 PM{{first_name}}, add a column header named first_name .
You can download the CSV template by clicking "Download the template" in the batch call interface .
2. Create the Batch Call
Navigate to the Batch Call tab in your Retell AI workspace and click "Create Batch Call" .
3. Configure Call Details
- Provide a unique name for the batch call
- Select the "From Number" from the dropdown menu
- Ensure the number is bound to agents to enable batch calls
4. Upload Your CSV
Drag and drop your CSV file (up to 50 MB) into the Upload Recipients section . The system will read your custom column headers as dynamic variables.
5. Use Dynamic Variables in Your Agent
In your agent's prompts, begin message, or tool configurations, reference the CSV columns using the {{variable_name}} syntax [(2) ]() . For example, if your CSV has a first_name column, use {{first_name}} in your first node message like: "Hey, is this {{first_name}}?"
Dynamic variables work in prompts, begin messages, tool configurations, and call handling settings .
6. Send or Schedule
Choose "Send Now" to start calls immediately or "Schedule" for a future time [(1) ]() .AI Evy
11/04/2025, 12:25 PMAI Evy
11/04/2025, 12:25 PMnewdawnagencies_09124
11/04/2025, 12:37 PMAI Evy
11/04/2025, 12:38 PMAI Evy
11/04/2025, 12:38 PM+7034864870 is not being recognized as valid E.164 format. However, this number appears to be correctly formatted for a US number (country code +1 is implied for 703 area code) .
The issue: The number is missing the country code. The correct E.164 format should be +17034864870 (not +7034864870) [(1) ]() .
E.164 format requirements:
- Must start with a + sign
- Include the country code (e.g., 1 for US)
- Include the area code and local number
- No spaces, dashes, or parentheses
To fix your batch call CSV:
Update your CSV file so the phone number column contains +17034864870 instead of +7034864870 [(2) ]() .
If you're using custom telephony with non-standard numbers:
If you need to dial internal or pseudo numbers that don't follow E.164 format, you can add a column to your CSV called ignore e164 validation with the value true [(2) ]() [(3) ]() . This only applies when using custom telephony and does not work with Retell Telephony [(2) ]() [(1) ]() .
Example CSV format:
phone number,first_name,ignore e164 validation
+17034864870,John,false
Make sure all phone numbers in your CSV include the proper country code prefix.AI Evy
11/04/2025, 12:38 PMAI Evy
11/04/2025, 12:38 PMnewdawnagencies_09124
11/05/2025, 6:42 PMAI Evy
11/05/2025, 6:42 PMAI Evy
11/05/2025, 6:42 PM+17034864870)
- A SIP URI in the format sip:username@domain (e.g., sip:user@retellai.com)
- A dynamic variable that gets substituted at runtime
3. Update Your Prompt - Add instructions to your agent's prompt about when to transfer, such as: "If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent."
4. Choose Transfer Type :
- **Cold transfer**: The call is transferred directly to the destination number
- **Warm transfer**: The AI agent can detect if the other side is human, leave private messages, do a three-way introduction, etc.
5. *Configure Caller ID (Optional) * - Choose whether the transfer destination sees the Retell agent's number or the user's number .
Note: This feature only works during phone calls, not web calls, and is available for Retell numbers and imported numbers .AI Evy
11/05/2025, 6:42 PMAI Evy
11/05/2025, 6:42 PMnewdawnagencies_09124
11/05/2025, 10:13 PMAI Evy
11/05/2025, 10:13 PMAI Evy
11/05/2025, 10:13 PMAI Evy
11/05/2025, 10:13 PMgpt-5
- gpt-5-mini
- gpt-5-nano
- gpt-4o
- gpt-4o-mini
- gpt-4.1
- gpt-4.1-mini
- gpt-4.1-nano
- claude-3.7-sonnet
- claude-3.5-haiku
- gemini-2.0-flash
- gemini-2.0-flash-lite
- gemini-2.5-flash
- gemini-2.5-flash-lite
The default model is gpt-4.1 if not specified .
For prompt engineering best practices, the Prompt Engineering Guide recommends: [(3) ]()
- Breaking prompts into focused sections
- Using markdown language for better LLM understanding
- Being concise and conversational
- Using explicit tool calling instructions
For knowledge bases, you can add content from: [(4) ]()
- Website URLs
- Documents (.pdf, .docx, .txt, etc.)
- Custom text snippets
The knowledge base will automatically chunk, embed, and retrieve relevant information during calls .
If you're asking which ChatGPT to use as a helper tool for writing your prompts (outside of Retell) , that's not covered in the Retell AI documentation. Would you like me to provide a general answer based on common practices?
**AI Evy
11/05/2025, 10:13 PMnewdawnagencies_09124
11/05/2025, 11:12 PMAI Evy
11/05/2025, 11:12 PMAI Evy
11/05/2025, 11:13 PM{{current_time}} Dynamic Variable
Include {{current_time}} in your prompt before both check_calendar_availability and book_appointment functions so the AI knows the current date and time. This helps prevent the AI from checking times that are in the past.
5. Sequential Function Calling
Structure your agent to follow this sequence:
- Check availability first
- Present available slots to the user
- Only after user confirms a specific slot, call book appointment
6. Consider Multi-Prompt for Complex Scenarios
If you need to handle rescheduling and cancellations in addition to booking, a Multi-Prompt agent may make more sense to keep the scope right and prevent conflicts [(3) ]() .
By implementingAI Evy
11/05/2025, 11:13 PMAI Evy
11/05/2025, 11:13 PMAI Evy
11/05/2025, 11:13 PMnewdawnagencies_09124
11/05/2025, 11:23 PMnewdawnagencies_09124
11/05/2025, 11:23 PMAI Evy
11/05/2025, 11:23 PMAI Evy
11/05/2025, 11:23 PMAI Evy
11/05/2025, 11:23 PMAI Evy
11/05/2025, 11:23 PMnewdawnagencies_09124
11/05/2025, 11:24 PMnewdawnagencies_09124
11/05/2025, 11:25 PMAI Evy
11/05/2025, 11:25 PMAI Evy
11/05/2025, 11:25 PMjson
{
"properties": {
"booking": {
"id": "abc123",
"startTime": "2025-11-10T14:00:00Z",
"attendees": [{"name": "John Doe"}]
}
}
}
3. Create a Cancellation Custom Function
Build a second custom function that accepts the booking ID as a parameter and calls the Cal.com reschedule/cancel API endpoint . Define parameters using JSON schema format :
json
{
"type": "object",
"properties": {
"booking_id": {
"type": "string",
"description": "The unique ID of the booking to cancel"
},
"cancellation_reason": {
"type": "string",
"description": "Reason for cancellation"
}
},
"required": ["booking_id"]
}AI Evy
11/05/2025, 11:25 PM{{current_time}} dynamic variable to ensure accurate time comparisons
- The booking ID (UID) must be used as the request parameter when calling the cancellation endpoint
- Ensure timezone consistency between Retell and Cal.com configurations
This approach allows your bot to intelligently look up appointments by name/email, confirm the details with the patient, and then execute the cancellation using the retrieved booking ID.
---
**AI Evy
11/05/2025, 11:25 PMAI Evy
11/05/2025, 11:25 PMnewdawnagencies_09124
11/06/2025, 11:47 PMAI Evy
11/06/2025, 11:47 PMAI Evy
11/06/2025, 11:48 PMAI Evy
11/06/2025, 11:48 PMAI Evy
11/06/2025, 11:48 PMnewdawnagencies_09124
11/07/2025, 2:20 PMAI Evy
11/07/2025, 2:20 PMAI Evy
11/07/2025, 2:20 PMAI Evy
11/07/2025, 2:21 PMAI Evy
11/07/2025, 2:21 PMAI Evy
11/07/2025, 2:25 PMnewdawnagencies_09124
11/07/2025, 2:26 PMAI Evy
11/07/2025, 2:26 PMAI Evy
11/07/2025, 2:27 PMAI Evy
11/07/2025, 2:27 PMAI Evy
11/07/2025, 2:27 PMnewdawnagencies_09124
11/07/2025, 2:29 PMAI Evy
11/07/2025, 2:29 PMAI Evy
11/07/2025, 2:29 PMAI Evy
11/07/2025, 2:29 PMAI Evy
11/07/2025, 2:29 PMnewdawnagencies_09124
11/07/2025, 2:32 PMAI Evy
11/07/2025, 2:32 PMAI Evy
11/07/2025, 2:33 PMcreate_invoice
- **Description**: Create and send an invoice for dental services
Step 3: Configure the HTTP Request
Set up your custom function :
- **HTTP Method**: POST
- **Endpoint URL**: Your invoicing platform's API endpoint (e.g., `
- **Headers**: Add authentication (API key or OAuth token)
Step 4: Define Parameters
Use JSON schema format to define what information the agent needs to collect [(1) ]() [(2) ]() [(4) ]() :AI Evy
11/07/2025, 2:33 PMjson
{
"type": "object",
"properties": {
"patient_name": {
"type": "string",
"description": "Full name of the patient"
},
"patient_email": {
"type": "string",
"description": "Patient's email address"
},
"service_description": {
"type": "string",
"description": "Description of dental services provided"
},
"amount": {
"type": "number",
"description": "Total invoice amount in dollars"
},
"appointment_date": {
"type": "string",
"description": "Date of the appointment"
}
},
"required": ["patient_name", "patient_email", "service_description", "amount"]
}newdawnagencies_09124
11/07/2025, 2:33 PMAI Evy
11/07/2025, 2:33 PM{{invoice_id}}
- Save the invoice URL as {{invoice_url}}
The agent can then say something like: "I've created invoice #{{invoice_id}} and sent it to your email. You can also view it at {{invoice_url}}."
## Request & Response Handling
When the function is called, Retell sends a POST request to your endpoint with [(2) ]() :
- X-Retell-Signature header for verification
- JSON body containing the function name, call details, and arguments
Your invoicing API should return a 200-299 status code with the invoice details .
## Next Steps
1. Set up your invoicing platform's API credentials
2. Test the custom function in the Retell dashboard
3. Update your agent's prompt with invoice generation logic
4. Run test calls to verify the flow works end-to-end
Would you like help with a specific invoicing platform's API integration?AI Evy
11/07/2025, 2:33 PMAI Evy
11/07/2025, 2:33 PMAI Evy
11/07/2025, 2:33 PMAI Evy
11/07/2025, 2:33 PMcreate_dental_invoice
- **Description**: Create and send an invoice for dental services provided
### Step 2: Select HTTP Method and Add Endpoint
Choose POST as the HTTP method .
Add your invoicing system's API endpoint URL. For example:
- QuickBooks: `
- Stripe: `
- FreshBooks: `
This must be a valid URL .
### Step 3: Set Request Headers
Define custom headers to include with the request Retell sends to your endpoint . Header values can be static or include dynamic variables .
Example headers:
- `Authorization`: Bearer YOUR_API_KEY
- `Content-Type`: application/json
### Step 4: Define Parameters Using JSON Schema
Define the parameters for the custom function using JSON schema format :AI Evy
11/07/2025, 2:34 PMjson
{
"type": "object",
"properties": {
"patient_name": {
"type": "string",
"description": "Full name of the patient"
},
"patient_email": {
"type": "string",
"description": "Patient's email address for invoice delivery"
},
"service_description": {
"type": "string",
"description": "Description of dental services provided"
},
"amount": {
"type": "number",
"description": "Total invoice amount in dollars"
},
"appointment_date": {
"type": "string",
"description": "Date of the dental appointment"
}
},
"required": [
"patient_name",
"patient_email",
"service_description",
"amount"
]
}
### Step 5: Set Response Variables
Extract values from the API response and save them as dynamic variables for use later in the conversation [(3) ]() [(1) ]() [(2) ]() .
For example, you can extract the invoice ID and URL from the response and reference them later using {{invoice_id}} and {{invoice_url}} .
Example response body:
json
{
"properties": {
"invoice": {
"id": "INV-12345",
"url": "<https://invoice.example.com/view/INV-12345%22>
}
}
}AI Evy
11/07/2025, 2:34 PMContent-Type: application/json
Request body (in JSON format) :
- `name`: the name of the custom function
- `call`: the call object for you to get more context about the call
- `args`: the arguments for the custom function, as a JSON object
The request will timeout in your specified timeout period, or 2 minutes if not specified . When request fails, it will be retried up to 2 times .
**Response**: Response should have a status code between 200-299 to indicate success . The function result is capped at 15000 characters .
## Recommended Invoicing Platform for Dental Offices
For a dental office, I'd recommend QuickBooks Online as it's the most common accounting software for dental practices and integrates well with practice management systems.
## Next Steps
1. Set up your QuickBooks (or chosen platform) API credentials
2. Test the custom function in the Retell dashboard
3. Update your agent's prompt with the invoice generation logic shown above
4. Run test calls to verify the complete flow works end-to-end
The agent will now be able to collect patient information during the call, trigger the invoice creation through your accounting system, and confirm with the patient that the invoice has been sent .AI Evy
11/07/2025, 2:34 PMAI Evy
11/07/2025, 2:34 PMproperties.invoice.id as a variable like invoice_id, and properties.invoice.url as invoice_url .
### Step 6: Configure Speech Behavior
Set up how the agent should handle speech during and after function execution :
- **Speak during execution**: Enable this so the agent tells the patient "I'm creating your invoice now"
- **Speak after execution**: Enable this so the agent can confirm "I've sent invoice #{{invoice_id}} to your email"
### Step 7: Update Your Agent Prompt
Include in the prompt explicitly when to invoke the custom function :
When the patient confirms they want to receive an invoice, collect their email address and the service details. Then call the create_dental_invoice function to generate and send the invoice. After the invoice is created, confirm with the patient that the invoice has been sent to their email address.AI Evy
11/07/2025, 2:34 PM