Start a workflow from HubSpot events
To run a workflow when HubSpot reports a new or changed contact, company, deal, or ticket, add a Webhook block whose Source is HubSpot and give its URL to the webhooks of your HubSpot app. HubSpot posts up to 100 notifications in one request, as a list. Each notification in the list starts its own run.
You need a HubSpot app whose webhook settings and credentials you can open, edit access to the workflow’s project, and the member role or higher in the workspace to save the app’s secret on a connection. The HubSpot steps happen in HubSpot’s own console.
Add the Webhook block and generate its URL
Section titled “Add the Webhook block and generate its URL”- In a draft workflow, add a Webhook block. The block palette also lists HubSpot webhook in the Start group, which adds the block with its source already set.
- Under Source, choose HubSpot. The line under the setting reads “Verifies the signature · one run per event in a batch · skips duplicates”.
- Under Webhook URL, select Generate URL, then copy the URL.
The badge beside the URL reads “Runs start after publish”. The URL contains a token, and anyone who has the URL can send requests to it. Keep it out of shared documents.
Create the webhook subscriptions in HubSpot
Section titled “Create the webhook subscriptions in HubSpot”- In HubSpot, open your app’s webhook settings.
- Paste the URL you copied as the address the app’s webhooks send to.
- Subscribe the app to the event types you want, and save.
The Webhook block offers these HubSpot event types: contact.creation, contact.propertyChange, contact.deletion, company.creation, company.propertyChange, deal.creation, deal.propertyChange, deal.deletion, ticket.creation, and ticket.propertyChange.
Save the Client secret on a connection
Section titled “Save the Client secret on a connection”HubSpot signs each request with the app’s Client secret. That secret is the same for every webhook of the app, so OutWin does not save it on the block. You save it once on an API connection, and each Webhook block that receives from the app chooses that connection.
- In HubSpot, open the app’s settings and its Auth tab. Copy the Client secret under Client credentials.
- In OutWin, open Connections. If the workspace has no API connection for HubSpot, add one. In the dialog, leave Base URL empty and set Authentication to None. The connection then only receives events. If your workflows also call the HubSpot API, enter its base URL and credential instead, or add them later on the connection’s page. This guide does not need them.
- On the connection’s page, under Receiving events, paste the secret into the field that shows “Paste the signing secret” and select Save. The section then shows only a masked hint and the saved date, with Replace and Remove.
- In the block’s settings, under Connection that holds the client secret, choose the connection. Each connection in the list is marked “secret saved” or “no secret yet”.
The line under the setting then starts “Verifying with the secret ending”, followed by the hint. Under Set up, the second line changes to “The client secret is saved: deliveries are verified.”
In a workspace with no API connection, the setting shows “No API connections yet.” in place of the list, with an Add one link that opens Connections. If you choose a connection that has no secret, the line reads “This connection has no client secret yet.” with a Save it on the connection link to its page.
With a secret saved, OutWin also checks the time HubSpot signed the request. A request signed more than five minutes before or after the moment it arrives is listed as Refused.
Verification of HubSpot deliveries has not been confirmed with a real HubSpot request. OutWin accepts only HubSpot’s current signature, and HubSpot’s documentation does not state that webhook requests from an app carry it. If every delivery is listed as Refused with “The request carried no signature.” after you save the secret, HubSpot is not sending that signature. The secret is not at fault, and replacing it changes nothing. To receive the events unverified in the meantime, select Remove under Receiving events. That stops verification for every block that chose the connection.
With no connection chosen, or with a connection that has no secret, the block still starts runs, and nothing is verified: anyone who has the URL can start the workflow. Publishing then shows a warning that ends “has no signing secret saved, so its deliveries are not verified: anyone who has this URL can start this workflow”. The warning does not block publishing.
Choose which events start a run
Section titled “Choose which events start a run”Under Events that start a run, tick the event types that start a run. With none ticked, every notification HubSpot sends starts a run. To start runs for a type that is not listed, type it into the box under the list and select Add.
A notification whose type is not ticked is listed as Filtered out and starts no run. To narrow further by a field of the notification, add a row under Only when. For example, a row with the field body.propertyName starts runs for changes to one property only. Webhook settings lists the comparisons.
Send a test and check what arrived
Section titled “Send a test and check what arrived”- In HubSpot, do something that causes one of the subscribed events, such as creating a test contact.
- In OutWin, look under Recent deliveries in the block’s settings.
Recent deliveries lists every notification that reached the URL, including while the workflow is a draft. Notifications that arrived in one request are listed one by one, each marked with its place in the request, such as “2 of 5”. On a draft each is listed as Dropped with “The workflow is not published, so nothing ran.” It starts no run and is not run later. The last line under Set up changes from “Waiting for the first event…” to, for example, “Received contact.creation. Dropped.”
With a secret saved on the chosen connection, a notification listed as Dropped on a draft has passed the signature check. A delivery that fails the check is listed as Refused.
If you have edit access, select a notification to see what the block passed on. The list is kept for seven days, and the data of the newest 20 events is kept.
Read the event in the next block
Section titled “Read the event in the next block”Each run receives one HubSpot notification. An HTTP request block or a database block directly after the Webhook block reads it with these expressions. An AI block such as Think receives the whole value as its input.
| Expression | What it holds |
|---|---|
{{input.body}} |
The notification as HubSpot sent it, with fields such as subscriptionType, objectId, occurredAt, eventId, and subscriptionId. Other fields depend on the event type. |
{{input.body.objectId}} |
One field of the notification. Read any other field the same way. |
{{input.event.type}} |
The notification’s type, such as contact.creation. It is the notification’s subscriptionType field. |
{{input.event.id}} |
An id OutWin builds from the notification’s subscriptionId, objectId, occurredAt, propertyName, and eventId fields, because HubSpot does not guarantee that eventId alone is unique. |
{{input.event.time}} |
The notification’s time as an ISO 8601 date and time. {{input.body.occurredAt}} holds the same moment as HubSpot sent it, in milliseconds. |
{{input.delivery.verified}} |
true only when the signature was checked and passed. |
A notification names the record it is about in objectId. If the workflow needs fields of the contact, company, deal, or ticket that the notification does not hold, read the record from HubSpot’s API with an HTTP request block and {{input.body.objectId}}. That block needs a connection with HubSpot’s base URL and a credential. A connection that only receives events is not in its Connection list.
A block further along reads the same values through the Webhook block’s name, as in {{steps["HubSpot"].body.objectId}} for a block named HubSpot. Data and context describes what each block passes on.
Publish and check the runs
Section titled “Publish and check the runs”Publish the workflow. From then on, each notification that passes the filter starts a run. On a published workflow the block’s settings are read-only, including the choice of connection, and Recent deliveries is in the block’s inspector. You can still replace the secret on the connection’s page.
| Outcome | What happened |
|---|---|
| Ran | The notification started a run. |
| Waiting | 10 runs of the workflow are already active. The notification starts a run when one of them ends. A notification that waits longer than an hour is listed as Dropped. |
| Duplicate | A notification with the same id already ran in the last 72 hours. The line reads “This event was already received and run, so it did not run again.” |
Runs start in the order notifications arrive. That is not always the order things happened, so do not build a workflow that relies on contact.creation arriving before contact.propertyChange.
Receiving a notification costs no credits, and neither does one that is filtered out or a duplicate. A run that starts uses credits for the blocks that run in it.
If nothing runs
Section titled “If nothing runs”Open Recent deliveries and read the outcome and the sentence beside the newest notification.
| What you see | Cause | Fix |
|---|---|---|
| “Nothing has arrived yet.” | No request has reached the URL. | Check that the app is subscribed to the event you caused and that the address its webhooks send to is the block’s current URL. Rotate token on a published workflow changes the URL, and the old one stops working. |
| Dropped with “The workflow is not published, so nothing ran.” | The workflow is a draft. | Publish the workflow. Notifications that arrived before then are not run later. |
| Dropped with “The workflow is paused, so nothing ran.” | The workflow is paused. | Resume the workflow. Notifications that arrived while it was paused are not run later. |
Filtered out with Events of type "deal.creation" are not chosen on this trigger. |
The notification’s type is not ticked under Events that start a run. | Tick the type, or clear every tick so that all notifications start a run. The settings are read-only on a published workflow. |
| Refused with “The signature did not match. Check that the secret saved here is the one the sender shows for this URL.” | The secret on the chosen connection is not the Client secret of the app that sends the notifications. This can happen when the block chose another service’s connection, when the secret was copied from another app, or when the app’s secret was replaced in HubSpot. | Copy the Client secret from the app again and select Replace under Receiving events on the connection’s page. You do not republish the workflow. |
| Refused with “The request carried no signature.” | A secret is saved on the chosen connection, and the request did not carry the signature OutWin checks. If this is every delivery from HubSpot, HubSpot is not sending that signature for your app’s webhooks. | Replacing the secret does not help. To receive the events unverified, select Remove under Receiving events on the connection’s page. |
| Refused with “The request’s timestamp is too far from now, so it may be a replay of an old delivery.” | The request was signed more than five minutes before or after it arrived, for example because a saved copy of an earlier request was sent again. | Cause a new event in HubSpot. |
A delivery listed as Refused is answered with status 401 and starts nothing. OutWin keeps none of its data. For every other outcome in the table, HubSpot receives a success response and OutWin does not run the event later.