Overview
The HubSpot integration automatically syncs leads captured through your chat widget directly to your HubSpot CRM as contacts. When a customer submits their information, Vaile creates or updates their contact record in HubSpot with all lead details.What Gets Synced
When a lead is captured via your chat widget, Vaile sends the following information to HubSpot:- Contact Information: Name, email, phone number
- Lead Details: Status, priority, source
- Vehicle Interest: Make, model, and budget range
- Conversation Notes: Customer inquiries and preferences
- Dealership Context: Which dealership location the lead is for
Setup
Prerequisites
Before connecting HubSpot, ensure you have:- HubSpot Account with admin access
- CRM Permissions to create and modify contacts
- Custom Properties created in HubSpot (see below)
1. Create Custom Properties in HubSpot
HubSpot doesn’t have default fields for automotive-specific data. You’ll need to create custom contact properties:Vehicle of Interest
Vehicle of Interest
Type: Single-line text
Internal name:
vehicle_of_interest
Label: Vehicle of Interest
Description: The vehicle the customer is interested inBudget Range
Budget Range
Type: Single-line text
Internal name:
budget_range
Label: Budget Range
Description: Customer’s budget range for vehicle purchaseLead Priority
Lead Priority
Type: Dropdown
Internal name:
lead_priority
Label: Lead Priority
Options: high, medium, low
Description: Priority level of this leadLead Origin Channel
Lead Origin Channel
Type: Single-line text
Internal name:
lead_origin_channel
Label: Lead Origin Channel
Description: Channel where the lead originated (e.g., chat_widget)Dealership Name
Dealership Name
Type: Single-line text
Internal name:
dealership_name
Label: Dealership Name
Description: Name of the dealership this lead is forDealership Slug
Dealership Slug
Type: Single-line text
Internal name:
dealership_slug
Label: Dealership Slug
Description: Dealership identifierTo create custom properties in HubSpot:
- Go to Settings → Properties
- Select Contact properties
- Click Create property
- Add each property listed above
2. Connect HubSpot
Navigate to Integrations → Events in your Vaile dashboard.- In the webhook portal, find Connectors section
- Locate HubSpot CRM connector
- Click Connect to HubSpot
- Authorize Vaile to access your HubSpot account
- Review and approve the requested permissions
3. Select Event Types
After connecting, select which events should sync to HubSpot:- ✅ Lead Captured - Recommended (syncs all captured leads)
- 🔜 Carousel Clicked - Coming soon
- 🔜 Session Initiated - Coming soon
4. Test the Integration
- Open your chat widget on your website
- Fill out the lead capture form with test data
- Submit the form
- Check HubSpot CRM → Contacts for the new contact
- Verify all fields are populated correctly
How It Works
Lead Capture Flow
Data Mapping
Vaile automatically maps your lead data to HubSpot fields:| Vaile Field | HubSpot Property |
|---|---|
| Contact Name | First Name + Last Name |
| Phone | Phone |
| Vehicle Interest | Vehicle of Interest (custom) |
| Budget Range | Budget Range (custom) |
| Lead Status | Lead Status |
| Priority | Lead Priority (custom) |
| Notes | Notes - Last Contacted |
| Origin | Lead Source |
Lifecycle Stage
All synced contacts are automatically set to “Lead” lifecycle stage, making them easy to identify and nurture in your HubSpot workflows.Managing the Integration
Viewing Sync Status
Check webhook delivery status in the Events dashboard:- Go to Integrations → Events
- Click Logs tab
- Filter by event type:
lead.captured.v1 - View delivery status for each lead
Successful deliveries show a 200 OK status. Failed deliveries will show error details and retry attempts.
Automatic Retries
If HubSpot is temporarily unavailable or returns an error, the webhook system automatically retries delivery:- 1st retry: Immediately
- 2nd retry: 5 seconds
- 3rd retry: 5 minutes
- 4th retry: 30 minutes
- 5th retry: 2 hours
- Continues for: Up to 3 days
Disconnecting HubSpot
To disconnect the integration:- Go to Integrations → Events
- Click Connectors
- Find HubSpot CRM
- Click Disconnect
- Confirm disconnection
Troubleshooting
Contact not appearing in HubSpot
Contact not appearing in HubSpot
Check:
- HubSpot connection is active (green status in Events dashboard)
- Required permissions are granted (check OAuth settings)
- Custom properties are created in HubSpot
- No duplicate email exists (HubSpot may update instead of create)
- Review webhook logs for error messages
- Re-authorize HubSpot connection
- Verify custom properties exist
Missing fields in HubSpot contact
Missing fields in HubSpot contact
Cause: Custom properties not created in HubSpotSolution:
- Create the missing custom properties (see Setup step 1)
- New leads will include all fields
- Existing contacts won’t be updated automatically
Duplicate contacts being created
Duplicate contacts being created
Cause: HubSpot uses email as unique identifierBehavior:
- If email exists: HubSpot updates the existing contact
- If email is new: HubSpot creates a new contact
- If email is blank: May create duplicate contacts
- Always capture email addresses in lead forms
- Use HubSpot’s duplicate management tools
Integration disconnected unexpectedly
Integration disconnected unexpectedly
Possible causes:
- OAuth token expired
- HubSpot account permissions changed
- Admin revoked access
- Re-connect HubSpot via Events dashboard
- Verify you have admin permissions
- Check HubSpot connected apps settings
Security & Privacy
Data Transmission
- All data is transmitted securely via HTTPS
- Webhooks are signed with HMAC signatures
- HubSpot connection uses OAuth 2.0 authentication
Permissions Required
The integration requests these HubSpot permissions:- Create/Update Contacts - To sync lead information
- Read Contacts - To check for duplicates
- Read Contact Properties - To validate custom fields
Vaile never stores your HubSpot credentials. Authentication is handled securely via OAuth, and tokens are encrypted at rest.
Compliance
- GDPR: Customers can request data deletion via your HubSpot account
- Data Retention: Follow your HubSpot data retention policies
- Consent: Ensure lead capture forms include appropriate consent language
Advanced: Creating Deals
By default, the integration creates contacts only. If you want to also create deals in HubSpot:1
Contact Vaile Support
Reach out to [email protected] to request the deal creation feature
2
Provide Deal Settings
Specify your deal pipeline, stage, and default values
3
Custom Transformation
Vaile will configure a custom transformation for your account
4
Test & Deploy
Test with sample leads before enabling for production
Best Practices
- Set Up Workflows - Create HubSpot workflows to automatically assign leads to sales reps
- Enable Notifications - Configure HubSpot to notify your team of new leads
- Monitor Sync Status - Check webhook logs weekly to ensure consistent delivery
- Use Lead Scoring - Leverage HubSpot’s lead scoring with the priority field
- Create Follow-up Tasks - Use HubSpot automation to schedule follow-ups
Need Help?
If you encounter issues or need assistance:- Email: [email protected]
- Dashboard: Use the chat widget in your Vaile dashboard
- Documentation: Check webhook logs for detailed error messages