HubSpot CRM
The robomotion hubspot CLI connects to HubSpot CRM for contact, company, deal, and ticket management. It supports creating, reading, updating, and searching CRM objects with property filtering and association management.
When to use
- Create, update, or search contacts, companies, and deals
- Manage deal pipelines and ticket workflows
- Search CRM records with property filters
Prerequisites
robomotionCLI installed- Package installed:
robomotion install hubspot - HubSpot API key or OAuth2 token configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install hubspot - Connect with session:
robomotion hubspot connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion hubspot search_contacts --client-id "<client-id>" --query <query> --session-id "<session-id>" --output json - Disconnect when done:
robomotion hubspot disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion hubspot hubspot_connect --session --output jsonConnects to HubSpot CRM and returns a client ID for use in other nodesrobomotion hubspot hubspot_disconnect --client-id --session-id "<session-id>" --output jsonCloses the HubSpot connection and releases resourcesrobomotion hubspot hubspot_create_contact --client-id --email --first-name --last-name --phone --company --website --properties --session-id "<session-id>" --output jsonCreates a new contact in HubSpot CRMrobomotion hubspot hubspot_get_contact --client-id --contact-id --properties --session-id "<session-id>" --output jsonRetrieves a contact from HubSpot by IDrobomotion hubspot hubspot_update_contact --client-id --contact-id --email --first-name --last-name --phone --company --properties --session-id "<session-id>" --output jsonUpdates an existing contact in HubSpot CRMrobomotion hubspot hubspot_delete_contact --client-id --contact-id --session-id "<session-id>" --output jsonDeletes a contact from HubSpot CRMrobomotion hubspot hubspot_list_contacts --client-id --properties --after [--100] --session-id "<session-id>" --output jsonLists contacts from HubSpot CRM with paginationrobomotion hubspot hubspot_search_contacts --client-id --query --filters --properties --after [--100] [--sort-by] [--sort-direction] --session-id "<session-id>" --output jsonSearches for contacts in HubSpot CRM using filtersrobomotion hubspot hubspot_create_company --client-id --company-name --domain --industry --phone --city --country --description --properties --session-id "<session-id>" --output jsonCreates a new company in HubSpot CRMrobomotion hubspot hubspot_get_company --client-id --company-id --properties --session-id "<session-id>" --output jsonRetrieves a company from HubSpot by IDrobomotion hubspot hubspot_update_company --client-id --company-id --company-name --domain --industry --phone --properties --session-id "<session-id>" --output jsonUpdates an existing company in HubSpot CRMrobomotion hubspot hubspot_delete_company --client-id --company-id --session-id "<session-id>" --output jsonDeletes a company from HubSpot CRMrobomotion hubspot hubspot_list_companies --client-id --properties --after [--100] --session-id "<session-id>" --output jsonLists companies from HubSpot CRM with paginationrobomotion hubspot hubspot_search_companies --client-id --query --filters --properties --after [--100] [--sort-by] [--sort-direction] --session-id "<session-id>" --output jsonSearches for companies in HubSpot CRM using filtersrobomotion hubspot hubspot_create_deal --client-id --deal-name --amount --deal-stage --pipeline --close-date --deal-type --properties --session-id "<session-id>" --output jsonCreates a new deal in HubSpot CRMrobomotion hubspot hubspot_get_deal --client-id --deal-id --properties --session-id "<session-id>" --output jsonRetrieves a deal from HubSpot by IDrobomotion hubspot hubspot_update_deal --client-id --deal-id --deal-name --amount --deal-stage --close-date --properties --session-id "<session-id>" --output jsonUpdates an existing deal in HubSpot CRMrobomotion hubspot hubspot_delete_deal --client-id --deal-id --session-id "<session-id>" --output jsonDeletes a deal from HubSpot CRMrobomotion hubspot hubspot_list_deals --client-id --properties --after [--100] --session-id "<session-id>" --output jsonLists deals from HubSpot CRM with paginationrobomotion hubspot hubspot_search_deals --client-id --query --filters --properties --after [--100] [--sort-by] [--sort-direction] --session-id "<session-id>" --output jsonSearches for deals in HubSpot CRM using filtersrobomotion hubspot hubspot_create_ticket --client-id --subject --content --pipeline --status --priority --category --properties --session-id "<session-id>" --output jsonCreates a new support ticket in HubSpotrobomotion hubspot hubspot_get_ticket --client-id --ticket-id --properties --session-id "<session-id>" --output jsonRetrieves a ticket from HubSpot by IDrobomotion hubspot hubspot_update_ticket --client-id --ticket-id --subject --content --status --priority --properties --session-id "<session-id>" --output jsonUpdates an existing ticket in HubSpotrobomotion hubspot hubspot_delete_ticket --client-id --ticket-id --session-id "<session-id>" --output jsonDeletes a ticket from HubSpotrobomotion hubspot hubspot_list_tickets --client-id --properties --after [--100] --session-id "<session-id>" --output jsonLists tickets from HubSpot with paginationrobomotion hubspot hubspot_create_association --client-id --contacts --from-object-id --companies --to-object-id [--association-type] --session-id "<session-id>" --output jsonCreates an association between two HubSpot CRM objectsrobomotion hubspot hubspot_delete_association --client-id --contacts --from-object-id --companies --to-object-id [--association-type] --session-id "<session-id>" --output jsonRemoves an association between two HubSpot CRM objects
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)