Remote OpenClaw Blog
OpenClaw + HubSpot: CRM Automation and Lead Sync
4 min read ·
Remote OpenClaw Blog
4 min read ·
HubSpot is used by over 200,000 businesses for CRM, marketing, and sales automation. While HubSpot has its own automation features, connecting OpenClaw adds AI-powered intelligence that goes beyond rule-based workflows — your agent can analyze lead quality, draft personalized outreach, and make decisions that normally require human judgment.
Tested in production with a 15-person sales team processing 200+ leads per week, the OpenClaw-HubSpot integration reduced manual CRM data entry by approximately 70% and improved lead response times from 4 hours to under 15 minutes.
This guide covers the complete setup process. If you are new to OpenClaw, start with the beginner setup guide first.
Go to Settings > Integrations > Private Apps in your HubSpot account. Create a new private app with these scopes:
crm.objects.contacts.read and crm.objects.contacts.writecrm.objects.deals.read and crm.objects.deals.writecrm.objects.companies.read and crm.objects.companies.writecrm.schemas.contacts.read (for custom properties)# Store your HubSpot private app token
export HUBSPOT_ACCESS_TOKEN="pat-na1-your-token-here"
# Verify the connection
curl -s -H "Authorization: Bearer $HUBSPOT_ACCESS_TOKEN" \
"https://api.hubapi.com/crm/v3/objects/contacts?limit=1" | jq '.results | length'
# ~/.openclaw/config.yaml
integrations:
hubspot:
access_token: ${HUBSPOT_ACCESS_TOKEN}
portal_id: "your_portal_id"
default_pipeline: "default"
sync_interval: 120
skills:
- name: hubspot-crm
trigger: "hubspot"
actions:
- create_contact
- update_contact
- create_deal
- update_deal
- search_contacts
- enrich_contact
- generate_report
# Install the HubSpot skill
openclaw skill install hubspot-crm
# Test contact creation
openclaw run "Create a HubSpot contact: John Smith, john@example.com, Company: Acme Corp, Role: VP Engineering"
# Test deal creation
openclaw run "Create a HubSpot deal: 'Acme Corp - Enterprise License' in the default pipeline, stage 'Qualified', amount $50,000, close date June 30"
When new contacts enter HubSpot, OpenClaw automatically enriches their profiles with company data, social profiles, and technology stack information:
openclaw run "Enrich all HubSpot contacts created in the last 24 hours: add company size, industry, LinkedIn URL, and estimated revenue where available"
schedule:
pipeline_check:
cron: "0 8 * * 1-5"
action: "Review all HubSpot deals in the pipeline. Flag deals that have been in the same stage for more than 14 days, deals with no activity in 7 days, and deals closing this month that are still in early stages"
OpenClaw can analyze a contact's profile, company, and engagement history to draft personalized email sequences that sales reps can review and send through HubSpot.
Marketplace
Free skills and AI personas for OpenClaw — browse the marketplace.
Browse the Marketplace →If API calls return 403 errors, your private app is missing required scopes. Edit the app in HubSpot Settings and add the missing scopes. The app will need to be reauthorized after scope changes.
HubSpot deduplicates contacts by email address. If OpenClaw creates a contact with an email that already exists, the API will return an error. Configure OpenClaw to search before creating:
# In your skill config, enable dedup checking
integrations:
hubspot:
dedup_check: true
dedup_field: "email"
If you reference custom properties that do not exist, the API will reject the request. Verify custom property names in HubSpot Settings > Properties before using them in OpenClaw.
For the official HubSpot API docs, see developers.hubspot.com.
For an enterprise CRM alternative, see the Salesforce integration guide.
Yes. OpenClaw can pull data from LinkedIn, company websites, and other public sources to enrich HubSpot contact records with job titles, company size, industry, and social profiles. This requires configuring the enrichment skill alongside the HubSpot integration.
Yes. The HubSpot API is available on the free CRM tier for contacts, companies, deals, and tickets. Some features like custom objects, workflows API, and higher rate limits require HubSpot Professional or Enterprise plans.
HubSpot enforces rate limits based on your plan: 100 requests per 10 seconds for free/starter, 150 for Professional, and 200 for Enterprise. OpenClaw manages these limits automatically with queuing and backoff. For bulk operations, it uses HubSpot's batch endpoints to stay within limits.
OpenClaw cannot create HubSpot workflows through the API — workflows must be built in the HubSpot UI. However, OpenClaw can trigger workflow enrollments, and you can use OpenClaw as an external action within HubSpot workflows via webhooks.