Apollo enrichment

From gethouston/houston · View interactive version

Apollo enrichment is an AI agent skill from the GitHub repository gethouston/houston. Find verified emails for a list of leads via Apollo's bulk match (batches of 10), update the Airtable rows with email + company + title + location, and create Apollo contacts under a named label so the leads show up in your Apollo CRM workflows. Phase 3 of both pipelines, runnable standalone if you

How to use this skill

Skill file

Apollo Enrichment

Take a list of leads in an Airtable table and find verified emails for as many as possible via Apollo's bulk match endpoint. Updates the Airtable rows in place with email + company + title + location, and creates Apollo contacts under a named label so the leads land in your Apollo CRM workflows. Match rate is highly audience-dependent - expect 50-70% on US founder / operator audiences, lower on consumer or non-US audiences.

When to use

When NOT to use

Connections I need

If either is missing I stop and ask you to connect it.

Information I need

Steps

<!-- houston-workflow:v1 -->

  1. Pull all records. Page through the Airtable table 100 records at a time until done. Collect rows where Email is empty (don't re-enrich rows that already have an email). Stash the source Profile URL, Full Name, Headline, and Airtable record_id for each.
  1. Batch into groups of 10. Apollo's apollo_people_bulk_match accepts up to 10 lookups per call. Split the not-yet-enriched rows into chunks of 10.
  1. Bulk match in parallel. Spawn parallel agents (4 at a time, same as the loader) and call apollo_people_bulk_match with each chunk. Per row in the request, send linkedin_url: profileUrl as the primary key, plus name: fullName as a fallback for Apollo's matcher. Wait for all calls to complete.
  1. Map results back to Airtable rows. Apollo returns an array per call in the same order as the request. Per result:
  1. Update Airtable in batches. Update 10 records per update records call (Airtable's actual batch limit on update, unlike create). Spawn parallel update agents.
  1. Create Apollo contacts under the label. For every row that came back with a verified or guessed email, call apollo_contacts_create with the contact's Apollo person ID and the chosen label. Apollo deduplicates contacts by email, so re-running this step on the same data is idempotent.
  1. Re-fetch enriched rows. Page the table again, collect rows where Email Confidence: "verified". Save them to runs/{runId}/contacts.json in the shape instantly-campaign expects:

```jsonc

{

"firstName": "Jane",

"fullName": "Jane Doe",

"email": "jane@northwind.example",

"company": "Northwind",

"title": "VP Operations",

"linkedinUrl": "https://www.linkedin.com/in/janedoe",

"personalizationFields": {

"topRole": "VP Operations at Northwind",

"topSchool": "Stanford",

"topSkills": ["Operations", "Process Design"]

}

}

```

personalizationFields only populated for reaction-source tables (where the loader wrote Top Role, Top School, Top Skills). For comment-source tables this object is empty.

  1. Update leads.json. For every row enriched, find the matching profileUrl in leads.json and set email, emailConfidence, company, title, location, enrichedAt. Read-merge-write atomically.
  1. Append to outputs.json. One row: {type: "enrichment", title: "Apollo enrichment - {tableName}", summary: "Matched {M} of {N} ({M/N}% match rate). {V} verified emails ready for outreach.", path: "runs/{runId}/contacts.json", status: "ready", domain: "enrichment"}.
  1. Summarize to user. One block:

Outputs

Common failure modes

| Failure | Why | Fix |

|---|---|---|

| Match rate under 40% | Audience is consumer-heavy, non-US, or junior-titled (Apollo's database is enterprise-skewed) | Normal for some audiences; proceed with what you have |

| Cached data missing emails on the re-fetch | Airtable read returned a stale cache | Wait 30 seconds and re-page; if still missing, the update writes silently failed - check for rate-limit errors in the run notes |

| Apollo rate-limit on bulk match | Too many parallel agents on a small Apollo plan | Drop to 2 parallel agents instead of 4 |

| Apollo returns a 422 on linkedin_url | The URL format doesn't match what Apollo expects (trailing slash, /in/ vs /pub/) | Normalize to https://www.linkedin.com/in/<slug> before sending; strip trailing slashes |

What I never do

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.