Workflows
Blocks
Triggers
HubSpot Trigger

HubSpot Trigger

The HubSpot Trigger fires your workflow the moment a CRM event happens in HubSpot — such as a new contact being created, a deal stage changing, or a ticket being updated. It works via HubSpot's native Webhook subscription API.


Setup Guide

Step 1: Add the Trigger to Your Workflow
  1. Add the HubSpot Trigger block as your workflow's trigger.
  2. Select or create your HubSpot Credentials (OAuth or Private App token).
  3. Choose the event types you want to subscribe to (e.g., contact.creation, deal.propertyChange).
  4. (Optional) Enter your Client Secret from the HubSpot app for webhook signature verification.
  5. Note the Webhook URL displayed in the settings panel — you will register this in HubSpot.
Step 2: Register the Webhook in HubSpot
  1. Go to your HubSpot Developer account (opens in a new tab) and open your app.
  2. In the left sidebar, navigate to Webhooks.
  3. Click Add new subscription.
  4. Paste your Webhook URL from Step 1 as the target URL.
  5. Select the same event types you chose in the block settings (e.g., contact creation, deal property change).
  6. Click Create subscription and ensure its status is Active.

Tip: To verify webhook authenticity, copy the Client Secret from your HubSpot app's Auth settings and paste it into the trigger's Client Secret field.


Supported Event Types

Events are grouped by CRM object type:

GroupEvents
Contactcontact.creation, contact.deletion, contact.privacyDeletion, contact.propertyChange
Companycompany.creation, company.deletion, company.propertyChange
Dealdeal.creation, deal.deletion, deal.propertyChange
Ticketticket.creation, ticket.deletion, ticket.propertyChange
Productproduct.creation, product.deletion, product.propertyChange
Line ItemlineItem.creation, lineItem.deletion, lineItem.propertyChange
Conversationconversation.creation, conversation.deletion, conversation.newMessage, conversation.propertyChange

You can subscribe to multiple event types in a single trigger block.


Response Data

When the trigger fires, the following values are available as workflow variables:

VariableDescription
objectIdThe HubSpot object ID (contact, deal, etc.) that triggered the event
subscriptionTypeThe normalized event type (e.g., contact.creation)
portalIdYour HubSpot portal (account) ID
propertyNameFor propertyChange events: the property that changed
propertyValueFor propertyChange events: the new value of the property
changeSourceWhat caused the change (e.g., CRM, IMPORT, API)
eventIdUnique identifier for the webhook event
occurredAtUnix timestamp of when the event occurred
fullPayloadThe complete raw JSON payload from HubSpot

Webhook Signature Verification

HubSpot signs outgoing webhook payloads with your app's Client Secret using a SHA-256 HMAC. When a Client Secret is configured in the trigger settings, InditeAI will validate each incoming request and reject any that fail signature verification — protecting your workflow from unauthorized calls.

To enable this:

  1. Open your HubSpot app → Auth → copy the Client Secret.
  2. Paste it into the Client Secret field in the trigger settings panel.

Example Use Cases

  • Lead routing: When a new contact is created with a specific lifecycle stage, automatically assign them to a sales rep and send a Slack notification.
  • Deal updates: When a deal moves to Closed Won, trigger a contract generation and send a welcome email to the customer.
  • Ticket escalation: When a support ticket's priority changes to High, create a Jira issue and notify the on-call engineer.
  • Data sync: Mirror HubSpot contact property changes to an external database or Google Sheet in real-time.
  • Conversation handoff: When a new conversation message arrives, route it to an AI agent for an automated first response.

Troubleshooting

Workflow not triggering?

  • Confirm the webhook subscription in HubSpot is Active.
  • Ensure the workflow is Published and Active in InditeAI.
  • Verify the Webhook URL in HubSpot exactly matches the URL shown in the trigger settings.
  • Check that the subscribed event types in HubSpot match those selected in the block.

Signature verification errors?

  • Ensure the Client Secret in the trigger settings matches the one from your HubSpot app's Auth tab.
  • HubSpot sends signatures as X-HubSpot-Signature. Make sure no proxy is stripping this header.

propertyName / propertyValue are empty?

  • These fields are only populated for *.propertyChange events. Other event types (e.g., contact.creation) will not include them.
Indite Documentation v1.6.0
PrivacyTermsSupport