Skip to content

Set 'When a webhook is received' workflow triggers

Last updated: July 29, 2025

Available with any of the following subscriptions, except where noted:

Set enrollment triggers to automatically enroll records in a workflow when a webhook is received from an external third-party. Learn more about setting up your workflow enrollment.

Please note:

  • The workflow will only trigger if there is an existing record with a corresponding unique property value in your HubSpot account.
  • Webhook triggers only support incoming data sent with the application/json content-type.


To trigger a workflow from a webhook:

  1. In your HubSpot account, navigate to Automation > Workflows.
  2. Click the name of an existing workflow or create a new workflow.
  3. If you're creating a workflow from scratch:
    • In the left panel, click to expand the Custom events & external events section.
    • Click Received a webhook from an external app
  4. If you're working on an existing workflow:
    • In the workflow editor, click the Trigger enrollment for [object] card.
    • If there are existing workflow triggers, in the left panel, click Change start trigger. This will erase any current enrollment triggers. 
    • In the dialog box, click Confirm.
    • In the left panel, under Advanced options, click When a webhook is received.
  1. To add a new webhook, click + Add a webhook. You can create up to 100 unique webhook events.

workflow-add-webhook

 

  1. Add a Webhook event name. Then, click Next.
  2. Copy the Webhook URL and paste it into the webhook settings page of the app you want to integrate with. From your app, use the webhook URL to send a test event.

     

     
  3. In the Review your test event section, review the webhook event and make updates as necessary. Then, click Next.
  4. Map the data for your webhooks properties:
    • Edit the HubSpot property label as necessary.
    • Click the Data type dropdown menu to select a data type for each property label.
      • You can use string, enum, number, and boolean values.
      • Datetime properties are not supported and should be mapped as string values instead. After, you can use a custom code action with strtotime to convert to a date time object, and then use unixtimestamp to get a timestamp. 
    • To remove a property label, click the Delete icon.
  5. Click Next.
  6. Match your enrollment property by selecting a property from your third-party webhook that's an exact match for one of your HubSpot custom properties. Then, click Next.
  7. Click Continue to trigger setup.
  8. To use the webhook as an enrollment trigger, click the name of the webhook in the left panel. Then, click Save.
 
Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.