https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> i am hitting api request U...
# ❓・ai-evy-support
d
@AI Evy i am hitting api request URL https://api.retellai.com/v2/create-phone-call Request content { "from_number": "+18652705915", "to_number": "+918419077793" } but i am not receiving any post call anylysis veriable since it is outbond call but previously when i was doing in inbound call that time i was receiving post call veriable anylysis with the web socket connection sohow can i do same i outbind call with rest api
a
Thanks for tagging me @digitalthriv. I'll look through relevant sources and get back to you shortly.
### Answer The
v2/create-phone-call
endpoint is available for outbound calls [(1) ]() . However, I don't have specific information about post-call analysis variables for outbound calls or how to configure them with the REST API in the available sources. For post-call analysis functionality, the sources mention that call analysis features are available [(2) ]() , but the specific configuration details for outbound calls aren't covered in the provided documentation. I could try to provide a general answer about how post-call analysis typically works if you'd like, but I don't have the specific implementation details for outbound calls in the available sources. Check out these potentially useful sources: [WebRTC, Call API V2 and Other Improvements]() , [Platform Changelogs | Retell AI]()
​ To learn more, see the sources I considered: [[1] RetellAI/retell-typescript-sdk/api.md](https://github.com/RetellAI/retell-typescript-sdk/blob/main/api.md) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy so how can i get any custom veriable define in the prompt with the api request or the outbound call
a
Thanks for the follow-up, @digitalthriv. I'll get back to you soon.
### Answer Based on the available sources, there are a few ways to work with custom variables in outbound calls: ## Extract Dynamic Variables Tool You can use the Extract Dynamic Variables tool to capture values from user responses during calls [(1) ]() . This tool allows you to: - Add variables with different types: Text, Number, Enum, or Boolean - Extract values like names, phone numbers, or other custom data from user responses - Save these as dynamic variables for use in your agent ## Dynamic Variables in Outbound Calls For outbound calls specifically, the sources indicate that dynamic variables can be used with API calls [(2) ]() . However, there's a limitation mentioned: "Currently we haven't supported dynamic variable in dashboard, but you can test with phone call" . The recommendation is to "Use API to trigger the phone call with dynamic variable" , referencing the API documentation for creating phone calls. ## Post-Call Analysis Access For accessing call analysis data (including custom variables) after outbound calls, you can use webhooks [(3) ]() . The sources mention that "You can use the webhook and will receive a callback after the call is finished" , which would include post-call analysis data. ## CRM Integration for Variables While Retell AI doesn't have direct CRM integration, you can "export data from popular CRMs like Salesforce, HubSpot, and Zoho into Excel, then upload it into Retell AI" [(4) ]() . Dynamic variables such as "customer name" and "product name" can be added to the agent prompt for personalization . I don't have the specific API p
ayload structure for including custom variables in outbound calls in the available sources. You may want to check the API documentation directly or contact support for the exact implementation details.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[2] Populate Dynamic Variables (Outbound Web Call)](https://discord.com/channels/1186424376300679209/1228778382918156390) [[3] API Request](https://discord.com/channels/1186424376300679209/1322125824383520790) [[4] Outbound Call Centers & AI Voice Agents | Retell AI](https://www.retellai.com/blog/outbound-call-center-automation-and-the-role-of-ai-voice-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.