Handling Webhooks
Introduction
Webhooks are a way for your app to receive events from Langburp.
You technically don't need to setup webhooks for your app to work. They are only necessary if you need to receive events from Langburp, for example, when a user sends a message to your chat app.
Configuring Your Webhook URL in Langburp
Before you can receive webhooks, you'll need to configure your webhook URL in your Langburp project.
- Navigate to the Webhook tab in your Langburp project (under the Settings section in the sidebar).
- Click the Add Webhook button.
- Enter the URL of your webhook. This should be a publicly accessible HTTPS endpoint that can receive POST requests (e.g.
https://your-domain.com/api/langburp/webhook
). - Click the Save button.
During development, you can use ngrok to expose your local server to the internet. After installing ngrok, run ngrok http 3000
to get a public URL that forwards to your local server (e.g. https://abc123.ngrok.io/api/langburp/webhook
). Use this URL as your webhook URL in the Langburp Console.