Skip to main content

When to Use Webhooks

Step-by-Step Setup

Step 1: Create the Workflow

  1. Go to Workflows in the sidebar
  2. Click New Workflow
  3. Name it (e.g., “Website Form Submission”)

Step 2: Configure the Webhook Trigger

  1. Click on the trigger block
  2. Select Webhook
  3. You’ll receive a unique webhook URL in the Live URL field, like:
  4. Copy this URL—you’ll need it for your external service
  5. 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:
  1. Find the Expected Body field
  2. Enter a sample JSON that matches what your service will send:
  1. 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
  1. Add Create Record action
  2. Select People object
  3. 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:
Using Postman or similar:
  1. Create a POST request to your webhook URL
  2. Set Content-Type header to application/json
  3. Add your test JSON body
  4. 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:
Reference with: {{trigger.contact.email}}

Arrays

If data includes arrays:
How you handle arrays depends on your use case: Unknown number of items → Use Iterator If you need to process each item in the array (e.g., create a record for each), add a Code action to parse the array, then use Iterator:
Then use Iterator to loop through: {{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:
Now you can select product.name and product.qty individually in subsequent steps.
For more details on handling arrays, see Handle Arrays in Code Actions.