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

- Click Add Trigger in your workflow
- Search for “Webhook”
- Select Webhook Received trigger
Configuration Options

Webhook Selection
Choose an existing webhook or create a new one. Each webhook has its own unique URL and security settings.Follow-up Behavior

| 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

- 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

- Click Generate Secret to create a secure token
- Copy the secret key immediately

Using the Secret Key
Include the secret in your webhook requests:Webhook + AI Agent Pattern

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

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. |
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.