Using Webhooks
Overview
Webhooks send HTTP POST requests to external URLs when events occur in Kulpunai.
Setting Up Webhooks
- Go to Settings → Integrations → Webhooks
- Click Add Webhook
- Enter:
- Webhook URL: Your endpoint
- Events: Which events to listen for
Supported Events
conversation_createdconversation_updatedconversation_status_changedmessage_createdmessage_updatedwebwidget_triggered
Payload Structure
{
"event": "message_created",
"id": 123,
"content": "Hello",
"conversation": {...},
"sender": {...},
"account": {...}
}
Use Cases
- Sync with CRM
- Send notifications to Slack
- Update external databases
- Trigger custom workflows
Security
- Validate webhook signatures
- Use HTTPS endpoints
- Implement retry handling