https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do i Create Data Output From Retell (Return Va...
# ❓・ai-evy-support
l
@AI Evy How do i Create Data Output From Retell (Return Value Schema) in JSON to send to zapier?
a
Thanks for tagging me @lucky_papaya_01707. I'll look through relevant sources and get back to you shortly.
### Answer To create data output from Retell AI to send to Zapier, you can use response variables in your custom functions to extract values from API responses and save them as dynamic variables [(1) ]() [(2) ]() . When configuring a custom function, you can set response variables (optional) to extract values from the API response and save them as dynamic variables for use later in the conversation . For example, you can extract a user's name from the response and reference it later using
{{user_name}}
. Here's an example response body structure:
Copy code
json
{
 "properties": {
 "user": {
 "name": "John Doe",
 "age": 26
 }
 }
}
[(1) ]() , [(2) ]() For Zapier integration specifically, you can use webhooks to send data. In your Retell AI dashboard, you can enter a webhook URL (for example, from Zapier or Make) to receive call data [(3) ]() . This allows you to receive information like transcripts after every call . When making API calls to Retell AI from Zapier, you'll need to structure your JSON request content with the proper syntax. For example, when creating a phone call:
Copy code
json
{
"fromNumber": "+123456789",
"toNumber": "+987654321",
"agentId": "your_agent_id_here"
}
The response from Retell AI APIs will return structured JSON data that Zapier can then parse and use in subsequent workflow steps [(4) ]() [(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] Integration with Zapier](https://discord.com/channels/1186424376300679209/1220781125555720242) [[4] 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) [[5] Connect AI call agent to zapier](https://www.retellai.com/integrations/zapier) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.