When to Use Webhooks
Step-by-Step Setup
Step 1: Create the Workflow
- Go to Workflows in the sidebar
- Click New Workflow
- Name it (e.g., “Website Form Submission”)
Step 2: Configure the Webhook Trigger
- Click on the trigger block
- Select Webhook
- You’ll receive a unique webhook URL in the Live URL field, like:
- Copy this URL—you’ll need it for your external service
- Set HTTP method to POST (or GET if your service sends no body)
Step 3: Define Expected Data Structure
For POST requests, define the expected body structure:- Find the Expected Body field
- Enter a sample JSON that matches what your service will send:
- Changes save automatically and create variables you can use in subsequent steps
Step 4: Add Actions
Now add actions that use the webhook data: Example: Create a Person record- Add Create Record action
- Select People object
- Map fields:
Step 5: Test the Webhook
Before activating, click Test to run the workflow with your expected body as sample data. The webhook URL itself only starts runs once the workflow is activated (Step 6), so send real requests after that: Using cURL:- Create a POST request to your webhook URL
- Set Content-Type header to
application/json - Add your test JSON body
- Send and check workflow runs
Step 6: Activate
Once tested, click Activate to make the workflow live. Then send a test request as shown in Step 5.Handling Different Data Structures
Nested Data
If your webhook sends nested data:{{trigger.contact.email}}
Arrays
If data includes arrays:{{code.items}}
Known/specific fields → Extract to named fields
If the array contains specific fields you want to access individually (e.g., form answers where position 0 is always “first name”, position 1 is always “last name”), add a Code action to extract them:
product.name and product.qty individually in subsequent steps.