AgentSkillsCN

hubspot-list-contacts

从HubSpot CRM中列出联系人。当用户说“列出联系人”、“显示联系人”、“获取联系人”或“hubspot联系人”时加载。返回带有电子邮件、姓名、电话和公司的分页联系人列表。

SKILL.md
--- frontmatter
name: hubspot-list-contacts
description: "List contacts from HubSpot CRM. Load when user says 'list contacts', 'show contacts', 'get contacts', 'hubspot contacts'. Returns paginated contact list with email, name, phone, company."

List HubSpot Contacts

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

Basic List (default 10 contacts)

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

With Limit

bash
python 00-system/skills/hubspot/hubspot-master/scripts/list_contacts.py --limit 25 --json

With Pagination (after cursor)

bash
python 00-system/skills/hubspot/hubspot-master/scripts/list_contacts.py --after "cursor_value" --json

Output Format

json
{
  "results": [
    {
      "id": "12345",
      "properties": {
        "email": "john@example.com",
        "firstname": "John",
        "lastname": "Doe",
        "phone": "+1234567890",
        "company": "Acme Corp"
      },
      "url": "https://app.hubspot.com/contacts/.../record/0-1/12345"
    }
  ],
  "paging": {
    "next": {
      "after": "cursor_for_next_page"
    }
  }
}

Display Format

Present results to user as:

code
Found {count} contacts:

1. John Doe
   Email: john@example.com
   Phone: +1234567890
   Company: Acme Corp
   ID: 12345

2. Jane Smith
   Email: jane@example.com
   ...

Error Handling

ErrorSolution
401Invalid token - re-run setup
403Missing crm.objects.contacts.read scope
429Rate limited - wait and retry

Related Skills

  • hubspot-create-contact - Create new contact
  • hubspot-search-contacts - Search by email/name
  • hubspot-update-contact - Update existing contact