Agent skill

hubspot-update-contact

Update an existing contact in HubSpot CRM. Load when user says 'update contact', 'edit contact', 'modify contact', 'change contact'. Requires contact ID.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/hubspot-update-contact

SKILL.md

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

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

Error Handling

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

Related Skills

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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results