Remote OpenClaw Blog
OpenClaw + HubSpot: CRM Automation and Lead Sync
4 min read ·
Why Connect OpenClaw to HubSpot?
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.
Prerequisites
- OpenClaw installed and running — local or hosted.
- HubSpot account — Free CRM or any paid tier.
- HubSpot Super Admin access — needed to create private apps.
- Node.js 18+ — for the OpenClaw HubSpot skill.
Step-by-Step Setup
Step 1: Create a HubSpot Private App
Go to Settings > Integrations > Private Apps in your HubSpot account. Create a new private app with these scopes:
crm.objects.contacts.readandcrm.objects.contacts.writecrm.objects.deals.readandcrm.objects.deals.writecrm.objects.companies.readandcrm.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'
Step 2: Configure OpenClaw
# ~/.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
Step 3: Install and Test
# 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"
Example Use Cases
1. Automated Lead Enrichment
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"
2. Deal Pipeline Monitoring
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"
3. Personalized Outreach Drafts
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.
Best Next Step
Use the marketplace filters to choose the right OpenClaw bundle, persona, or skill for the job you want to automate.
Troubleshooting Tips
Scope Errors (403)
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.
Duplicate Contacts
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"
Property Not Found Errors
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.
Limitations and Known Issues
- Workflows: OpenClaw cannot create or modify HubSpot workflows via API. You can trigger workflow enrollments but not build the workflow logic.
- Marketing emails: Sending marketing emails through the API requires HubSpot Marketing Professional or Enterprise. Transactional emails require the transactional email add-on.
- Custom objects: Custom objects are only available on HubSpot Enterprise. If you need custom objects, plan your HubSpot tier accordingly.
- API rate limits: Free and Starter accounts have lower rate limits (100 requests per 10 seconds). High-volume operations may need throttling on lower-tier plans.
For the official HubSpot API docs, see developers.hubspot.com.
For an enterprise CRM alternative, see the Salesforce integration guide.
Frequently Asked Questions
Can OpenClaw enrich HubSpot contacts automatically?
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.
Does the HubSpot integration work with the free CRM?
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.
How does OpenClaw handle HubSpot API rate limits?
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.
Can OpenClaw create HubSpot workflows?
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.