Connecting Apollo CRM data to Cognee for AI agent querying
Description and use
Connecting Apollo CRM data to Cognee enables an AI agent to answer queries about contacts and companies by building a knowledge graph from the data. The connector handles changes and deletions while respecting Apollo rate limits.
Problem
Enable an AI agent to answer questions about Apollo CRM data by providing the agent with a memory of the data.
Outcome
The connector successfully ingested 7 documents from a test Apollo account, correctly skipped unchanged records, updated a modified contact, and removed deleted contacts and companies.
Workflow
- Obtain an Apollo API key (paid plan or trial).
- Obtain an AI model provider API key and set it as LLM_API_KEY in a .env file.
- Clone the cognee‑community repo and navigate to packages/connector/apollo.
- Run
uv sync export APOLLO_API_KEY="your-apollo-key"to install dependencies. - Execute
uv run python examples/example.pyto perform a sync. - In the example, call
apollo_source(api_key, resource_name="apollo_crm_main")and thencognee.remember(source, dataset_name="apollo_crm", primary_key="id", write_disposition="merge", max_rows_per_table=0)to ingest data. - The connector reads contacts, companies, and sequences, skips sensitive fields, and uses fingerprints to detect changes.
- On subsequent runs it merges updates and deletes records that are confirmed deleted by Apollo.
- The connector respects Apollo rate limits and stops before exceeding them, resuming from the last processed record next run.
Evidence
A connector is the piece of code that moves data from a tool like Apollo into cognee.
You’ll need an Apollo API key, which means a paid plan or a trial, because free plans don’t have API access to contact and account search.
The connector reads your contacts, your company accounts and your sequences. It leaves emails, phone numbers and social profiles out on purpose, and it doesn’t use any of the Apollo endpoints that cost credits.
I tested it on a real Apollo trial account with records I made for the purpose: two companies, four contacts and one sequence.
That test covered getting data in and taking it out, and it ran on the version I first submitted.
- Record date: 2026-11-02T08:28:55.948Z