Overview
Sync HubSpot contacts, companies, deals, and activities automatically. Every interaction is analyzed for sentiment and relationship health, giving Lars AI complete context to provide intelligent recommendations.Features
Contact & Company Sync
Automatic synchronization of companies and contacts with relationship mapping
Deal Pipeline Data
Revenue data, deal stages, and renewal information for accurate forecasting
Activity Tracking
Import meetings, calls, emails, and other recorded activities
Property Mapping
Flexible field mapping for custom HubSpot properties and data structure
Setting Up HubSpot Integration
Prerequisites
Before connecting HubSpot:- HubSpot admin access or integration permissions
- Understanding of your HubSpot data structure
- Clear mapping between HubSpot companies and Stanna clients
Connection Process
1
Initiate OAuth Flow
Navigate to
/api/integrations/hubspot/start or click “Connect HubSpot” in integrations2
Authorize Access
Sign in to HubSpot and grant Stanna permission to access:
- Companies and contacts
- Deals and pipeline data
- Activities and engagement data
- Custom properties (if needed)
3
Verify Connection
Check status at
/api/integrations/hubspot/status to confirm:- Active connection status
- Last successful sync time
- Available data scopes
4
Initial Data Sync
Trigger first sync with
POST /api/integrations/hubspot/sync:- Imports company and contact data
- Syncs deal information and revenue data
- Establishes client-company relationships
Data Mapping & Sync
Standard Field Mapping
Company Data:name→ Client Namedomain→ Client Domainannual_recurring_revenue/mrr→ Monthly Recurring Revenuerenewal_date/contract_end_date→ Renewal Datehubspot_owner_id→ CSM Owner
email→ Stakeholder Emailfirstname+lastname→ Stakeholder Namejobtitle→ Stakeholder Titlecompany→ Client Association
Custom Property Support
The integration supports custom HubSpot properties:- Map any HubSpot property to Stanna fields
- Handle custom deal stages and pipeline configurations
- Sync custom company and contact properties
- Maintain property relationships across systems
Historical Data Import
Use the backfill process for historical data:- Endpoint:
POST /api/integrations/hubspot/backfill - Timeframe: Configurable lookback period (default 2 years)
- Data Types: Companies, contacts, deals, activities
- Processing: Background processing for large data volumes
Revenue & Pipeline Data
Deal Information
Automatically sync deal data for revenue tracking:- Pipeline stage: Current deal status
- Close date: Expected renewal or expansion
- Deal value: Revenue amount and currency
- Deal probability: Likelihood of closing
MRR Calculation
Stanna calculates Monthly Recurring Revenue from HubSpot data:- Annual contract values divided by 12
- Subscription-based deal values
- Custom MRR fields from HubSpot properties
- Automatic currency conversion if needed
Renewal Tracking
Track renewal dates and contract milestones:- Contract end dates from HubSpot
- Renewal probability scores
- Expansion opportunity identification
- Churn risk based on deal stage changes
Activity Sync
Supported Activities
Import various HubSpot activities:- Meetings: Scheduled calls and appointments
- Calls: Phone conversations and outcomes
- Emails: Email opens, clicks, and responses
- Notes: General contact and company notes
- Tasks: Follow-up actions and reminders
Activity-Based Insights
Activities influence client health scores:- Recent positive activities boost health scores
- Missed meetings or lack of engagement lower scores
- Activity frequency indicates relationship strength
- Response patterns show client engagement levels
API Endpoints
Core Integration
Data Management
Sync Configuration
Sync Frequency
- Automatic Sync: Every 15-30 minutes during business hours
- Manual Sync: Available via API or dashboard
- Real-time Updates: Critical changes sync immediately
- Batch Processing: Large data sets processed in background
Data Filtering
Configure which data to sync:- Company Filters: By lifecycle stage, owner, or properties
- Contact Filters: By role, engagement level, or custom criteria
- Deal Filters: By pipeline, stage, or value thresholds
- Activity Filters: By type, date range, or outcome
Troubleshooting
Integration disconnected or failing
Integration disconnected or failing
Common Issues:
- HubSpot API rate limits exceeded
- OAuth token expired or revoked
- Permission changes in HubSpot
- Network connectivity problems
- Check
/api/integrations/hubspot/statusfor specific errors - Re-authenticate at
/api/integrations/hubspot/startif needed - Verify HubSpot permissions haven’t changed
- Contact support if rate limit issues persist
Missing or incorrect company data
Missing or incorrect company data
Troubleshooting Process:
- Verify company exists in HubSpot with required fields
- Check domain field is populated and matches expected format
- Confirm company is associated with contacts
- Review custom property mappings
- Companies must have a domain field for client matching
- Required properties must be populated
- Company-contact associations must exist
Revenue data not syncing correctly
Revenue data not syncing correctly
Common Causes:
- Deal pipeline configuration issues
- Missing or incorrect deal amounts
- Currency conversion problems
- Custom property mapping errors
- Review deal pipeline setup in HubSpot
- Verify deal amounts are properly formatted
- Check custom MRR field configurations
- Confirm currency settings match expectations
Best Practices
Clean Data Hygiene
Maintain clean company and contact data in HubSpot for accurate sync
Consistent Domains
Ensure company domains are consistent and properly formatted across all records
Regular Reviews
Review integration status and sync logs weekly to catch issues early
Property Management
Document custom property mappings and keep them updated as your process evolves
Advanced Configuration
Custom Property Mapping
Configure advanced field mappings:- Map HubSpot lifecycle stages to Stanna client statuses
- Sync custom company properties to client tags
- Map deal properties to client health indicators
- Create calculated fields from multiple HubSpot properties
Webhook Support
For real-time updates (enterprise feature):- Configure HubSpot webhooks for immediate sync
- Receive instant updates on deal changes
- Get notified of new company/contact creation
- Track property changes in real-time
Data Validation Rules
Set up validation to ensure data quality:- Required field validation
- Format checking for domains and emails
- Range validation for revenue fields
- Duplicate detection and handling
Rate Limits: HubSpot has API rate limits. Large syncs or frequent manual syncs may hit these limits. The system automatically handles rate limiting with retries and backoff.
Need help with complex mappings? Contact support@gostanna.com for assistance with custom HubSpot configurations.