Mo
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:08 PMAI Evy
12/05/2025, 7:15 PMMo
12/05/2025, 11:50 PMAI Evy
12/05/2025, 11:50 PMAI Evy
12/05/2025, 11:52 PMwebhook_url parameter pointing to your Zapier Catch Hook URL :
javascript
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
// ... other agent configuration
webhook_url: "<https://hooks.zapier.com/hooks/catch/YOUR_ZAPIER_WEBHOOK_ID%22,>
// ... rest of configuration
}) ;
How Webhooks Work
Webhooks are event-driven messages that push data automatically when specific events happen [(2) ]() . When configured, your AI voice agent triggers a webhook to notify Zapier and pass along relevant call data .
Retell AI sends webhook events for call lifecycle events [(3) ]() . The webhook delivers structured data in JSON format to your specified URL [(2) ]() . This allows you to instantly update systems with contact details or call summaries .
Webhook Events
The webhook will receive events when calls start, end, and are analyzed [(3) ]() . Each webhook delivers real-time call data to your Zapier endpoint .
Capturing Appointment Data
To extract specific appointment information from calls, use post-call analysis. Configure post_call_analysis_data in your agent to define what data to extract [(1) ]() :AI Evy
12/05/2025, 11:52 PMjavascript
post_call_analysis_data: [
{
type: "string",
name: "customer_name",
description: "The name of the customer.",
examples: ["John Doe", "Jane Smith"]
}
]
The extracted data will be included in the call_analysis object sent to your webhook [(4) ]() , which Zapier can then route to Square Appointments.
**AI Evy
12/05/2025, 11:52 PMAI Evy
12/05/2025, 11:52 PMAI Evy
12/06/2025, 12:53 AMMo
12/06/2025, 12:53 AMAI Evy
12/06/2025, 12:53 AMwebhook_url parameter is set at the agent level, not in the prompt [(2) ]() [(3) ]() :
javascript
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
webhook_url: "<https://webhook-url-here%22,>
webhook_timeout_ms: 10000
}) ;
[(2) ]()
How It Works
The webhook URL binds webhook events for this agent to the specified URL [(2) ]() [(3) ]() . When set, it will send call events (like call_started, call_ended, and call_analyzed) to your Zapier Catch Hook automatically .
The webhook timeout defaults to 10000 milliseconds if not set .
For Your Use Case
Simply paste your Zapier Catch Hook URL into the webhook URL field in your agent's settings. Retell will automatically send call data to that endpoint whenever calls complete.AI Evy
12/06/2025, 12:54 AMAI Evy
12/06/2025, 12:54 AMAI Evy
12/06/2025, 1:07 AMMo
12/06/2025, 1:07 AMAI Evy
12/06/2025, 1:07 AMcall_started - when a call begins
- call_ended - when a call completes
- call_analyzed - after call analysis is complete
Each webhook event includes the call object with details like call_id, transcript, timestamps, and any extracted data you've configured .
Webhook Timeout
The webhook timeout defaults to 10,000 milliseconds if not set [(3) ]() [(4) ]() [(5) ]() [(6) ]() . You can adjust this using the webhook_timeout_ms parameter .
Important Note About Data Extraction
To capture specific appointment information (like customer name, appointment time, etc.) , you'll need to configure post_call_analysis_data in your agent settings [(3) ]() . This tells Retell what specific data to extract from calls and include in the webhook payload .AI Evy
12/06/2025, 1:07 AMAI Evy
12/06/2025, 1:08 AMAI Evy
12/06/2025, 1:12 AMMo
12/06/2025, 1:12 AMAI Evy
12/06/2025, 1:12 AMAI Evy
12/06/2025, 1:12 AMAI Evy
12/06/2025, 1:12 AMcall_started, call_ended, and call_analyzed) to that endpoint.
The key difference is just the location in the dashboard—single prompt agents have their settings in a different section than conversation flow agents, but the webhook functionality works the same way for both agent types [(2) ]() [(1) ]() .Mo
12/06/2025, 1:20 AMAI Evy
12/06/2025, 1:20 AMAI Evy
12/06/2025, 1:20 AMwebhook_timeout_ms parameter [(1) ]() .
4. Ensure your agent is using the correct configuration
If you recently updated your agent, make sure you're testing with the correct version. The webhook URL must be set on the agent version you're actually using for calls [(1) ]() [(3) ]() .
5. Test with a simple call
Make an actual test call with your agent. The webhook should fire three times per call [(4) ]() :
- call_started - when the call begins
- call_ended - when the call completes
- call_analyzed - after analysis completes
6. Verify Zapier Catch Hook is active
Make sure your Zapier CAI Evy
12/06/2025, 1:20 AMAI Evy
12/06/2025, 1:20 AMAI Evy
12/06/2025, 1:20 AMMo
12/06/2025, 1:23 AMMo
12/06/2025, 3:35 AMAI Evy
12/06/2025, 3:35 AMAI Evy
12/06/2025, 3:36 AMcall_started - when a call begins
- call_ended - when a call completes
- call_analyzed - after call analysis completes
These events fire regardless of whether you have an end_call function or custom functions configured .
Functions vs. Webhooks
Functions (like end_call or custom functions) are tools your agent can call during a conversation to take actions [(2) ]() . They're separate from webhooks .
Webhooks are event-driven messages that push call data to your specified URL when call events happen [(3) ]() . The webhook will POST the payload to your endpoint with a timeout of 10 seconds [(1) ]() .
What Data Gets Sent
The webhook payload includes the event type and the call object :
json
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"transcript_object": [ [Object], [Object], [Object], [Object] ],
"transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
"opt_out_sensitive_data_storage": false
}
}AI Evy
12/06/2025, 3:36 AMtranscript_with_tool_calls field will include any function calls that occurred during the conversation , but the webhook itself fires based on call lifecycle events, not function execution.
**AI Evy
12/06/2025, 3:36 AMAI Evy
12/06/2025, 3:36 AMMo
12/06/2025, 3:38 AMAI Evy
12/06/2025, 3:38 AMAI Evy
12/06/2025, 3:38 AMAI Evy
12/06/2025, 3:38 AMcall_started, call_ended, and call_analyzed .
Webhook Retry Behavior
The webhook has a timeout of 10 seconds . If no success status (2xx) is received within 10 seconds, the webhook will be retried, up to 3 times . The webhook will be triggered in order, but is not blocking . For example, if the webhook for call_started is not successful, Retell can still trigger the call_ended webhook .
Viewing Webhook Logs in Retell AI
Based on the available sources, I don't have specific information about a built-in webhook log or history feature within the Retell AI dashboard that shows what was sent to Zapier.
Checking on the Zapier Side
Your best option is to check the Zapier side. Zapier maintains a history of all webhook requests it receives in your Zap's history/runs section. This will show you:
- Whether the webhook was received
- The payload data that was sent
- Any errors that occurred
Troubleshooting Tips
If you're not seeing webhooks fire:
- Ensure you've made an actual test call with your agent (webhooks only fire during real call events)
- Verify your webhook URL is correctly saved in your agent settings
- Check that your Zapier Catch Hook is actively waiting for dataAI Evy
12/06/2025, 3:38 AMMo
12/06/2025, 3:56 AMMo
12/06/2025, 4:02 AMAI Evy
12/06/2025, 4:02 AMAI Evy
12/06/2025, 4:03 AMcall_analyzed is automatic [(1) ]() . All three webhook events (call_started, call_ended, and call_analyzed) fire automatically when the corresponding call lifecycle event occurs .
What Actually Sends Info to Zapier
Retell AI's backend automatically POSTs the webhook payload to your configured webhook URL when each event occurs . The webhook will POST the payload to your endpoint .
Here's what gets sent in the payload :
json
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"transcript_object": [ [Object], [Object], [Object], [Object] ],
"transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
"opt_out_sensitive_data_storage": false
}
}AI Evy
12/06/2025, 4:03 AMcall_started event issues - When the call did not connect (like calls with dial_failed, dial_no_answer, dial_busy disconnection reason) , it will not have its call_started webhook triggered . It will still have its call_ended and call_analyzed webhook triggered .
4. Use production webhook URL in n8n/Zapier - Based on community experience, you need to use the production link to receive all webhook events [(2) ]() . Test mode may not capture all events properly .
5. Expect all three webhooks - With one webhook URL, you should receive three separate POST requests from Retell: one for call_started, one for call_ended, and one for call_analyzed .
The call_analyzed event specifically triggers when call analysis is complete and includes the full call data including the call_analysis object [(1) ]() .AI Evy
12/06/2025, 4:03 AMAI Evy
12/06/2025, 4:03 AMMo
12/06/2025, 4:18 AMAI Evy
12/06/2025, 4:18 AMAI Evy
12/06/2025, 4:18 AMx-retell-signature header for verification [(2) ]() . You can verify webhooks using:
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const {event, call} = req.body;
// process the webhook
// Acknowledge the receipt of the event
res.status(204) .send() ;
}) ;
3. Check your webhook response - Your endpoint must return a 2xx status code within 10 seconds [(3) ]() .
Would you like me to provide a general answer about webhook configuration based on my knowledge while you wait to connect with support?AI Evy
12/06/2025, 4:28 AMAI Evy
12/06/2025, 4:28 AMMo
12/07/2025, 2:36 AMAI Evy
12/07/2025, 2:36 AMAI Evy
12/07/2025, 2:36 AMsend_to_zapier)
- **Description**: Describe what it does (e.g., "Send appointment data to Zapier")
3. Select HTTP Method: POST
4. Add your Zapier Catch Hook URL as the endpoint
5. Define parameters using JSON schema format
Example parameter schema:
json
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"appointment_date": {
"type": "string",
"description": "The appointment date"
}
},
"required": [
"customer_name",
"appointment_date"
]
}AI Evy
12/07/2025, 2:36 AMAI Evy
12/07/2025, 2:36 AMAI Evy
12/07/2025, 2:36 AMMo
12/07/2025, 3:24 AMAI Evy
12/07/2025, 3:25 AMMo
12/07/2025, 3:25 AMAI Evy
12/07/2025, 3:26 AM"type": "object" at the top level [(1) ]() [(2) ]() . The documentation recommends clicking one of the examples in the dashboard and updating accordingly .
What happens when this works:
When the LLM calls your custom function, Retell will POST to your Zapier Catch Hook URL with the parameters in the request body under the args field :
json
{
"name": "send_to_zapier",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"appointment_date": "2024-12-15"
}
}
Custom functions always use POST method when sending data with parameters [(3) ]() .AI Evy
12/07/2025, 3:26 AMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"appointment_date": {
"type": "string",
"description": "The appointment date"
}
},
"required": [
"customer_name",
"appointment_date"
]
}
Critical Requirements:
1. You MUST include "type": "object" at the top level - This is a common mistake that causes save failures
2. Customize the properties - Replace customer_name and appointment_date with the actual data fields you want to collect and send to Zapier
3. Add meaningful descriptions - The LLM uses these descriptions to understand when and how to extract the data from the conversation
Example from the documentation:
json
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}AI Evy
12/07/2025, 3:26 AMAI Evy
12/07/2025, 3:26 AMMo
12/07/2025, 3:28 AMAI Evy
12/07/2025, 3:28 AMAI Evy
12/07/2025, 3:29 AMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"appointment_date": {
"type": "string",
"description": "The appointment date in YYYY-MM-DD format"
},
"appointment_time": {
"type": "string",
"description": "The appointment time in HH:MM format (24-hour) "
},
"custom_format": {
"type": "string",
"description": "Any additional custom information or notes about the appointment"
}
},
"required": [
"customer_name",
"appointment_date",
"appointment_time"
]
}AI Evy
12/07/2025, 3:29 AMcustomer_name, appointment_date, and appointment_time are required fields [(1) ]() , [(2) ]()
- custom_format is optional (not in the required array) , so the LLM can include it when relevant but won't fail if it's missing [(1) ]() , [(2) ]()
- The descriptions guide the LLM on what format to extract from the conversation [(1) ]() , [(2) ]()
- Remember to include "type": "object" at the top level - this is critical for the schema to save properly [(1) ]() , [(2) ]()
When the function is called, Retell will POST to your Zapier endpoint with: [(1) ]() , [(2) ]()
json
{
"name": "send_to_zapier",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"appointment_date": "2024-12-15",
"appointment_time": "14:30",
"custom_format": "Follow-up consultation"
}
}Mo
12/07/2025, 3:30 AMAI Evy
12/07/2025, 3:30 AMAI Evy
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:31 AMcustomer_name (required)
- appointment_date (required)
- appointment_time (required)
- custom_format (optional)
This gives you more flexibility to capture appointment details for Zapier .
Critical reminder: Make sure "type": "object" is at the top level of the schema - this is the most common mistake that causes save failures .
The schema will work when pasted into your custom function's parameter definition section .Mo
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:31 AMjson
{
"name": "send_to_zapier",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"appointment_date": "2024-12-15",
"appointment_time": "14:30",
"custom_format": "Follow-up consultation"
}
}
[(1) ]() , [(2) ]()
The schema is valid and should save without errors. [(1) ]() , [(2) ]()AI Evy
12/07/2025, 3:31 AM"type": "object" at the top level (critical requirement) [(1) ]() , [(2) ]()
- All four properties defined with appropriate types and descriptions [(1) ]() , [(2) ]()
- Three required fields (customer_name, appointment_date, appointment_time) [(1) ]() , [(2) ]()
- One optional field (custom_format) [(1) ]() , [(2) ]()
Next steps:
1. Paste this schema into the Parameters field when creating your custom function in Retell AI [(1) ]() , [(2) ]()
2. Set the HTTP Method to POST [(1) ]() , [(2) ]()
3. Add your Zapier Catch Hook URL as the endpoint [(1) ]() , [(2) ]()
4. Give your function a name (e.g., send_to_zapier) and description [(1) ](AI Evy
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:31 AMAI Evy
12/07/2025, 3:44 AMAI Evy
12/07/2025, 3:44 AMMo
12/07/2025, 3:50 AMAI Evy
12/07/2025, 3:50 AMAI Evy
12/07/2025, 3:51 AMjson
{
"name": "the name of the custom function",
"call": "the call object for context",
"args": "the arguments as a JSON object"
}
Regarding Response Variables:
You can set up Response Variables to extract values from your API response and save them as dynamic variables for use later in the conversation [(1) ]() [(2) ]() .
For example, you can extract a user's name from the response and reference it later using {{user_name}} .
How Response Variables work:
When your custom function returns a response, you can configure which values to extract and save. These extracted values become dynamic variables that can be used:
- In subsequent prompts
- In other function calls
- Throughout the rest of the conversation [(3) ]()
Example from the documentation:
If your API returns [(1) ]() [(2) ]() :
json
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}AI Evy
12/07/2025, 3:51 AMuser.name and save it as {{user_name}} to use later in the conversation .
Using Response Variables in future function calls:
Yes, you can use Response Variables from a previous function inside the JSON of another future function [(3) ]() . For example, if you get clientName back from a search_customer function, you can then use {{clientName}} inside the JSON for another future function .
---
If you're experiencing issues with empty payloads or missing dynamic variables, this has been reported by other users [(4) ]() [(5) ]() . The issue sometimes occurs when updating custom functions [(5) ]() .AI Evy
12/07/2025, 3:51 AMAI Evy
12/07/2025, 3:51 AMAI Evy
12/07/2025, 4:04 AMAI Evy
12/07/2025, 4:04 AMMo
12/07/2025, 4:04 AMAI Evy
12/07/2025, 4:04 AMAI Evy
12/07/2025, 4:04 AMAI Evy
12/07/2025, 4:05 AMMo
12/07/2025, 4:05 AMAI Evy
12/07/2025, 4:05 AMAI Evy
12/07/2025, 4:06 AMcall object in the payload, not just the extracted appointment data from your custom function's args. [(1) ]() [(2) ]()
When Retell sends a POST request to your Zapier endpoint, the request body includes [(2) ]() :
json
{
"name": "the name of the custom function",
"call": "the call object for context",
"args": "the arguments as a JSON object"
}
The call object contains the full call details including real-time transcript up to the time the request is sent [(1) ]() [(2) ]() . The args field contains only the specific parameters you defined in your JSON schema (customer_name, appointment_date, appointment_time, custom_format) .
To fix this in Zapier:
1. In your Zapier webhook trigger, map only the args field - not the entire payload
2. Access the specific appointment data using paths like:
- args.customer_name
- args.appointment_date
- args.appointment_time
- args.custom_format
The schema itself is correct - it defines what the LLM should extract from the conversation . The problem is on the Zapier side where you need to filter which parts of the incoming payload you actually use.
Yes, feel free to share your schema if you want me to verify it's configured correctly, but the issue is likely in how Zapier is processing the incoming webhook data, not in the Retell custom function configuration.AI Evy
12/07/2025, 4:06 AMAI Evy
12/07/2025, 4:06 AMMo
12/07/2025, 4:09 AMMo
12/07/2025, 4:10 AMAI Evy
12/07/2025, 4:10 AMAI Evy
12/07/2025, 4:10 AMcall object will always be included in the request body - this contains the full call context including transcript. However, in Zapier, you should map only the args field to extract just your four appointment fields.
To access only your appointment data in Zapier:
- args.customer_name
- args.customer_phone
- args.appointment_date
- args.appointment_time
The schema defines what the LLM extracts from the conversation and sends in the args field. The call object is sent automatically by Retell for context, but you don't have to use it in your Zapier workflow.AI Evy
12/07/2025, 4:10 AMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"customer_phone": {
"type": "string",
"description": "The customer's phone number"
},
"appointment_date": {
"type": "string",
"description": "The appointment date in YYYY-MM-DD format"
},
"appointment_time": {
"type": "string",
"description": "The appointment time in HH:MM format (24-hour) "
}
},
"required": [
"customer_name",
"customer_phone",
"appointment_date",
"appointment_time"
]
}
This schema will send ONLY these four fields in the args object to Zapier.
Important notes about the payload:
When Retell calls your Zapier webhook, the request body structure is:
json
{
"name": "your_function_name",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"customer_phone": "+1234567890",
"appointment_date": "2024-12-15",
"appointment_time": "14:30"
}
}AI Evy
12/07/2025, 4:10 AMAI Evy
12/07/2025, 4:10 AMMo
12/07/2025, 4:15 AMAI Evy
12/07/2025, 4:15 AMMo
12/07/2025, 4:15 AMAI Evy
12/07/2025, 4:15 AMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"customer_phone": {
"type": "string",
"description": "The customer's phone number"
},
"appointment_date": {
"type": "string",
"description": "The appointment date in YYYY-MM-DD format"
},
"appointment_time": {
"type": "string",
"description": "The appointment time in HH:MM format (24-hour) "
}
},
"required": [
"customer_name",
"customer_phone",
"appointment_date",
"appointment_time"
]
}
**Retell automatically wraps these in the args object when sending to your Zapier endpoint**:
json
{
"name": "your_function_name",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"customer_phone": "+1234567890",
"appointment_date": "2024-12-15",
"appointment_time": "14:30"
}
}
On the Zapier side, you'll use the args. prefix to access the fields when mapping data in your Zap workflow (e.g., args.customer_name, args.customer_phone) , but this is Zapier's syntax for accessing nested data - not something you configure in Retell.
Your schema is correct as-is - Retell handles the wrapping automatically.
---AI Evy
12/07/2025, 4:31 AMAI Evy
12/07/2025, 4:31 AMMo
12/07/2025, 10:49 PMAI Evy
12/07/2025, 10:49 PMAI Evy
12/07/2025, 10:49 PMjson
{
"name": "book_appointment",
"call": { (all the conversation stuff) },
"args": {
"customer_name": "John Doe",
"customer_phone": "+1234567890",
"appointment_date": "2024-12-15",
"appointment_time": "14:30"
}
}
The important part:
- args is just a label on one compartment of the box
- Inside that args compartment are your 4 pieces of information: name, phone, date, and time
In Zapier:
When you're setting up your Zap and need to grab the customer's name, you tell Zapier: "Go to the args compartment, then get `customer_name`" [(3) ]()
So you type: args.customer_name
Think of the period (.) like an arrow:
- args → go to the args compartment
- .customer_name → grab the customer_name inside
What you do in Zapier:
When Zapier asks "Where should we put the customer's name?", you click and select args.customer_name from the dropdown list Zapier shows you
You don't type anything in Retell - Retell automatically puts your data in the args compartment [(1) ]() [(2) ]() . You only need to click/select in Zapier to tell it which piece of data to use [(3) ]() .
---AI Evy
12/07/2025, 10:49 PMAI Evy
12/07/2025, 10:49 PMMo
12/07/2025, 11:09 PMAI Evy
12/07/2025, 11:09 PMAI Evy
12/07/2025, 11:10 PMAI Evy
12/07/2025, 11:10 PMjson
{
"type": "object",
"properties": {
"customer_name": {
"type": "string",
"description": "The name of the customer"
},
"customer_phone": {
"type": "string",
"description": "The customer's phone number"
},
"appointment_date": {
"type": "string",
"description": "The appointment date in YYYY-MM-DD format"
},
"appointment_time": {
"type": "string",
"description": "The appointment time in HH:MM format (24-hour) "
},
"barber_preference": {
"type": "string",
"description": "The customer's preferred barber name"
}
},
"required": [
"customer_name",
"customer_phone",
"appointment_date",
"appointment_time",
"barber_preference"
]
}
All five fields will automatically go to the same Zapier catch hook. When Retell calls your custom function, it sends all the data in the args object to your single Zapier webhook URL.
The payload Zapier receives will look like this:
json
{
"name": "your_function_name",
"call": { /* call object */ },
"args": {
"customer_name": "John Doe",
"customer_phone": "+1234567890",
"appointment_date": "2024-12-15",
"appointment_time": "14:30",
"barber_preference": "Mike"
}
}
In Zapier, you'll access each field using:
- args.customer_name
- args.customer_phone
- args.appointment_date
- args.appointment_time
- args.barber_preference
Since you're using one custom function with one endpoint URL, all five pieces of data arrive together at your Zapier catch hook automatically.
---
**AI Evy
12/07/2025, 11:10 PMAI Evy
12/07/2025, 11:15 PMMo
12/07/2025, 11:15 PMAI Evy
12/07/2025, 11:15 PMAI Evy
12/07/2025, 11:16 PMAI Evy
12/07/2025, 11:16 PMMo
12/07/2025, 11:17 PMAI Evy
12/07/2025, 11:22 PMMo
12/07/2025, 11:22 PMAI Evy
12/07/2025, 11:22 PMAI Evy
12/07/2025, 11:22 PMAI Evy
12/07/2025, 11:22 PMname, call, and args objects) , but you want to send only the flat appointment data fields directly to Zapier.
Unfortunately, you cannot change how Retell structures the outgoing payload. [(1) ]() [(2) ]()
When Retell calls your custom function, it always sends the request in this format :
json
{
"name": "the name of the custom function",
"call": "the call object for context",
"args": "the arguments as a JSON object"
}
The request body structure is fixed - Retell automatically wraps your appointment data inside the args object.
Your options to get the flat structure in Zapier:
1. Add a Zapier Formatter step after your webhook trigger to flatten the data structure and extract just the fields you need from args
2. Use a middleware service (like Pipedream or n8n) between Retell and your final destination that receives the Retell payload, extracts the args fields, and forwards only those fields in a flat structure
3. In Zapier, manually map each field from the nested structure (args.customer_name, args.customer_phone, etc.) to your destination fields
The Retell custom function payload structure cannot be modified - it's part of how Retell's system works. Custom functions always use POST method and always send data in this nested format. [(3) ]()
---Mo
12/07/2025, 11:42 PMAI Evy
12/07/2025, 11:42 PMAI Evy
12/07/2025, 11:42 PMAI Evy
12/07/2025, 11:42 PMAI Evy
12/07/2025, 11:42 PMname, call, args) cannot be changed on Retell's side. However, you can handle this in Zapier by using a Formatter by Zapier step immediately after your webhook trigger to extract only the fields from args that you need, creating the flat structure you want.
Would you like me to provide more details on how to set up the Zapier Formatter step to flatten your data?
**Mo
12/07/2025, 11:43 PMAI Evy
12/07/2025, 11:43 PMAI Evy
12/07/2025, 11:44 PMAI Evy
12/07/2025, 11:45 PMAI Evy
12/07/2025, 11:45 PMMo
12/07/2025, 11:46 PM