Skip to main content

Documentation Index

Fetch the complete documentation index at: https://explore.airia.com/llms.txt

Use this file to discover all available pages before exploring further.

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

GroupActions
CompaniesCreate, Get, Get All
ContactsGet, Get All, Search, Upsert, Delete
DealsCreate, Get, Get All

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.
InputRequiredDescription
NameYesThe company name.
DomainNoThe company domain, for example example.com.
IndustryNoThe company’s industry.
PhoneNoThe company’s phone number.
CityNoThe company’s city.
StateNoThe company’s state or region.
CountryNoThe company’s country.
DescriptionNoA description of the company.

HubSpot Company Get

Retrieves a company by ID.
InputRequiredDescription
Company IDYesThe unique identifier of the company to retrieve.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.

HubSpot Company Get All

Lists companies.
InputRequiredDescription
LimitNoMaximum number of companies to return, from 1 to 100. Defaults to 100.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.
AfterNoPagination cursor returned by the previous request.

Contacts

HubSpot Contact Get

Retrieves a contact by ID.
InputRequiredDescription
Contact IDYesThe unique identifier of the contact to retrieve.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.

HubSpot Contact Get All

Lists contacts.
InputRequiredDescription
LimitNoMaximum number of contacts to return, from 1 to 100. Defaults to 100.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.
AfterNoPagination cursor returned by the previous request.
Searches for contacts.
InputRequiredDescription
QueryYesThe search query to match contacts against.
LimitNoMaximum number of results to return, from 1 to 100. Defaults to 10.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.
AfterNoPagination cursor returned by the previous request.

HubSpot Contact Upsert

Creates a contact, or updates the existing contact matched by email.
InputRequiredDescription
EmailYesThe contact’s email address. Used to match an existing contact for the upsert.
First NameNoThe contact’s first name.
Last NameNoThe contact’s last name.
PhoneNoThe contact’s phone number.
CompanyNoThe contact’s company.
WebsiteNoThe contact’s website.
Job TitleNoThe contact’s job title.
Lifecycle StageNoOne of subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, or other.

HubSpot Contact Delete

Deletes a contact.
InputRequiredDescription
Contact IDYesThe unique identifier of the contact to delete.

Deals

HubSpot Deal Create

Creates a new deal.
InputRequiredDescription
Deal NameYesThe deal name.
Deal StageNoThe deal stage, for example appointmentscheduled, qualifiedtobuy, closedwon, or closedlost.
PipelineNoThe pipeline ID the deal belongs to.
AmountNoThe monetary amount, entered as a fixed number.
Close DateNoThe close date in ISO 8601 format.
Deal TypeNoThe deal type, for example newbusiness or existingbusiness.
DescriptionNoA description of the deal.

HubSpot Deal Get

Retrieves a deal by ID.
InputRequiredDescription
Deal IDYesThe unique identifier of the deal to retrieve.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.

HubSpot Deal Get All

Lists deals.
InputRequiredDescription
LimitNoMaximum number of deals to return, from 1 to 100. Defaults to 100.
PropertiesNoA comma separated list of properties to return. Leave empty for the default set.
AfterNoPagination cursor returned by the previous request.

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.