Webhook Setup Guide
Trigger your AI agents from any external system using webhooks. No coding required for basic setups.
π In This Guide
What are Webhooks?
Webhooks are automated messages sent from one system to another when something happens. Think of them as "push notifications for servers" - instead of constantly checking for updates, your AI agent receives data instantly when an event occurs.
π― Common Use Cases
- β’ Form submissions - Trigger lead qualification when someone fills out a contact form
- β’ CRM events - Run workflows when a deal stage changes in HubSpot or Salesforce
- β’ E-commerce - Send order confirmations or track abandoned carts
- β’ Support tickets - Auto-triage incoming support requests
Getting Your Webhook URL
Every agent gets a unique webhook URL that you can use to trigger it. Here's how to find it:
Go to your Dashboard
Navigate to dashboard and click on the agent you want to configure.
Open Agent Settings
Click the "Settings" or "Configure" button on your agent card.
Copy Webhook URL
Find the "Webhook URL" section and click the copy button.
https://agents.inteliworks.com/webhook/wh_a1b2c3d4e5f6g7h8 Keep Your URL Secret
Your webhook URL is like a password. Anyone with this URL can trigger your agent. Don't share it publicly or commit it to public repositories.
Sending Data to Your Webhook
Webhooks accept data via HTTP POST requests with JSON body. Here's the format:
POST https://agents.inteliworks.com/webhook/wh_a1b2c3d4e5f6g7h8
Content-Type: application/json
{
"name": "John Smith",
"email": "john@example.com",
"company": "Acme Corp",
"message": "I'm interested in your enterprise plan",
"source": "contact_form"
} Data Field Mapping
Your agent automatically maps common field names. Here are the supported fields:
| Field | Aliases | Description |
|---|---|---|
| email_address, user_email | Contact email address | |
| name | full_name, contact_name | Full name of contact |
| company | company_name, organization | Company or organization name |
| phone | phone_number, tel | Phone number |
| message | content, body, inquiry | Message or inquiry content |
Custom Fields
You can send any additional fields - they'll be available in your agent's workflow for custom processing.
Webhook Authentication
For additional security, you can require authentication on your webhooks. We support two methods:
π API Key Header
Simple authentication using an API key in the request headers.
# Header format
X-API-Key: your_api_key_here
π Signature Verification
HMAC signature verification for maximum security.
# Header format
X-Signature: sha256=abc123...
Enabling Authentication
- Go to your agent's Settings page
- Find the "Webhook Security" section
- Choose your authentication method
- Copy the generated API key or signing secret
- Add the appropriate header to your webhook requests
Testing Your Webhook
Before going live, test your webhook to make sure everything is configured correctly.
Using cURL
curl -X POST https://agents.inteliworks.com/webhook/wh_a1b2c3d4e5f6g7h8 \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key" \
-d '{
"name": "Test User",
"email": "test@example.com",
"company": "Test Corp",
"message": "This is a test message"
}' Expected Response
{
"success": true,
"executionId": "exec_xyz789",
"message": "Webhook received, agent triggered"
} Using the Built-in Tester
You can also test directly from your dashboard:
- Go to your agent's settings page
- Click "Test Webhook"
- Fill in sample data or use a template
- Click "Send Test" and watch the execution logs
Common Integration Examples
Typeform
- In Typeform, go to Connect β Webhooks
- Click "Add a webhook"
- Paste your Inteliworks webhook URL
- Typeform will automatically send form submissions
Webflow
- In Webflow, go to Project Settings β Integrations
- Add a new webhook under "Form Submissions"
- Paste your Inteliworks webhook URL
- Select which forms should trigger the webhook
Zapier
- Create a new Zap with your desired trigger
- Add "Webhooks by Zapier" as an action
- Choose "POST" method
- Enter your Inteliworks webhook URL
- Map your trigger data to the JSON payload
WordPress (Contact Form 7)
- Install the "CF7 to Webhook" plugin
- Go to Contact β your form β Integration
- Add your Inteliworks webhook URL
- Map form fields to JSON field names
Troubleshooting
β 401 Unauthorized
Your API key is missing or invalid.
Fix: Check that you're sending the correct X-API-Key header.
β 400 Bad Request
The JSON payload is malformed or missing required fields.
Fix: Validate your JSON at jsonlint.com and ensure Content-Type is application/json.
β 404 Not Found
The webhook URL doesn't exist or has been deleted.
Fix: Double-check the URL from your dashboard. URLs change if you delete and recreate an agent.
β 500 Internal Server Error
Something went wrong on our end.
Fix: Wait a few minutes and try again. If it persists, contact support.