https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I feel this details on my ghl workflow to t...
# ask-retell-partners
a
Thanks for tagging me @xgabrielx_1. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) [[2] Live Workshop: Retell x GoHighLevel Integration](

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

) [[3] Here is how that can be fixed](https://retell.discourse.group/t/here-is-how-that-can-be-fixed/23) ​
### Answer To trigger an outbound call from GoHighLevel (GHL) to Retell AI, you'll use the Create Phone Call API [(1) ]() . Here's what you need to set up in your GHL workflow: Required API Details: - **Endpoint**: Use the Create Phone Call API - **API Key**: Your Retell API key for authorization - **from_number**: A phone number purchased from or imported to Retell (in E.164 format, e.g.,
"+14157774444"
) - **to_number**: The destination number in E.164 format (e.g.,
"+12137774445"
) - **override_agent_id**: The agent ID to handle the call (e.g.,
"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
) Example API Request Structure:
Copy code
javascript
import Retell from 'retell-sdk';

const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;

console.log(phoneCallResponse.agent_id) ;
Optional Parameters You Can Include: - **metadata**: Store custom data like internal customer IDs - **retell_llm_dynamic_variables**: Inject dynamic variables into your prompts (e.g.,
{"customer_name": "John Doe"}
) Integration Approach: [(2) ](

▾

) For GHL workflows, you can use private integrations . Some users prefer private integrations over the app marketplace for more secure connections . Important Setup Notes: [(3) ]() - Your
from_number
must be a phone number you've purchased and configured through Retell AI - The phone number should have an
outbound_agent_id
configured, or use the
override_agent_id
parameter - Use
override_agent_id
instead of
agent_id
, and
retell_llm_dynamic_variables
instead of
custom_data
Would you like more specific guidance on setting up the webhook or API call within your GHL workflow? **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @xgabrielx_1. I'll get back to you soon.
### Answer --- I don't have specific information in the available sources about troubleshooting date-related issues with appointment rescheduling in Retell AI agents. However, here are some general troubleshooting steps you can take: Check Your Agent Configuration: - Review your agent's prompt to ensure date handling instructions are clear and specific - Verify that any retell_llm_dynamic_variables related to dates are being passed correctly in the correct format - Ensure your agent is using the correct timezone settings Date Format Best Practices: - Use standardized date formats (ISO 8601 format: YYYY-MM-DD) in your prompts and dynamic variables - Explicitly instruct your agent on how to interpret and format dates in the prompt - Consider adding examples of correct date formatting in your agent's instructions Testing Approach: - Test your agent with specific date scenarios to identify the pattern of errors - Check the call logs and transcripts to see exactly what dates the agent is capturing vs. what it should be capturing - Review any function calling or API integrations that handle the actual appointment booking Since this is a specific implementation issue, I recommend: Check out these potentially useful sources: - [Create Agent]() - [Get Agent]() For more detailed troubleshooting assistance with your specific agent configuration: - Visit [Contact Sales]() - Visit [) Would you be able to share more details about how your agent is currently configured for appointment scheduling? That would help identify the specific issue.
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.