HubSpot CRM Automation via Rube MCP
Automate HubSpot CRM workflows including contact/company management, deal pipeline tracking, ticket search, and custom property creation through Composio's HubSpot toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active HubSpot connection via
RUBE_MANAGE_CONNECTIONS with toolkit hubspot
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit hubspot
- If connection is not ACTIVE, follow the returned auth link to complete HubSpot OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Manage Contacts
When to use: User wants to create new contacts or update existing ones in HubSpot CRM
Tool sequence:
HUBSPOT_GET_ACCOUNT_INFO - Verify connection and permissions (Prerequisite)
HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA - Search for existing contacts to avoid duplicates (Prerequisite)
HUBSPOT_READ_A_CRM_PROPERTY_BY_NAME - Check property metadata for constrained values (Optional)
HUBSPOT_CREATE_CONTACT - Create a single contact (Required)
HUBSPOT_CREATE_CONTACTS - Batch create contacts up to 100 (Alternative)
Key parameters:
HUBSPOT_CREATE_CONTACT: properties object with email, firstname, lastname, phone, company
HUBSPOT_CREATE_CONTACTS: inputs array of {properties} objects, max 100 per batch
HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA: filterGroups array with {filters: [{propertyName, operator, value}]}, properties array of fields to return
Pitfalls:
- Max 100 records per batch; chunk larger imports
- 400 'Property values were not valid' if using incorrect property names or enum values
- Always search before creating to avoid duplicates
- Auth errors from GET_ACCOUNT_INFO mean all subsequent calls will fail
2. Manage Companies
When to use: User wants to create, search, or update company records
Tool sequence:
HUBSPOT_SEARCH_COMPANIES - Search existing companies (Prerequisite)
HUBSPOT_CREATE_COMPANIES - Batch create companies, max 100 (Required)
HUBSPOT_UPDATE_COMPANIES - Batch update existing companies (Alternative)
HUBSPOT_GET_COMPANY - Get single company details (Optional)
HUBSPOT_BATCH_READ_COMPANIES_BY_PROPERTIES - Bulk read companies by property values (Optional)
Key parameters:
HUBSPOT_CREATE_COMPANIES: inputs array of {properties} objects, max 100
HUBSPOT_SEARCH_COMPANIES: filterGroups, properties, sorts, limit, after (pagination cursor)
Pitfalls:
- Max 100 per batch; chunk larger sets
- Store returned IDs immediately for downstream operations
- Property values must match exact internal names, not display labels
3. Manage Deals and Pipeline
When to use: User wants to search deals, view pipeline stages, or track deal progress
Tool sequence:
HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE - Map pipeline and stage IDs/names (Prerequisite)
HUBSPOT_SEARCH_DEALS - Search deals with filters (Required)
HUBSPOT_RETRIEVE_PIPELINE_STAGES - Get stage details for one pipeline (Optional)
HUBSPOT_RETRIEVE_OWNERS - Get owner/rep details (Optional)
HUBSPOT_GET_DEAL - Get single deal details (Optional)
HUBSPOT_LIST_DEALS - List all deals without filters (Fallback)
Key parameters:
HUBSPOT_SEARCH_DEALS: filterGroups with filters on pipeline, dealstage, createdate, closedate, hubspot_owner_id; properties, sorts, limit, after
HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE: objectType set to 'deals'
Pitfalls:
- Results nested under
response.data.results; properties are often strings (amounts, dates)
- Stage IDs may be readable strings or opaque numeric IDs; use
label field for display
- Filters must use internal property names (
pipeline, dealstage, createdate), not display names
- Paginate via
paging.next.after until absent
4. Search and Filter Tickets
When to use: User wants to find support tickets by status, date, or criteria
Tool sequence:
HUBSPOT_SEARCH_TICKETS - Search with filterGroups (Required)
HUBSPOT_READ_ALL_PROPERTIES_FOR_OBJECT_TYPE - Discover available property names (Fallback)
HUBSPOT_GET_TICKET - Get single ticket details (Optional)
HUBSPOT_GET_TICKETS - Bulk fetch tickets by IDs (Optional)
Key parameters:
HUBSPOT_SEARCH_TICKETS: filterGroups, properties (only listed fields are returned), sorts, limit, after
Pitfalls:
- Incorrect
propertyName/operator returns zero results without errors
- Date filtering may require epoch-ms bounds; mixing formats causes mismatches
- On
1---2name: hubspot-automation3description: Automate HubSpot CRM operations (contacts, companies, deals, tickets, properties) via Rube MCP using Composio integration. 4category: AI & Agents5source: antigravity6tags: [api, mcp, ai, automation, workflow]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/hubspot-automation8metadata:9 source: https://skillmd.com/skills/ranbot-ai/hubspot-automation10---111213# HubSpot CRM Automation via Rube MCP1415Automate HubSpot CRM workflows including contact/company management, deal pipeline tracking, ticket search, and custom property creation through Composio's HubSpot toolkit.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active HubSpot connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `hubspot`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.26271. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds282. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `hubspot`293. If connection is not ACTIVE, follow the returned auth link to complete HubSpot OAuth304. Confirm connection status shows ACTIVE before running any workflows3132## Core Workflows3334### 1. Create and Manage Contacts3536**When to use**: User wants to create new contacts or update existing ones in HubSpot CRM3738**Tool sequence**:391. `HUBSPOT_GET_ACCOUNT_INFO` - Verify connection and permissions (Prerequisite)402. `HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA` - Search for existing contacts to avoid duplicates (Prerequisite)413. `HUBSPOT_READ_A_CRM_PROPERTY_BY_NAME` - Check property metadata for constrained values (Optional)424. `HUBSPOT_CREATE_CONTACT` - Create a single contact (Required)435. `HUBSPOT_CREATE_CONTACTS` - Batch create contacts up to 100 (Alternative)4445**Key parameters**:46- `HUBSPOT_CREATE_CONTACT`: `properties` object with `email`, `firstname`, `lastname`, `phone`, `company`47- `HUBSPOT_CREATE_CONTACTS`: `inputs` array of `{properties}` objects, max 100 per batch48- `HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA`: `filterGroups` array with `{filters: [{propertyName, operator, value}]}`, `properties` array of fields to return4950**Pitfalls**:51- Max 100 records per batch; chunk larger imports52- 400 'Property values were not valid' if using incorrect property names or enum values53- Always search before creating to avoid duplicates54- Auth errors from GET_ACCOUNT_INFO mean all subsequent calls will fail5556### 2. Manage Companies5758**When to use**: User wants to create, search, or update company records5960**Tool sequence**:611. `HUBSPOT_SEARCH_COMPANIES` - Search existing companies (Prerequisite)622. `HUBSPOT_CREATE_COMPANIES` - Batch create companies, max 100 (Required)633. `HUBSPOT_UPDATE_COMPANIES` - Batch update existing companies (Alternative)644. `HUBSPOT_GET_COMPANY` - Get single company details (Optional)655. `HUBSPOT_BATCH_READ_COMPANIES_BY_PROPERTIES` - Bulk read companies by property values (Optional)6667**Key parameters**:68- `HUBSPOT_CREATE_COMPANIES`: `inputs` array of `{properties}` objects, max 10069- `HUBSPOT_SEARCH_COMPANIES`: `filterGroups`, `properties`, `sorts`, `limit`, `after` (pagination cursor)7071**Pitfalls**:72- Max 100 per batch; chunk larger sets73- Store returned IDs immediately for downstream operations74- Property values must match exact internal names, not display labels7576### 3. Manage Deals and Pipeline7778**When to use**: User wants to search deals, view pipeline stages, or track deal progress7980**Tool sequence**:811. `HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE` - Map pipeline and stage IDs/names (Prerequisite)822. `HUBSPOT_SEARCH_DEALS` - Search deals with filters (Required)833. `HUBSPOT_RETRIEVE_PIPELINE_STAGES` - Get stage details for one pipeline (Optional)844. `HUBSPOT_RETRIEVE_OWNERS` - Get owner/rep details (Optional)855. `HUBSPOT_GET_DEAL` - Get single deal details (Optional)866. `HUBSPOT_LIST_DEALS` - List all deals without filters (Fallback)8788**Key parameters**:89- `HUBSPOT_SEARCH_DEALS`: `filterGroups` with filters on `pipeline`, `dealstage`, `createdate`, `closedate`, `hubspot_owner_id`; `properties`, `sorts`, `limit`, `after`90- `HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE`: `objectType` set to `'deals'`9192**Pitfalls**:93- Results nested under `response.data.results`; properties are often strings (amounts, dates)94- Stage IDs may be readable strings or opaque numeric IDs; use `label` field for display95- Filters must use internal property names (`pipeline`, `dealstage`, `createdate`), not display names96- Paginate via `paging.next.after` until absent9798### 4. Search and Filter Tickets99100**When to use**: User wants to find support tickets by status, date, or criteria101102**Tool sequence**:1031. `HUBSPOT_SEARCH_TICKETS` - Search with filterGroups (Required)1042. `HUBSPOT_READ_ALL_PROPERTIES_FOR_OBJECT_TYPE` - Discover available property names (Fallback)1053. `HUBSPOT_GET_TICKET` - Get single ticket details (Optional)1064. `HUBSPOT_GET_TICKETS` - Bulk fetch tickets by IDs (Optional)107108**Key parameters**:109- `HUBSPOT_SEARCH_TICKETS`: `filterGroups`, `properties` (only listed fields are returned), `sorts`, `limit`, `after`110111**Pitfalls**:112- Incorrect `propertyName`/`operator` returns zero results without errors113- Date filtering may require epoch-ms bounds; mixing formats causes mismatches114- On