HubSpot Setup Guide
Get your HubSpot account connected to Agent.AI and ready to build workflows. Time to complete: 10 minutesWhat You’ll Need
Before you start:- Active HubSpot account (any tier: Free, Starter, Professional, Enterprise)
- Admin access (or permissions to authorize integrations)
- The workflows/objects you want to automate
Step 1: Connect HubSpot to Agent.AI
Connect Your Account
- In Agent.AI, go to Settings → Integrations
- Find HubSpot in the list
- Click Connect
- You’ll be redirected to HubSpot
- Log in to HubSpot (if not already logged in)
- Click Grant access or Authorize
- You’ll be redirected back to Agent.AI
- Connection complete!
Authorize Permissions
When connecting, HubSpot asks which permissions (scopes) to grant. Recommended permissions for most workflows:- ✅ Read contacts
- ✅ Write contacts
- ✅ Read companies
- ✅ Write companies
- ✅ Read deals
- ✅ Write deals
- ✅ Read engagements
- ✅ Write timeline events
- Read = View data from HubSpot
- Write = Create and update records in HubSpot
- Engagements = Access call/email/meeting history
- Timeline events = Log custom events to HubSpot
Step 2: Verify Connection
Test the Connection
Quick test:- Create a new workflow in Agent.AI
- Add a Search HubSpot (V2) action
- Select object type (e.g., “Contacts”)
- Click Test or Run
- If you see results → Connection works!
- Check connection in Settings → Integrations
- Verify you granted necessary permissions
- Try reconnecting HubSpot
Step 3: Understand Your Setup
Which HubSpot Account is Used?
Regular workflows:- Uses your HubSpot credentials (the person running the workflow)
- Your permissions = workflow’s permissions
- Uses builder’s HubSpot credentials (workflow creator)
- For public workflows on your website
What Can You Access?
You can access:- Any HubSpot objects you have permission to view
- Any properties you have permission to edit
- Any data in your connected HubSpot account
- Objects you don’t have permission for
- Properties restricted by your HubSpot role
- Data from other HubSpot accounts (unless separately connected)
Common Setup Scenarios
Scenario 1: Basic Contact Management
Goal: Search, update, and enrich contacts Permissions needed:- Read contacts ✅
- Write contacts ✅
- Search HubSpot (V2) - Find contacts
- Update HubSpot Object (V2) - Update a property
- Run and verify update in HubSpot
Scenario 2: Deal Pipeline Automation
Goal: Analyze deals and update stages Permissions needed:- Read contacts ✅
- Read deals ✅
- Write deals ✅
- Read engagements ✅ (for deal history)
- Write timeline events ✅ (for logging insights)
- Search HubSpot (V2) - Find deals in a stage
- Get Timeline Events (V2) - Get deal activity
- Update HubSpot Object (V2) - Update deal
- Create Timeline Event (V2) - Log analysis
Scenario 3: Webhook-Triggered Enrichment
Goal: Enrich contacts when created in HubSpot Setup steps:- Connect HubSpot to Agent.AI (this guide)
- Create Agent.AI workflow with webhook trigger
- Copy webhook URL
- In HubSpot: Create workflow with “Send webhook” action
- Paste webhook URL and configure payload
- Read contacts ✅
- Write contacts ✅
- Write timeline events ✅ (optional, for logging)
Required Properties
Standard Properties Always Available
Contacts:firstname
,lastname
,email
,phone
company
,jobtitle
,industry
lifecyclestage
,hs_lead_status
createdate
,lastmodifieddate
hs_object_id
(HubSpot ID)
dealname
,amount
,dealstage
closedate
,pipeline
,deal_type
createdate
,hs_lastmodifieddate
hs_object_id
(HubSpot ID)
name
,domain
,industry
city
,state
,country
numberofemployees
,annualrevenue
createdate
,hs_lastmodifieddate
hs_object_id
(HubSpot ID)
Custom Properties
Can I use custom properties? Yes! Any custom properties you’ve created in HubSpot are available. To find them:- In Search/Lookup/Update actions, click ”+ Add Property”
- Search for your custom property name
- Select it
- Usually lowercase with underscores
- Match what you see in HubSpot settings
- Example:
lead_score
,company_tier
,onboarding_status
Troubleshooting Setup
Can’t Connect HubSpot
Error when trying to connect Possible causes:- Not logged into HubSpot
- Don’t have permission to authorize integrations
- Browser blocking popup
- Log into HubSpot first
- Ask HubSpot admin to authorize
- Allow popups for Agent.AI
- Try incognito/private browsing
Permission Denied Errors
Workflow fails with “permission denied” Possible causes:- Missing required scope/permission
- HubSpot user role doesn’t allow access
- Object type not available on your HubSpot tier
- Reconnect HubSpot and grant more permissions
- Check your HubSpot user role permissions
- Verify feature available on your HubSpot plan
Connection Expired
Workflows suddenly stop working Possible causes:- HubSpot token expired (shouldn’t happen - auto-refreshes)
- Changed HubSpot password
- Disconnected integration in HubSpot
- Go to Settings → Integrations
- Disconnect HubSpot
- Reconnect HubSpot
- Test workflows again
Can’t Find Properties
Property doesn’t appear in picker Possible causes:- Property doesn’t exist in HubSpot
- Using wrong object type
- Custom property not synced yet
- Verify property exists in HubSpot settings
- Check object type matches (contact vs. company vs. deal)
- Wait a few minutes and refresh
- Use exact internal property name
Tips & Best Practices
✅ Do:- Grant all permissions you think you’ll need
- Test connection with a simple workflow first
- Use test records/contacts for initial testing
- Keep HubSpot and Agent.AI in separate browser tabs
- Document which workflows need which permissions
- Grant only minimal permissions (reconnecting is tedious)
- Test with real customer data initially
- Assume all properties are available (check first)
- Delete the HubSpot connection while workflows are running
- Only connect your own HubSpot account
- Review permissions before authorizing
- Disconnect integration if no longer needed
- Use HubSpot user roles to limit access
Next Steps
Now that HubSpot is connected:-
Build your first workflow:
- Start with Search HubSpot (V2)
- Try Lookup HubSpot Object (V2)
- Update records with Update HubSpot Object (V2)
-
Try example workflows:
- Deal Analysis - Loop through deals and analyze
- Contact Enrichment - Webhook-triggered enrichment
- Customer Onboarding - Automated onboarding
-
Set up advanced features:
- Webhook Triggers - Trigger workflows from HubSpot
- Template Variables - Use
{{variables}}
in workflows
Related Resources
Foundation:- Authentication - How credentials work
- Triggers - Ways to start workflows
- Webhook Triggers - HubSpot webhook setup
- Troubleshooting - Common issues and fixes
- Search HubSpot (V2) - First action to try
- Lookup HubSpot Object (V2) - Get single record
- Update HubSpot Object (V2) - Modify records
Last Updated: 2025-10-01