https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i connect retell to automatically collect a...
# ❓・ai-evy-support
m
@AI Evy how do i connect retell to automatically collect and send data to zapier to book appointments
a
Thanks for tagging me @Mo. I'll look through relevant sources and get back to you shortly.
### Answer To connect Retell AI to Zapier for automatic appointment booking, you'll need to set up a workflow that triggers calls and captures call data [(1) ]() [(2) ]() . Step 1: Connect Retell AI to Zapier Log into Zapier and create a new Zap [(2) ]() . In the Action step, search for "Retell AI" and select an action like "Make a Phone Call" or "Get a Call" . Connect your Retell AI account by entering your API key from your Retell AI dashboard under Settings > API Keys . Step 2: Trigger Calls from Form Submissions Set up a trigger using your form tool (like Airtable, Google Forms, or Typeform) as the trigger app [(1) ]() . Choose the trigger event such as "New Record" . When a customer submits a form, this will automatically prompt your Retell AI agent to make a call [(3) ](

▾

) [(1) ]() . Step 3: Configure Call Details In the Retell AI action, set the from number as your agent number (found in your Retell AI dashboard under publish) [(3) ](

▾

) . Set the to number using data from your form submission . Pass dynamic variables in double brackets to personalize the conversation . Step 4: Capture Call Data Add a "Get a Call" action in Zapier to retrieve all call details after the call completes [(3) ](

▾

) [(1) ]() . This retrieves call transcripts, summaries, and call IDs automatically [(1) ]() . **
Step 5: Send Data to Your Booking System** Add another action to send the captured call data to your appointment booking system, email, or database like Airtable [(3) ](

▾

) [(1) ]() . You can extract specific variables from the call using post-call analysis and webhooks [(4) ]() . Retell generates webhooks on each call (call_started, call_ended, and call_analyzed) that you can configure in your agent's webhook settings [(5) ]() . **
​ To learn more, see the sources I considered: [[1] How to Automate Calls with Retell AI Voice Agents & Zapier | Retell AI | Retell AI](https://www.retellai.com/blog/zapier-ai-voice-agent-integration-guide) [[2] Connect AI call agent to zapier](https://www.retellai.com/integrations/zapier) [[3] Zapier x Retell Tutorial | How to Automate Follow-Up Calls from Customer Inquiries](

https://www.youtube.com/watch?v=I3TyMad74F4▾

) [[4] I'm trying to connect retail AI to zapier I'm unable to find the proper web hook URL](https://discord.com/channels/1186424376300679209/1340502948027039754) [[5] Discord message from @fyodor2572 on 2025-02-16](https://discord.com/channels/1186424376300679209/1294891368505937952/1340548338952699904) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
m
@AI Evy what i'd like to do is retell takes each calls data and sends data to zapier catch hook which then outputs that data to 'square appointments'. so essentially i just need retell to automatically send the callers given appointment info to zapiers catch hook
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- To automatically send call data from Retell AI to a Zapier Catch Hook, configure a webhook URL in your Retell AI agent settings [(1) ]() . Set Up the Webhook in Your Agent When creating or updating your agent, include the
webhook_url
parameter pointing to your Zapier Catch Hook URL :
Copy code
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) ]() :
Copy code
javascript
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. **
​ To learn more, see the sources I considered: [[1] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[2] Webhook](https://www.retellai.com/glossary/webhook) [[3] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[4] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
put that webhook in the prompt? im using a single prompt agent @AI Evy
a
### Answer --- No, the webhook URL is not configured in the prompt [(1) ]() . For a single prompt agent, you configure the webhook URL in the agent's settings [(2) ]() [(3) ]() [(1) ]() . Where to Configure the Webhook In the Retell AI dashboard, when configuring your agent's basic settings, there's a "Configure Privacy & Webhook" section where you can set up webhook settings for receiving call-related events [(1) ]() . The
webhook_url
parameter is set at the agent level, not in the prompt [(2) ]() [(3) ]() :
Copy code
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.
​ To learn more, see the sources I considered: [[1] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[2] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[3] Get Voice Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
@AI Evy Where can i find the agent settings. i do see agent level webhook url with the option to paste url. will that automatically send all the info to zapier?
a
### Answer --- Finding Agent Settings You can access agent settings in the Retell AI dashboard [(1) ]() . For conversation flow agents, click on the empty canvas and click "setting" to access global settings . There you'll find a "Configure Privacy & Webhook" section where you can configure webhook settings for receiving call-related events . What the Webhook Automatically Sends Yes, when you paste your Zapier Catch Hook URL into the agent-level webhook URL field, Retell will automatically send call event data to Zapier [(2) ]() . The webhook will receive three types of events : -
call_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 .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
@AI Evy it's not a conversational flow agent it's single prompt - does that change anything?
a
​ To learn more, see the sources I considered: [[1] Part 1: BuildYour First Retell Voice Al Agent That Sells Cars](

https://www.youtube.com/watch?v=p0DusrDjfjA▾

) [[2] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer No, using a single prompt agent doesn't change the webhook configuration process [(1) ](

▾

) . The webhook URL is still configured at the agent level in your agent settings, not in the prompt itself . For single prompt agents, you'll find the webhook configuration in the agent's basic settings under "Configure Privacy & Webhook" [(2) ]() . Simply paste your Zapier Catch Hook URL there, and Retell will automatically send call events (
call_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) ](

▾

) .
m
@AI Evy i already pasted the webhook url and made a catch hook step via zapier to test and nothing happened
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer If the webhook isn't triggering, here are the most common issues to check: 1. Did you actually make a test call? The webhook only fires when call events occur [(1) ]() . Simply pasting the URL won't trigger anything - you need to actually initiate a call using your agent for the webhook to send data to Zapier. 2. Verify your webhook URL is correctly saved Check that your webhook URL is properly configured in your agent settings [(2) ]() . The URL should point to your Zapier Catch Hook endpoint [(1) ]() . 3. Check webhook timeout settings The default webhook timeout is 10,000 milliseconds [(1) ]() [(3) ]() . If Zapier doesn't respond quickly enough, the webhook may fail. You can adjust this with the
webhook_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 C
atch Hook step is actively waiting for data and hasn't timed out. Try making a test call and check if Zapier receives any of the three webhook events. If still nothing appears, the issue may be with the webhook URL format or Zapier configuration rather than Retell.
​ To learn more, see the sources I considered: [[1] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[2] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[4] Discord message from @fyodor2572 on 2025-02-16](https://discord.com/channels/1186424376300679209/1294891368505937952/1340548970849636445) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
which one SENDS the data
does the webhook fire based on what the functions are set as? i see a end_call function for example, and a custom function @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- ### Answer No, webhooks fire based on call lifecycle events, not based on which functions you have configured [(1) ]() . Webhook Events Are Independent of Functions The webhook triggers automatically for these three call events : -
call_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 :
Copy code
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
 }
}
The
transcript_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. **
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) [[3] Webhook](https://www.retellai.com/glossary/webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
so the webhook will fire regardless correct?. but is there a log or history to see what was sent to zapier? @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
### Answer --- ### Answer Yes, the webhook will fire regardless of which functions you have configured [(1) ]() . The webhook triggers automatically for the three call lifecycle events:
call_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 data
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
and call_analyzed is also automatic? what part of the call actully SENDS info to zapier. zapier hasnt recieved anything yet @User
and call_analyzed is also automatic? what part of the call actully SENDS info to zapier. zapier hasnt recieved anything yet @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- Yes,
call_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 :
Copy code
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
 }
}
Why Zapier Might Not Be Receiving Anything Since you're not receiving webhooks, here are the key troubleshooting steps: 1. Make sure you've completed an actual call - The webhook only fires when real call events occur . Simply configuring the webhook URL doesn't trigger it. 2. Verify the webhook URL is saved - Double-check that your Zapier Catch Hook URL is correctly entered in your agent settings and saved. 3. Check for
call_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) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Discord message from @.ekog on 2025-05-10](https://discord.com/channels/1186424376300679209/1186462578310910112/1370584992023056505) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy can i speak with somebody who may specialize in this - webhooks specifically
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer I understand you'd like to speak with someone who specializes in webhooks. Here are your support options: For webhook-specific help: Visit [Contact Sales]() to connect with the Retell AI team directly. Visit [) for additional resources. Before reaching out, here are some critical webhook troubleshooting steps: 1. For inbound calls specifically - If your webhook works for outbound but not inbound calls, you need to configure the webhook at the phone number level, not just the agent level [(1) ]() . 2. Verify webhook security - Ensure your endpoint can handle the
x-retell-signature
header for verification [(2) ]() . You can verify webhooks using:
Copy code
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?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] webhook is not able to receive the inbound call data. It works for outbound calls though](https://discord.com/channels/1186424376300679209/1399815679275958292) [[2] Secure the webhook](https://docs.retellai.com/features/secure-webhook) [[3] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
m
@AI Evy is there a way to get retell to send the POST to the catch hook by using custom function, api endpoint and parameters/json/form
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- Yes, you can use a custom function to POST data to your Zapier Catch Hook URL. [(1) ]() [(2) ]() Custom functions allow you to send POST requests to any endpoint, including Zapier webhooks. This gives you control over when data is sent (based on conversation context) rather than relying solely on automatic call lifecycle webhooks. How to Set Up a Custom Function to POST to Zapier: 1. In your agent's Functions section, add a Custom Function 2. Configure the function details: - **Name**: Use underscores (e.g.,
send_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:
Copy code
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"
  ]
}
Important Notes: - Custom functions always use POST method for sending data with parameters [(3) ]() - The LLM will decide when to call this function based on your prompt and conversation context [(4) ]() - Parameters are sent in the request body as JSON [(1) ]() [(2) ]() - You can set headers and query parameters if needed - Configure "Speak During Execution" and "Speak After Execution" to control agent behavior during the function call Key Difference from Agent-Level Webhooks: Agent-level webhooks fire automatically for all call lifecycle events. [(1) ]() Custom functions give you precise control over when and what data gets sent to Zapier based on the conversation flow. [(4) ]()
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Discord message from @neoxsaibot on 2024-10-26](https://discord.com/channels/1186424376300679209/1294891368505937952/1299740041089912843) [[4] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
if i copy and paste the example schema will it work?
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
if i copy/paste and use the example schema you sent will it work? @AI Evy
a
[(1) ]() Troubleshooting: If you get an error when saving, the most common issue is missing
"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 :
Copy code
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) ]() .
### Answer --- Yes, the example schema I provided will work, but you need to customize it for your specific data needs. [(1) ]() [(2) ]() The schema I showed you is a valid JSON schema format that Retell AI accepts for custom function parameters :
Copy code
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"
  ]
}
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:
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Discord message from @fyodor2572 on 2024-10-26](https://discord.com/channels/1186424376300679209/1294891368505937952/1299822071312023634) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
can you create another schema that accepts custom format and also include appointment time @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- Yes, here's a custom function schema that includes appointment time and accepts custom format:
Copy code
json
{
  "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"
  ]
}
[(1) ]() , [(2) ]() Key points about this schema: -
customer_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) ]()
Copy code
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"
  }
}
[(1) ]() , [(2) ]() You can customize the property names and descriptions to match your specific needs [(1) ]() , [(2) ]() . ---
m
should i copy paste the first or second schema you sent @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- Use the second schema - it includes both appointment time and the custom format field you requested [(1) ]() [(2) ]() . The second schema I provided includes: -
customer_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 .
m
{ "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 this?
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
Copy code
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"
  }
}
[(1) ]() , [(2) ]() The schema is valid and should save without errors. [(1) ]() , [(2) ]()
ellai.com/build/conversation-flow/custom-function) , [(2) ]() When the LLM calls this function during a conversation, Retell will POST to your Zapier endpoint with this structure [(1) ]() , [(2) ]() :
### Answer --- Yes, that schema is correct and ready to use. [(1) ]() , [(2) ]() The JSON schema you've pasted is properly formatted with: -
"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) ](
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy payload: args only on or off? and what about Response Variables
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- Regarding "Payload: args only" setting: Based on the available documentation, I don't have specific information about a "Payload: args only" toggle or setting in the custom function configuration [(1) ]() [(2) ]() . The standard request body that Retell sends to your endpoint includes [(2) ]() :
Copy code
json
{
  "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) ]() :
Copy code
json
{
  "properties": {
    "user": {
      "name": "John Doe",
      "age": 26
    }
  }
}
You can extract
user.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) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Response Variables - Part of Future Function Calls in JSON?](https://discord.com/channels/1186424376300679209/1396550506347761686) [[4] Empty payload for custom function](https://discord.com/channels/1186424376300679209/1437764852058947655) [[5] Custom function using JSON Form with args only have empty body {}](https://discord.com/channels/1186424376300679209/1432363179182395493) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
okay its successfully sending call data to zapier now! the problem is its sending the entire call to zapier. instead of filtering the appoinment data its sending every sentence said from the caller and the ai agent. what do i need to fix? should i show you my schema @AI Evy
a
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.
m
okay retell is successfully sending call data to zapier now! the problem is its sending the entire call to zapier. instead of filtering the appoinment data its sending every sentence said from the caller and the ai agent. what do i need to fix? should i show you my schema @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer ### Answer --- The issue is that you're likely receiving the entire
call
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) ]() :
Copy code
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.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
can you create the same schema that books appointments with ONLY appointment date, appointment time, customer name, and customer phone number
can you create the same schema that books appointments with ONLY appointment date, appointment time, customer name, and customer phone number. additionally, on retell side i ONLY want those fields to be sent to zapier as that is all thats necessary. help me please @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
The
call
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.
### Answer --- Yes, here's a streamlined schema for booking appointments with only the four fields you need: [(1) ]() [(2) ]()
Copy code
json
{
  "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:
Copy code
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"
  }
}
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
do i need to put "args." in front of name/phone/date/time or is it done automatic then sent to zapier
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
do i need to put "args." in front of name/phone/date/time or is it done automatic then sent to zapier @AI Evy
a
### Answer --- No, you don't need to add "args." in your Retell schema - that's done automatically by Retell when sending to Zapier. [(1) ]() [(2) ]() In your Retell custom function schema, you only define the field names as you already have:
Copy code
json
{
  "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**:
Copy code
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. ---
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
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. @AI Evy explain this to me simply like im 10. i have no idea what im doing, what an arg is or how i use it in zapier
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer Okay, let me explain this super simply: What happens: 1. Retell sends a package to Zapier [(1) ]() [(2) ]() - Think of it like a box with different compartments 2. The box looks like this :
Copy code
json
{
  "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) ]() . ---
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] How to Automate Calls with Retell AI Voice Agents & Zapier | Retell AI | Retell AI](https://www.retellai.com/blog/zapier-ai-voice-agent-integration-guide) ​
m
{ "type": "object", "properties": { "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) " }, "customer_name": { "type": "string", "description": "The name of the customer" } }, "required": [ "customer_name", "customer_phone", "appointment_date", "appointment_time" ] }. can you edit this so it also includes barber preference. and i need to make sure PHONE NUMBER/NAME/DATE/TIME/BARBER all go to the same catch hook spot @AI Evy
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
### Answer Here's your updated schema with barber preference added: [(1) ]() [(2) ]()
Copy code
json
{
  "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:
Copy code
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. --- **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @Mo. I'll get back to you soon.
m
@AI Evy can i send you images to explain
a
### Answer Yes, you can share images to help explain your issue. While I can view images, please note that I can only provide answers based on the official Retell AI documentation and available sources. [(1) ]() [(2) ]() [(3) ]() If your images show configuration screens from Retell AI or Zapier, I'll do my best to help guide you based on what I can see and what's documented in the sources. Go ahead and share your images, and I'll help clarify whatever you're working on with your custom function setup. --- **
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] How to Automate Calls with Retell AI Voice Agents & Zapier | Retell AI | Retell AI](https://www.retellai.com/blog/zapier-ai-voice-agent-integration-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
a
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Discord message from @fyodor2572 on 2024-10-26](https://discord.com/channels/1186424376300679209/1294891368505937952/1299822141763752090) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I can see from your images that Retell is currently sending the full payload structure (with
name
,
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 :
Copy code
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) ]() ---
m
@AI Evy i feel as though retell customer service is unsatisfactory. ive reached out to talk to a person 23 hours ago and still notghing
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] AI for After-Hours Call Answering Services | Retell AI](https://www.retellai.com/blog/transforming-after-hours-call-answering-services-with-ai-phone-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I understand your frustration with the response time. While I don't have specific information about Retell AI's customer support SLA or response times in the available sources, I can direct you to the appropriate support channels. For direct support, you can: - Visit [Contact Sales]() [(1) ]() - Visit [) Regarding your technical issue with the payload structure: The nested format Retell sends (
name
,
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? **
m
@AI Evy do human support representatives exist for retell
a
Thanks for the follow-up, @Mo. I'll get back to you soon.
### Answer --- I don't have specific information about Retell AI's customer support team structure or availability in the available sources. For support, you can reach out through these channels: - Visit [Contact Sales]() - Visit [) Additionally, Retell AI has certified partners who can provide implementation support and consulting services. [(1) ]() You can find partners who offer various services including Voice AI Solutions, CRM & API Integrations, and custom implementations. Would you like me to provide information about finding a certified partner who might be able to help with your Zapier integration issue more quickly? ---
​ To learn more, see the sources I considered: [[1] Find a Certified Partner | Retell AI](https://www.retellai.com/partners) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@User could i speak to a human about a very specific issue?