AgentSkillsCN

hubspot-update-contact

更新HubSpot CRM中的现有联系人。当用户说“更新联系人”、“编辑联系人”、“修改联系人”或“更改联系人”时加载。需要联系人ID。

SKILL.md
--- frontmatter
name: hubspot-update-contact
description: "Update an existing contact in HubSpot CRM. Load when user says 'update contact', 'edit contact', 'modify contact', 'change contact'. Requires contact ID."

Update HubSpot Contact

Specialized skill for updating contacts 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

  • --id - Contact ID (required)

Optional Parameters (at least one required)

  • --email - New email address
  • --firstname - New first name
  • --lastname - New last name
  • --phone - New phone number
  • --company - New company name

Examples

Update phone:

bash
python 00-system/skills/hubspot/hubspot-master/scripts/update_contact.py \
  --id 12345 \
  --phone "+1987654321" \
  --json

Update multiple fields:

bash
python 00-system/skills/hubspot/hubspot-master/scripts/update_contact.py \
  --id 12345 \
  --firstname "Jonathan" \
  --company "New Corp Inc" \
  --json

Finding Contact ID

If user says "update John Doe", first search for the contact:

bash
python 00-system/skills/hubspot/hubspot-master/scripts/search_contacts.py --name "John Doe" --json

Then use the returned ID for the update.


Output Format

json
{
  "id": "12345",
  "properties": {
    "email": "john@example.com",
    "firstname": "Jonathan",
    "lastname": "Doe",
    "lastmodifieddate": "2025-12-13T10:30:00Z"
  }
}

Display Format

code
✅ Contact updated!
  ID: 12345
  Updated fields:
    - firstname: Jonathan
    - company: New Corp Inc

Error Handling

ErrorSolution
401Invalid token - re-run setup
403Missing crm.objects.contacts.write scope
404Contact not found - check ID
429Rate limited - wait and retry

Related Skills

  • hubspot-search-contacts - Find contact ID
  • hubspot-list-contacts - List all contacts
  • hubspot-create-contact - Create new contact