| title |
Sync Webhook sample |
| description |
Sample demonstrating synchronous webhook handling with multiple triggers |
| integrations |
|
| categories |
|
| tags |
webhook |
sync |
subscribe |
next_event |
http_outcome |
outcome |
essential |
|

This AutoKitteh project demonstrates how to handle synchronous webhooks with multiple triggers, showing how to wait for a second webhook before responding to the first one.
- First Webhook - Receives a webhook trigger that starts the workflow
- Wait for Second - Uses
subscribe and next_event to wait for the second webhook to be triggered
- Synchronous Response - Returns an HTTP response with the body from the second webhook
The workflow demonstrates:
- Synchronous webhook handling (
is_sync: true)
- Cross-trigger communication using
subscribe and next_event
- Custom HTTP responses using
http_outcome
- Copy the webhook URLs from the "Triggers" tab for both
first and second triggers (see the instructions here)
- Deploy the project
- Send a request to the
first webhook URL - this will start the workflow but won't respond immediately:
curl -i "${FIRST_WEBHOOK_URL}"
- While the first request is waiting, send a request to the
second webhook URL:
curl -i -d "Hello from second webhook" "${SECOND_WEBHOOK_URL}"
- The first webhook request will now complete and return a 200 response with the body from the second webhook.