Incoming Custom Conductor Webhook using cURL
This tutorial demonstrates how to create a custom webhook in Orkes Conductor and trigger it with a cURL request.
In this tutorial, you will:
- Create a Conductor workflow with a Wait for Webhook task.
- Set up a custom webhook in Conductor to receive events.
- Run the workflow.
- Send a cURL request to trigger the webhook.
- Verify incoming webhook requests.
To follow along, ensure you have access to the free Developer Edition.
Step 1: Create a workflow in Conductor
Create a workflow with a Wait for Webhook task to receive webhook events.
To create a workflow:
- Go to Definitions > Workflows from the left menu on your Conductor cluster.
- Select + Define workflow.
- In the Code tab, paste the following code:
{
"name": "sample-webhook-demo-using-curl",
"description": "Sample workflow for demonstration",
"version": 1,
"tasks": [
{
"name": "webhook_task",
"taskReferenceName": "webhook_task_ref",
"inputParameters": {
"matches": {
"$['event']['type']": "${workflow.input.type}"
}
},
"type": "WAIT_FOR_WEBHOOK"
}
],
"inputParameters": [],
"outputParameters": {},
"schemaVersion": 2
}
- Select Save > Confirm.
Your workflow will look like this:
