This message was deleted.
# cloud
s
This message was deleted.
✅ 1
b
I also tried with
Copy code
<https://xxxx:3001/join/>
in webhook setting but it didn’t work
b
Make sure your endpoint is accessible from the outside
Sorry to ask, but is that endpoint listening for webhook calls?
Make sure your endpoint is configured similar to : https://docs.livekit.io/realtime/server/webhooks/#receiving-webhooks
So in the end. in your LK cloud project, you should define the exact route as to where you want to webhook call to be made. such as
<https://xxx.com/webhook>
Which you would then parse out the request and then execute your code.
Hope this helps.
d
Your webhook URL has to match exactly the URL that you'd want us to post data to. For example, if your handler is
Copy code
<http://xxxx:3001/join/my-room>
you will need to put exactly that string into the webhook URL endpoint. (your initial post suggests that
/join/my-room
was left out From the Cloud dashboard, you should see a
Send test event
button under Actions. You can use it to send test events to your endpoint, to ensure that it's going through ok.
b
Ah got it. But in this case how can I make it dynamic like the demo which you guys have hosted here: https://livekit.io/kitt In this demo, whenever a participant joins a room, a gpt agent is connected to this room through webhook. I’m playing with same repository (https://github.com/livekit-examples/kitt.git) and have hosted the meet app on netlify and lkgpt-server on gcp. The only part that is bit unclear to me is how do I make this work in dynamic way, that is if a participant joins some room, I want to connect my gpt participant to that room If I put a hardcoded exact URL then gpt participant won’t join other rooms because room name is generated randomly right? Can you help me with understanding how the KITT demo is hosted?
Ah now I really got it! I just had to add /webhook after my URL and it worked 🙂
b
The data sent to the webhook callback will contain the room details.
🙌 1
b
Yes, I had setup my URL incorrectly. Its working perfectly now. Thanks a lot!