https://retellai.com/?utm_source=discord&utm_medium=seo logo
- I'm having trouble triggering an outbound call u...
# ❓・ai-evy-support
d
@AI Evy - I'm having trouble triggering an outbound call using an agent using go high level.
a
Thanks for tagging me @drivephaseco_51783. I'll look through relevant sources and get back to you shortly.
### Answer To trigger an outbound call using a Retell AI agent, you need to use the Retell API to create a phone call. The process involves: 1. Ensuring your agent is configured and bound to a phone number. 2. Using the createPhoneCall API with your agent and number details. Here’s an exact example using JavaScript (Node.js) :
Copy code
javascript
const registerCallResponse = await retell.call.createPhoneCall({
  from_number: '+14157774444', // your Retell number
  to_number: '+12137774445',   // the number you want to call
  retell_llm_dynamic_variables: { // optional personalization
    name: 'John Doe',
    blood_group: 'B+'
  },
  custom_sip_headers: { // optional SIP headers
    X-Custom-Header: 'Custom Value'
  }
}) ;
console.log(registerCallResponse) ;
[(1) ]() You can integrate this logic into your Go High Level workflow by sending a request to your own backend or server, which then calls this API. If you are using automation tools like n8n, you would set up an HTTP Request node to interact with the Retell API endpoint as shown above [(2) ]() . For more details, check the official documentation: [Outbound Calls (Make Calls) ]()
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Don't know how to trigger an outbound call from n8n.](https://discord.com/channels/1186424376300679209/1397716637410398310) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.