Hubspot automation

From Zidong-LLC/BIBLIOTECA · View interactive version

Hubspot automation is an AI agent skill from the GitHub repository Zidong-LLC/BIBLIOTECA. Automate HubSpot CRM operations (contacts, companies, deals, tickets, properties) via Rube MCP using Composio integration.

How to use this skill

Skill file

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

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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit hubspot
  3. If connection is not ACTIVE, follow the returned auth link to complete HubSpot OAuth
  4. 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:

  1. HUBSPOT_GET_ACCOUNT_INFO - Verify connection and permissions (Prerequisite)
  2. HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA - Search for existing contacts to avoid duplicates (Prerequisite)
  3. HUBSPOT_READ_A_CRM_PROPERTY_BY_NAME - Check property metadata for constrained values (Optional)
  4. HUBSPOT_CREATE_CONTACT - Create a single contact (Required)
  5. HUBSPOT_CREATE_CONTACTS - Batch create contacts up to 100 (Alternative)

Key parameters:

Pitfalls:

2. Manage Companies

When to use: User wants to create, search, or update company records

Tool sequence:

  1. HUBSPOT_SEARCH_COMPANIES - Search existing companies (Prerequisite)
  2. HUBSPOT_CREATE_COMPANIES - Batch create companies, max 100 (Required)
  3. HUBSPOT_UPDATE_COMPANIES - Batch update existing companies (Alternative)
  4. HUBSPOT_GET_COMPANY - Get single company details (Optional)
  5. HUBSPOT_BATCH_READ_COMPANIES_BY_PROPERTIES - Bulk read companies by property values (Optional)

Key parameters:

Pitfalls:

3. Manage Deals and Pipeline

When to use: User wants to search deals, view pipeline stages, or track deal progress

Tool sequence:

  1. HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE - Map pipeline and stage IDs/names (Prerequisite)
  2. HUBSPOT_SEARCH_DEALS - Search deals with filters (Required)
  3. HUBSPOT_RETRIEVE_PIPELINE_STAGES - Get stage details for one pipeline (Optional)
  4. HUBSPOT_RETRIEVE_OWNERS - Get owner/rep details (Optional)
  5. HUBSPOT_GET_DEAL - Get single deal details (Optional)
  6. HUBSPOT_LIST_DEALS - List all deals without filters (Fallback)

Key parameters:

Pitfalls:

4. Search and Filter Tickets

When to use: User wants to find support tickets by status, date, or criteria

Tool sequence:

  1. HUBSPOT_SEARCH_TICKETS - Search with filterGroups (Required)
  2. HUBSPOT_READ_ALL_PROPERTIES_FOR_OBJECT_TYPE - Discover available property names (Fallback)
  3. HUBSPOT_GET_TICKET - Get single ticket details (Optional)
  4. HUBSPOT_GET_TICKETS - Bulk fetch tickets by IDs (Optional)

Key parameters:

Pitfalls:

5. Create and Manage Custom Properties

When to use: User wants to add custom fields to CRM objects

Tool sequence:

  1. HUBSPOT_READ_ALL_PROPERTIES_FOR_OBJECT_TYPE - List existing properties (Prerequisite)
  2. HUBSPOT_READ_PROPERTY_GROUPS_FOR_OBJECT_TYPE - List property groups (Optional)
  3. HUBSPOT_CREATE_PROPERTY_FOR_SPECIFIED_OBJECT_TYPE - Create a single property (Required)
  4. HUBSPOT_CREATE_BATCH_OF_PROPERTIES - Batch create properties (Alternative)
  5. HUBSPOT_UPDATE_SPECIFIC_CRM_PROPERTY - Update existing property definition (Optional)

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

Pagination

Batch Operations

Known Pitfalls

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Create contact | HUBSPOT_CREATE_CONTACT | properties: {email, firstname, lastname} |

| Batch create contacts | HUBSPOT_CREATE_CONTACTS | inputs: [{properties}] (max 100) |

| Search contacts | HUBSPOT_SEARCH_CONTACTS_BY_CRITERIA | filterGroups, properties, limit, after |

| Create companies | HUBSPOT_CREATE_COMPANIES | inputs: [{properties}] (max 100) |

| Search companies | HUBSPOT_SEARCH_COMPANIES | filterGroups, properties, after |

| Search deals | HUBSPOT_SEARCH_DEALS | filterGroups, properties, after |

| Get pipelines | HUBSPOT_RETRIEVE_ALL_PIPELINES_FOR_SPECIFIED_OBJECT_TYPE | objectType: 'deals' |

| Search tickets | HUBSPOT_SEARCH_TICKETS | filterGroups, properties, after |

| List properties | HUBSPOT_READ_ALL_PROPERTIES_FOR_OBJECT_TYPE | objectType |

| Create property | HUBSPOT_CREATE_PROPERTY_FOR_SPECIFIED_OBJECT_TYPE | objectType, name, label, type, fieldType |

| Get owners | HUBSPOT_RETRIEVE_OWNERS | None |

| Verify connection | HUBSPOT_GET_ACCOUNT_INFO | None |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.