AgentSkillsCN

hubspot-create-company

在HubSpot CRM中创建新公司。当用户说“创建公司”、“添加公司”、“新公司”时加载。需要名称,可选域名、行业、城市。

SKILL.md
--- frontmatter
name: hubspot-create-company
description: "Create a new company in HubSpot CRM. Load when user says 'create company', 'add company', 'new company'. Requires name, optional domain, industry, city."

Create HubSpot Company

Specialized skill for creating companies in HubSpot CRM.

Pre-Flight Check

Before running, execute config check:

bash
python 00-system/skills/hubspot/hubspot-master/scripts/check_hubspot_config.py --json

If ai_action is not proceed_with_operation, follow hubspot-connect setup guide.


Usage

Required Parameters

  • --name - Company name (required)

Optional Parameters

  • --domain - Company website domain
  • --industry - Industry type
  • --city - City location
  • --phone - Company phone

Examples

Minimal (name only):

bash
python 00-system/skills/hubspot/hubspot-master/scripts/create_company.py \
  --name "Acme Corp" \
  --json

Full company:

bash
python 00-system/skills/hubspot/hubspot-master/scripts/create_company.py \
  --name "Acme Corp" \
  --domain "acme.com" \
  --industry "Technology" \
  --city "San Francisco" \
  --json

Output Format

json
{
  "id": "6493611979",
  "properties": {
    "name": "Acme Corp",
    "domain": "acme.com",
    "industry": "Technology",
    "createdate": "2025-12-13T10:00:00Z"
  }
}

Display Format

code
✅ Company created!
  ID: 6493611979
  Name: Acme Corp
  Domain: acme.com
  Industry: Technology
  City: San Francisco

Error Handling

ErrorSolution
401Invalid token - re-run setup
403Missing crm.objects.companies.write scope
409Company may already exist - search first
429Rate limited - wait and retry

Related Skills

  • hubspot-list-companies - List all companies
  • hubspot-search-companies - Find existing companies
  • hubspot-get-associations - Link contacts to company