cristi
11/17/2025, 1:38 AMAI Evy
11/17/2025, 1:38 AMAI Evy
11/17/2025, 1:38 AM{{current_time}} for the current time in America/Los_Angeles (PST/PDT) [(1) ]() [(2) ]() .
For other timezones, use {{current_time_[timezone]}} . For example:
- {{current_time_Australia/Sydney}}
- {{current_time_America/New_York}}
Add these dynamic variables directly in your agent's prompt [(3) ]() . For example:
#context
current date: {{current_time_America/New_York}}
The system will automatically inject the current time when the agent runs [(1) ]() .AI Evy
11/17/2025, 1:38 AMAI Evy
11/17/2025, 1:38 AMAI Evy
11/17/2025, 1:50 AMcristi
11/17/2025, 1:50 AMAI Evy
11/17/2025, 1:50 AMAI Evy
11/17/2025, 1:50 AMAI Evy
11/17/2025, 1:50 AMcristi
11/17/2025, 1:50 AMAI Evy
11/17/2025, 1:50 AMAI Evy
11/17/2025, 1:51 AMAI Evy
11/17/2025, 1:51 AMAI Evy
11/17/2025, 1:51 AMAI Evy
11/17/2025, 1:51 AMcristi
11/17/2025, 11:21 AMAI Evy
11/17/2025, 11:21 AMAI Evy
11/17/2025, 11:22 AMbook_google_calendar_appointment
- Description: Book appointment to Google Calendar with customer name and address
2. Select HTTP Method
Choose the HTTP method (GET, POST, PUT, PATCH, or DELETE) that Retell will use to send the request to your endpoint .
For Google Calendar API, you'll typically use POST .
3. Add Endpoint URL
Add the URL where Retell will send the request to execute your custom function. This has to be a valid URL .
For Google Calendar, this would be your backend endpoint that interfaces with the Google Calendar API .
*4. Set Request Headers (Optional) *
You can define custom headers to include with the request Retell sends to your endpoint. Header values can be static or include dynamic variables .
*5. Set Query Parameters (Optional) *
You can define query parameters to include in the request URL that Retell appends to your endpoint. Query parameter values can be static or include dynamic variables .
6. Define Parameters
Define the parameters for the custom function using JSON schema format or JSON form. Only available for POST, PATCH and PUT requests .
Example parameter schema:AI Evy
11/17/2025, 11:22 AMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The customer's full name"
},
"customer_address": {
"type": "string",
"description": "The customer's address"
},
"appointment_time": {
"type": "string",
"description": "The appointment date and time"
}
},
"required": [
"customer_name",
"customer_address",
"appointment_time"
]
}
*7. Set Response Variables (Optional) *
Extract values from the API response and save them as dynamic variables for use later in the conversation .
For example, you can extract a confirmation ID from the response and reference it later using {{confirmation_id}} .
### Request & Response Specification
Retell will send the request to your endpoint with the following:
- **Header**: X-Retell-Signature for security verification and Content-Type: application/json
- Body (JSON format) : Contains name (function name) , call (call object with context) , and args (function arguments as JSON object)
The request will timeout in your specified timeout period, or 2 minutes if not specified .
Response should have a status code between 200-299 to indicate success . The function result is capped at 15,000 characters .
### Additional Resources
For more guidance on setting up custom functions, check out:
- [Personalization with Google Sheets]() [(2) ]()
- [Custom Function Documentation]() [(1) ]()
Would you like help with a specific part of the setup, such as the parameter schema or connecting to the Google Calendar API?AI Evy
11/17/2025, 11:22 AMAI Evy
11/17/2025, 11:22 AMcristi
11/17/2025, 11:31 AMAI Evy
11/17/2025, 11:31 AMAI Evy
11/17/2025, 11:32 AMAI Evy
11/17/2025, 11:32 AMAI Evy
11/17/2025, 11:32 AMcristi
11/17/2025, 12:01 PMAI Evy
11/17/2025, 12:01 PMAI Evy
11/17/2025, 12:01 PMAI Evy
11/17/2025, 12:01 PMAI Evy
11/17/2025, 12:01 PMcristi
11/17/2025, 12:47 PMAI Evy
11/17/2025, 12:47 PMAI Evy
11/17/2025, 12:48 PMwss:// or ws:// with no trailing slash) .
4. Audio Streaming Issues - Verify your endpoint is streaming audio properly, as Retell requires real-time audio .
Troubleshooting steps:
- Check if you deployed the latest draft (go to Deployment tab and publish)
- Test your WebSocket/Webhook with Postman to verify reachability
- Review call logs for transfer failures or disconnects
- Use the Debug tool in the Playground to catch logic or flow issues
- After updating any settings (especially TTS) , re-publish your agent
If the platform shows no known health issues blocking agent publishing , the error is likely configuration-related. Check your TTS settings and any transfer phone numbers first, as these are common blockers .AI Evy
11/17/2025, 12:48 PMAI Evy
11/17/2025, 12:48 PM