Functions
Configure calendar integrations and custom API functions that the AI can call during conversations.
Calendar Integration (Google Calendar)
RecommendedEnable calendar functions to check availability and book appointments via Google Calendar API.
Custom Functions
No custom functions configured yet.
Function Documentation
How Functions Work
Custom functions allow the AI voice assistant to make API calls during conversations. When the AI determines it needs to execute a function, it will:
- Extract parameters from the conversation based on the JSON schema
- Make an HTTP request to the configured endpoint
- Process the response and continue the conversation
Function Types
- calendar_check - Check calendar availability (uses Google Calendar API)
- calendar_book - Book appointments on calendar (uses Google Calendar API)
- custom - Custom API endpoint that you define
Payload Types
- args_only - Send only the extracted arguments as JSON
- full_context - Include call context (callSid, callerNumber, etc.)
- custom - Use a custom payload template
Parameters JSON Schema Example
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The date for the appointment (YYYY-MM-DD)"
},
"time": {
"type": "string",
"description": "Preferred time (HH:MM)"
}
},
"required": ["date"]
}