Webhooks Integration
Send Deway events to any custom endpoint for maximum flexibility.
Overview
The Webhooks integration lets you:
- Send events to your own backend or data pipeline
- Build custom workflows triggered by Deway activity
- Integrate with any tool that accepts HTTP webhooks
Setup
Prerequisites
- An active Deway account with the Web SDK installed
- A publicly accessible HTTPS endpoint that accepts POST requests
- Admin permissions in Deway
Step 1: Prepare Your Endpoint
Your endpoint must:
- Accept
POSTrequests - Accept
application/jsoncontent type - Return a
2xxstatus code to acknowledge receipt - Be accessible over HTTPS
Step 2: Configure in Deway
- Log into your Deway dashboard
- Navigate to Settings > Integrations
- Find Webhooks in the integrations list
- Click Connect
- Enter your endpoint URL
- Click Save
Payload Format
Deway sends a JSON payload for each event:
{
"event": "chats",
"timestamp": "2024-06-15T10:30:00Z",
"properties": {
"chat_id": "chat_abc123",
"actor": "user",
"chat_type": "ask-me-anything",
"tenant_id": "tenant_456"
},
"user_id": "user-789"
}
Events Sent
| Event | Description |
|---|---|
chats | Chat session created or updated |
walkthrough-progress | User completed a walkthrough step |
See the Integrations Overview for full event property details.
Retry Policy
If your endpoint returns a non-2xx status:
- Deway retries up to 3 times with exponential backoff
- After all retries fail, the event is dropped
Use Cases
Custom Data Pipeline
Forward events to your data warehouse (BigQuery, Snowflake, Redshift) for custom analytics.
Internal Alerting
Send events to PagerDuty, OpsGenie, or your internal alerting system.
Third-Party Integrations
Connect Deway to any tool with a webhook API — Zapier, Make, n8n, or your own microservices.
Troubleshooting
Events Not Arriving
- Verify the endpoint URL is correct and publicly accessible
- Check your server logs for incoming requests
- Ensure your endpoint returns a
2xxstatus code - Test your endpoint with
curl:curl -X POST https://your-endpoint.com/webhook \
-H "Content-Type: application/json" \
-d '{"event": "test"}'
Duplicate Events
If your endpoint is slow to respond (>5s), Deway may retry. Use the chat_id or event timestamp to deduplicate.