https://retellai.com/?utm_source=discord&utm_medium=seo logo
We are seeing a constant issue in GHL with the cre...
# ❓・ai-evy-support
j
@AI Evy We are seeing a constant issue in GHL with the create phone call action, having this error during the execution: Action Error - Action Error - Error: Timedout occur
a
Thanks for tagging me @Juan Andres Quiroga Monje. I'll look through relevant sources and get back to you shortly.
### Answer The timeout error you're experiencing with the GHL (GoHighLevel) "Create Phone Call" action is a known issue when using GHL's built-in Retell integration. Based on community feedback, using an HTTP request instead with your API key is the recommended workaround. [(1) ]() Recommended Solution: Instead of using the native "Create Phone Call" action in GHL workflows, use an HTTP request to call the Retell API directly with your API key in the headers. Here's the correct API call structure using the SDK:
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) ;
[(2) ]() Key requirements for the API call: - `from_number`: Must be a number purchased from or imported to Retell, in E.164 format - `to_number`: The destination number in E.164 format (e.g.,
+12137774445
, not
(213) 777-4445
) , [(3) ]() If you continue experiencing timeouts, check: 1. Your API key is valid and correctly set in the Authorization header [(1) ]() 2. Phone numbers are in E.164 format [(2) ]() 3. Review the call logs in the Retell Dashboard for specific disconnection reasons [(4) ]() Check out these potentially useful sources: - [Create Phone Call API]() - [Debug outbound connection issues]() - [SDKs]()
​ To learn more, see the sources I considered: [[1] "Authorization header required"](https://discord.com/channels/1186424376300679209/1417963292327936101) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Retell + Sympana + GoHighLevel: outbound call creates web_call + error_user_not_joined (no PSTN ring) — phone mapping issue?](https://community.retellai.com/t/retell-sympana-gohighlevel-outbound-call-creates-web-call-error-user-not-joined-no-pstn-ring-phone-mapping-issue/704) [[4] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.