Overview
While Lindy supports over 5,000 integrations out of the box, webhooks provide the ultimate flexibility for custom integrations. Use webhooks to trigger agent workflows from any system that can make HTTP requests — your own applications, third-party services, or custom scripts.Webhooks are ideal when you need real-time event processing or when working with systems that don’t have native Lindy integrations.
Adding a Webhook Trigger
![Add Trigger menu showing Webhook option in popular triggers and other triggers sections [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-add-trigger.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=876a03dbd039e673840a38dc64bfbd7d)
- Click Add Trigger in your workflow
- Search for “Webhook”
- Select Webhook Received trigger
Configuration Options
![Webhook configuration interface showing webhook selection and follow-up behavior options [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-show-fields-to-fill.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=9eb9b93a3c5f5a000cc350a61039abba)
Webhook Selection
Choose an existing webhook or create a new one. Each webhook has its own unique URL and security settings.Follow-up Behavior
![Follow-up behavior dropdown showing Handle in same task, Create new task, and Ignore options [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-follow-up-behavior.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=115cae76e5c7f1717a2735af5a009522)
| Option | Description |
|---|---|
| Handle in same task | Process follow-up requests in the same workflow |
| Create new task | Spawn a new task for each follow-up webhook call |
| Ignore | Ignore follow-up webhook requests |
Creating a New Webhook
![Create new webhook interface with name field and webhook list [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-create-webhook.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=636b879b466c0722b76974a5bde2289f)
- Click “Select an option” → “Create new”
- Enter a descriptive name for your webhook
- Press Enter to save and select the webhook
Security with Secret Keys
![Generate Secret button and copy to clipboard option for webhook security [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhok-generate-secret.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=511a98784f784122a9f1782b36345671)
- Click Generate Secret to create a secure token
- Copy the secret key immediately
![Secret key display with warning that it's only shown once [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-secret-generated.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=6714f621548c72fd936e3f8b39321762)
The secret key is only shown once! Copy it now and store it securely. You’ll need to include this in the Authorization header of all webhook requests.
Using the Secret Key
Include the secret in your webhook requests:Webhook + AI Agent Pattern
![Webhook trigger followed by AI Agent node in workflow [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-ai-agent.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=5866058a1b8a1fd7071dbcefc32875dc)
AI Agent Configuration
After your webhook trigger, add an AI Agent to:- Analyze incoming webhook data
- Make decisions based on content
- Execute multiple actions conditionally
- Handle complex business logic
![AI Agent skills panel showing Send POST Request to Callback as a suggested skill [[memory:2619471]]](https://mintcdn.com/lindyai/6m-Rdk3yJVAHqZQC/lindy-brand-assets/lindy-webhook-ai-agent-skills.png?fit=max&auto=format&n=6m-Rdk3yJVAHqZQC&q=85&s=1bb10d0d7759ca034df9c30604b51471)
Essential AI Agent Skills
Suggested skill for webhooks:- Send POST Request to Callback - Respond back to the original request sender
- HTTP Request - Call other APIs based on webhook data
- Update Spreadsheet - Log webhook data
- Send Email/Slack - Notify teams
- Search Knowledge Base - Enrich with context
- Create Calendar Event - Schedule based on webhooks
- Run Code - Custom data transformations
Working with Webhook Data
Access webhook data from the trigger in any subsequent step using the following variables:| Data Source | Variable Reference | Description |
|---|---|---|
| Request Body | {{webhook_received.request.body}} | The full JSON payload from the request. |
| Headers | {{webhook_received.request.headers}} | All request headers. |
| Query Params | {{webhook_received.request.query}} | Any parameters from the webhook URL. |
Use AI Prompt mode in action fields to intelligently extract and use specific fields from your webhook payload.
Callback Responses
Send POST Request to Callback
Send POST Request to Callback
When you need to respond to the webhook sender:
- Include a
callbackURLfield in your webhook request body - Add the “Send POST Request to Callback” action
- Configure your response data
Response Patterns
Response Patterns
Common callback scenarios:
- Acknowledge receipt with status
- Return processed results
- Send error messages
- Provide async job IDs
Best Practices
Secure Your Webhooks
Secure Your Webhooks
Always use secret keys and validate incoming requests to protect your workflows from unauthorized access.
Handle Errors Gracefully
Handle Errors Gracefully
Add error handling conditions after webhook processing to manage unexpected issues and ensure reliability.
Test Thoroughly
Test Thoroughly
Use tools like Postman to test your webhook endpoints with different scenarios before deploying to production.