Airtable lead loader

From gethouston/houston · View interactive version

Airtable lead loader is an AI agent skill from the GitHub repository gethouston/houston. Create a new Airtable table with the full lead-tracking schema (lead fields + enrichment fields + outreach status) and batch-load records from a scrape file. Uses 4 parallel agents to load 4x faster, working around Airtable's one-record-per-call limit. Phase 2 of both pipelines, also runnable standa

How to use this skill

Skill file

Airtable Lead Loader

Create a fresh Airtable table for a list of leads, with all the columns the rest of the pipeline needs already in place, then batch-load every record. Uses parallel agents because Airtable enforces a one-record-per-create-call limit - serial loading of 500 records would take 8-10 minutes; 4 parallel agents cut that to 2-3 minutes.

When to use

Connections I need

If Airtable isn't connected I stop and ask you to connect it from the Integrations tab.

Information I need

The table schema

I create the table with these fields. Field types match Airtable's REST API conventions.

Lead identification (always populated by the load):

Comment-source extras (populated only for comment scrapes):

Reaction-source extras (populated only for reaction scrapes):

Enrichment (populated by apollo-enrichment):

Outreach status (populated by instantly-campaign):

Steps

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

  1. List bases. Call Airtable's "list bases" via Composio. If only one, use it. If many and the caller hasn't named one, ask the user which.
  1. Create the table. POST a new table to the chosen base with the schema above. The schema differs slightly based on the source type - if every row in the source file has commentText, treat as comment source; if every row has experience, treat as reaction source; otherwise treat as comment source (smaller schema, safer default). Save the new baseId and tableId for the load step.
  1. Batch into chunks. Split the source list into chunks of ceil(N / 4). Four chunks of roughly equal size.
  1. Parallel load. Spawn 4 parallel agents, one per chunk. Each agent loops over its chunk and calls Airtable's create record endpoint per row (Airtable enforces one record per call regardless of how the API documents it). Each agent reports its success / failure count back when done. Wait for all 4.
  1. Verify load count. Re-fetch the count of rows in the new table. If loaded != expected, log the diff to runs/{runId}/notes.md (the missing profileUrls) so you know which rows didn't make it. Continue - partial loads are still useful, the diff just needs to be visible.
  1. Write airtable.md to the run folder. Path: runs/{runId}/airtable.md. Contents: link to the new table in the Airtable UI, base ID, table ID, expected vs. actual row count, list of any failed profileUrls.
  1. Append to outputs.json. One row: {type: "airtable-load", title: "{tableName}", summary: "{N} records loaded into Airtable. Base {baseId}.", path: "runs/{runId}/airtable.md", status: "ready", domain: "sources"}.
  1. Summarize to user. One line: "Loaded {N} records into Airtable table '{tableName}'. Open in Airtable: <url>."

Outputs

Common failure modes

| Failure | Why | Fix |

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

| Token-limit error on list_records | Airtable rate limits the read endpoint | Don't list records to verify count - use the table's record_count field instead, or page in chunks of 100 |

| Batch limit exceeded | Trying to create 10 records in one call | Airtable enforces 1 record per create call; the parallel-agent design works around this without changing the per-call shape |

| Field type mismatch on create | The source row had a value for a singleSelect that wasn't in the options list | Pre-collect the unique values from the source and add them all as singleSelect options at table-create time, before the load |

| Some rows silently dropped | Airtable rejected them for a per-field validation error | The verify-load-count step in step 5 surfaces the diff; act on the missing profileUrls manually |

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.