Skip to main content
HubSpot actions let an agent work with CRM records directly in a flow. An agent can create and read companies, search and upsert contacts, and create and list deals, then pass the results to later steps.

Supported actions

Prerequisites

Generate a private app access token in HubSpot, then store it as a HubSpot credential in Credential Management. Select that credential on every HubSpot action.

How to use these actions

  • Map text inputs from earlier steps. Text inputs accept a value mapped from a previous step. The Limit and Amount inputs take fixed values.
  • Choose which properties to return. The Properties input is a comma separated list of properties. Leave it empty to return the default set.
  • Page through results with the cursor. The Get All and Search actions return an After cursor. Pass that cursor into After on the next call to fetch the following page.
  • Upsert matches contacts by email. Contact Upsert creates a contact when no match exists and updates the existing contact when the email is already in HubSpot.

Actions

Companies

HubSpot Company Create

Creates a new company.

HubSpot Company Get

Retrieves a company by ID.

HubSpot Company Get All

Lists companies.

Contacts

HubSpot Contact Get

Retrieves a contact by ID.

HubSpot Contact Get All

Lists contacts. Searches for contacts.

HubSpot Contact Upsert

Creates a contact, or updates the existing contact matched by email.

HubSpot Contact Delete

Deletes a contact.

Deals

HubSpot Deal Create

Creates a new deal.

HubSpot Deal Get

Retrieves a deal by ID.

HubSpot Deal Get All

Lists deals.

Example

An agent that turns an inbound inquiry into a tracked deal:
1

Find or create the contact

A HubSpot Contact Upsert action maps Email from the inquiry and sets First Name, Last Name, and Company, creating the contact if it does not already exist.
2

Find the company

A HubSpot Contact Search action runs a Query for the company domain so a model step can confirm related records.
3

Create the deal

A HubSpot Deal Create action sets Deal Name, Deal Stage to appointmentscheduled, and Amount from the inquiry value.
4

Confirm

A model step summarizes the contact and deal, including their returned IDs, for the activity log.

Troubleshooting

Confirm the stored token is a valid private app access token and has not been rotated. Regenerate it in HubSpot and update the credential if needed.
The private app must grant the CRM scopes for the object you are calling, such as read and write access to companies, contacts, or deals. Update the app’s scopes in HubSpot.
Contact Upsert matches on Email. A different or misspelled email creates a new contact instead of updating the intended one. Confirm the email matches the existing record exactly.
Pass the After cursor from the previous response into the next call. Reusing an empty or stale cursor returns the first page again.
For issues common to every vendor, see the Actions overview.