Graphrt

HubSpot

Contacts, companies, deals, tickets and other objects (list, get, search, create, update), associations, timeline notes, properties, pipelines, owners, archiving and association removal are node only, agent api_request limited to CRM read paths

Beta v0.1.0 Node.js 15 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the HubSpot CRM API. It works with contacts, companies, deals and tickets, and with other standard objects (notes, tasks, calls, meetings, emails, products, line items, quotes, leads). You can list, get, search, create and update records, associate them, and add notes to their timelines. It also reads properties, pipelines and owners.

What it can do

  • Records (object_type: contacts, companies, deals, tickets, notes, tasks, calls, meetings, emails, products, line_items, quotes, leads): - list_objects, get_object (also by a unique property, such as id_property: email) - search_objects: filter groups, a text query and one sort, up to 200 per page and 10,000 per search - create_object (optionally with associations) and update_object - archive_object: moves the record to the recycle bin, restorable for 90 days (node only)
  • Associations: - list_associations: labels included - associate_objects: the default association - remove_association (node only)
  • Notes: create_note takes text, a timestamp (default: now), an owner and plain lists of contact/company/deal/ticket ids. The plugin builds HubSpot's association array, using type ids 202, 190, 214 and 228.
  • Schema: - list_properties: internal names and dropdown options - list_pipelines: deal or ticket stages - list_owners - get_account_details: portal id, time zone, currency
  • api_request: any other endpoint. Agents get GET only, on CRM paths only (see Agent policy).

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • List records hubspot.list_objects
  • Get record hubspot.get_object
  • Search records hubspot.search_objects
  • Create record hubspot.create_object
  • Update record hubspot.update_object
  • Archive record hubspot.archive_object
  • List associations hubspot.list_associations
  • Associate records hubspot.associate_objects
  • Remove association hubspot.remove_association
  • Add note hubspot.create_note
Show all 15 actions
  • List properties hubspot.list_properties
  • List pipelines hubspot.list_pipelines
  • List owners hubspot.list_owners
  • Account details hubspot.get_account_details
  • HubSpot API request hubspot.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • HUBSPOT_ACCESS_TOKEN
    Private app access token (pat-...), sent as a Bearer token
  • HUBSPOT_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for HubSpot.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install hubspot
workflow.yaml
- id: find
  type: hubspot.get_object
  object_type: contacts
  object_id: "{{#start.email#}}"
  id_property: email
  properties: [firstname, lifecyclestage, hubspot_owner_id]
- id: company
  type: hubspot.create_object
  object_type: companies
  properties: { name: Acme, domain: acme.example }
- id: link
  type: hubspot.associate_objects
  from_object_type: contacts
  from_object_id: "{{#find.data.id#}}"
  to_object_type: companies
  to_object_id: "{{#company.data.id#}}"
- id: note
  type: hubspot.create_note
  body: "Demo booked for next Tuesday"
  contact_ids: ["{{#find.data.id#}}"]
  company_ids: ["{{#company.data.id#}}"]
- id: stage
  type: hubspot.update_object
  object_type: deals
  object_id: "{{#start.deal_id#}}"
  properties: { dealstage: closedwon }
Plugins in the docs