https://retellai.com/?utm_source=discord&utm_medium=seo logo
Guys I have a question, after I trigger retell to ...
# ❓・ai-evy-support
d
@AI Evy Guys I have a question, after I trigger retell to check appointment on Go high level, it doesn't seems to be wait and book the appointment directly. I am using n8n to triggers the chain btw
a
Thanks for tagging me @DIAN. I'll look through relevant sources and get back to you shortly.
### Answer Based on the Retell AI + GoHighLevel + n8n integration documentation, this issue typically occurs when the appointment booking workflow isn't properly configured to wait for responses between steps [(1) ](

▾

) . In the workshop, the proper flow should be: 1. Check availability function gets called first [(2) ](

▾

) 2. Agent waits for available slots to be returned 3. Customer selects a time 4. Book appointment function gets triggered to confirm the booking The key is in your prompt logic - you need to define scenarios where the appointment booking functions will be triggered sequentially [(3) ]() . For example: "Call the 'Check Availability' function and provide available slots to the customer. When the customer selects a time, trigger the 'Book Appointment' function to confirm the booking" . Since you're using n8n to trigger the chain, make sure your n8n workflow is configured to: - Return the availability data back to Retell before proceeding [(4) ]() - Wait for the customer's selection before executing the booking step - Have proper error handling between each step The workshop specifically mentions that you need to set up the functions properly and "make sure to configure the correct time zone settings on both the Cal.com platform and the Retell AI dashboard" [(3) ]() for accurate scheduling. If the agent is jumping straight to booking without waiting for customer input, review your prompt logic to ensure it's structured to handle the sequential flow properly [(1) ](

▾

) [(2) ](

▾

) .
​ To learn more, see the sources I considered: [[1] Live Workshop: Retell x GoHighLevel Integration](

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

) [[2] Live Workshop: Retell x GoHighLevel Integration](

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

) [[3] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[4] Connect AI call agent to n8n](https://www.retellai.com/integrations/n8n) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy so how can I use retell trigger go high level check avaiablility and then use retell to book appointment
a
Thanks for the follow-up, @DIAN. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific documentation about triggering GoHighLevel directly through Retell AI for appointment booking. The sources show how to integrate with Cal.com for appointment booking [(1) ]() [(2) ]() , but not direct GoHighLevel integration. However, from the workshop transcript, the approach involves using custom functions to connect to GoHighLevel [(3) ](

▾

) . The key steps mentioned are: 1. **Set up custom functions**: Create "Check Availability" and "Book Appointments" functions in your agent [(2) ]() 2. **Configure your integration**: Connect to your GoHighLevel account through custom function calls rather than built-in tools [(3) ](

▾

) 3. **Structure your prompt logic**: Define when each function should be triggered [(2) ]() The workshop transcript indicates that for GoHighLevel integration, you would create custom functions that send information to GHL through your booking process [(3) ](

▾

) . As mentioned in the transcript: "our function... we're going to be creating are going to be sending the information to GHL, to whatever system that you need that to go to" . For the sequential flow you need: - First call your custom "check availability" function to retrieve open slots from GoHighLevel [(2) ]() - Present available slots to the customer - When customer selects a time, trigger your custom "book appointment" function Since the sources don't contain the specific GoHighLevel API integration code, I'd recommend: Visit [Contact S
ales]() or visit [) for specific GoHighLevel integration guidance. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[3] Live Workshop: Retell x GoHighLevel Integration](

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

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy , I don't see yielding or timeout in webhook in N8N. Do you know where I can find those ?
a
Thanks for the follow-up, @DIAN. I'll get back to you soon.
### Answer Based on the Retell AI documentation, the timeout configuration is handled on Retell AI's side, not in n8n [(1) ]() . The webhook has a timeout of 10 seconds, and if no success status (2xx) is received within that timeframe, the webhook will be retried up to 3 times . For webhooks in Retell AI, you simply need to return a successful status code (2xx) from your n8n webhook endpoint . No specific yielding or timeout configuration is required on the n8n side - you just need to ensure your webhook responds within the 10-second window . The webhook specification shows that Retell AI expects a successful status code with no body required . Here's the sample code structure for handling webhooks:
Copy code
javascript
app.post("/webhook", (req: Request, res: Response) => {
 if (
 !Retell.verify(
 JSON.stringify(req.body) ,
 process.env.RETELL_API_KEY,
 req.headers["x-retell-signature"] as string,
 )
 ) {
 console.error("Invalid signature") ;
 return;
 }
 const {event, call} = req.body;
 // process the webhook
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
[(2) ]() If you're looking for timeout or yielding settings specifically within n8n's webhook node configuration, those would be n8n-specific settings rather than Retell AI configurations. The key is ensuring your n8n webhook responds with a 2xx status code within Retell AI's 10-second timeout window [(1) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Secure the webhook](https://docs.retellai.com/features/secure-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy The answer looks right but I have done all these , I need the response back before Retell going to next step
a
Thanks for the follow-up, @DIAN. I'll get back to you soon.
### Answer Based on the Retell AI webhook documentation and the Discord thread about similar issues, the key is ensuring your webhook handler responds immediately with a 200 OK status while processing the actual workflow asynchronously [(1) ]() [(2) ]() . From the Discord discussion, the recommended approach is to configure your webhook handler to respond immediately with a 200 OK, potentially with an override agent ID, then launch your n8n workflow asynchronously upon receiving this webhook via an HTTP request or webhook trigger [(2) ]() . This lets Retell receive the webhook and stay in control while calls proceed, but you can delay actions downstream . The webhook specification shows that webhooks have a timeout of 10 seconds, and if within 10 seconds no success status (2xx) is received, the webhook will be retried up to 3 times [(1) ]() . The webhook will be triggered in order but is not blocking . For your specific case where you need the response back before Retell goes to the next step, you'll want to: 1. Set up your n8n webhook to respond immediately with a 200 status 2. Use the webhook response to return any data Retell needs (like appointment availability) 3. Process the actual GoHighLevel integration asynchronously The issue mentioned in the Discord thread shows that when the agent doesn't wait for inbound webhook data, it's often because the webhook isn't responding quickly enough or isn't structured to return the necessary data synchronously [(2) ]() . Visit [Contact Sales]() or [
s://github.com/RetellAI/) for more specific guidance on webhook response handling. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] agent is not waiting for inbound response](https://discord.com/channels/1186424376300679209/1399757938532552704) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy What is a support yeilding
a
Thanks for the follow-up, @DIAN. I'll get back to you soon.
### Answer Based on the available Retell AI documentation, I don't find any specific reference to "support yielding" as a defined term or feature within Retell AI's webhook system [(1) ]() . The webhook documentation shows that webhooks have a timeout of 10 seconds, and if within 10 seconds no success status (2xx) is received, the webhook will be retried up to 3 times . The webhook will be triggered in order but is not blocking . For webhooks, Retell AI expects a successful status code (2xx) to be returned with no body expected . The webhook specification shows:
Copy code
json
{
 "event": "call_ended",
 "call": {
 "call_type": "phone_call",
 "from_number": "+12137771234",
 "to_number": "+12137771235",
 "direction": "inbound",
 "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "call_status": "registered",
 "metadata": {},
 "retell_llm_dynamic_variables": {
 "customer_name": "John Doe"
 },
 "start_timestamp": 1714608475945,
 "end_timestamp": 1714608491736,
 "disconnection_reason": "user_hangup",
 "transcript": "...",
 "transcript_object": [ [Object], [Object], [Object], [Object] ],
 "transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
 "opt_out_sensitive_data_storage": false
 }
}
If you're looking for a way to control the flow or timing of webhook responses in your integration, the documentation doesn't mention "support yielding" as a specific feature. Visit [Contact Sales]() or [) for more specific guidance on webhook response handling. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.