Give Your AI CRM Memory with HubSpot + REM

Your CRM holds the full history of every customer relationship -- calls, emails, deal stages, notes. REM Labs syncs HubSpot into AI memory so your agents and bots have persistent context about every contact and deal without you stuffing prompts manually.

What Gets Synced

The HubSpot integration pulls CRM objects and their associated activities:

Connect via OAuth

In the REM Labs Console, go to Integrations and click Connect HubSpot. Authorize via HubSpot OAuth and select which CRM objects to sync. You can choose contacts only, or include deals, companies, and activities.

Import via API

curl -X POST https://api.remlabs.ai/v1/memory/sync/hubspot/import \ -H "Authorization: Bearer sk-slop-..." \ -H "Content-Type: application/json" \ -d '{ "hubspot_token": "pat-na1-...", "objects": ["contacts", "companies", "deals"], "include_activities": true, "include_notes": true, "pipeline": "default", "sync_mode": "incremental" }'

The pipeline filter lets you target a specific deal pipeline. Incremental mode uses HubSpot's lastmodifieddate property to only re-process records that changed since the last sync.

Query Customer Context

Once synced, your AI has full CRM context. Search by customer name, deal topic, or any aspect of the relationship history.

curl -X POST https://api.remlabs.ai/v1/integrations/hubspot/search \ -H "Authorization: Bearer sk-slop-..." \ -H "Content-Type: application/json" \ -d '{ "query": "what did we discuss with Acme Corp about enterprise pricing", "filters": {"object_type": "deal"}, "limit": 10 }'

This surfaces the deal record for Acme Corp, the meeting notes from the pricing call, and the email thread about custom contract terms -- all connected through HubSpot's association graph.

CRM Associations as Knowledge Graph

HubSpot's association model maps directly to REM Labs' entity graph. When a contact is associated with a company and a deal, searching for the contact also surfaces the company context and deal history through graph traversal. Your AI understands the full relationship web, not just isolated records.

API Endpoints Reference

EndpointMethodDescription
/v1/memory/sync/hubspot/importPOSTImport CRM objects from HubSpot
/v1/integrations/hubspot/webhookPOSTConfigure real-time CRM sync webhook
/v1/integrations/hubspot/statusGETCheck sync status and record counts
/v1/integrations/hubspot/searchPOSTSearch within the HubSpot namespace

Privacy controls: You can exclude specific contact properties (like phone numbers or addresses) from sync using the exclude_properties parameter. Sensitive data stays in HubSpot while relevant context flows to AI memory. See HubSpot integration docs.

Give your AI full customer memory

Free tier. Every contact, deal, and conversation searchable by meaning.

Get started free →