# AI data extraction with Airtable: n8n workflow template

> Started by another system calling it, and works across Airtable. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-data-extraction-with-airtable (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# AI data extraction with Airtable

Started by another system calling it, and works across Airtable. It hands the judgement calls to OpenAI. 36 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-data-extraction-with-airtable)

**36 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 4 Logic 17 Service 13

The steps in the order they run, from what starts it.

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 3 **Airtable Webhook** Webhook *Starts it*
- 4 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 5 **Generate Field Value1** Chain Llm *Model*
- 6 **Generate Field Value** Chain Llm *Model*
- 7 **Get Table Schema** Airtable *Service*
- 8 **Set Airtable Vars** Set *Logic*
- 9 **Get Result1** Set *Logic*
- 10 **Get Result** Set *Logic*
- 11 **Get Prompt Fields** Code *Logic*
- 12 **Get Table Schema1** Airtable *Service*
- 13 **FieldsChanged Webhook** Http Request *Service*
- 14 **Add Row ID to Payload** Set *Logic*
- 15 **Update Row** Airtable *Service*
- 16 **Get Webhook Payload** Http Request *Service*
- 17 **Get "Input" Field** Set *Logic*
- 18 **Update Record** Airtable *Service*
- 19 **Loop Over Items** Split In Batches *Logic*
- 20 **Parse Event** Code *Logic*
- 21 **RecordsChanged Webhook** Http Request *Service*
- 22 **Loop Over Items1** Split In Batches *Logic*
- 23 **Row Reference** No Op *Logic*
- 24 **Event Type** Switch *Logic*
- 25 **Row Ref** No Op *Logic*
- 26 **Get File Data** Http Request *Service*
- 27 **Event Ref1** No Op *Logic*
- 28 **Event Ref** No Op *Logic*
- 29 **Get File Data1** Http Request *Service*
- 30 **Extract from File** Extract From File *Service*
- 31 **Get Row** Airtable *Service*
- 32 **Filter Valid Fields** Filter *Logic*
- 33 **Extract from File1** Extract From File *Service*
- 34 **Filter Valid Rows** Filter *Logic*
- 35 **Fetch Records** Airtable *Service*
- 36 **Fields to Update** Code *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 36, with 1 branch, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Airtable account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 36 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 36 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-data-extraction-with-airtable)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Daily agenda reminder in Airtable - WhatsApp - Evolution** 33 steps · calls a model · Airtable](https://millionrounds.com/workflow/aviso-de-agenda-diaria-en-airtable-whatsapp-evolution)
- [**Extract information from a logo sheet with Airtable** 33 steps · calls a model · Airtable](https://millionrounds.com/workflow/extract-information-from-a-logo-sheet-with-airtable)
- [**Fetch hierarchical data records from Airtable** 32 steps · Airtable](https://millionrounds.com/workflow/fetch-hierarchical-data-records-from-airtable)
- [**AI agent to chat with Airtable** 30 steps · calls a model · Airtable](https://millionrounds.com/workflow/ai-agent-to-chat-with-airtable)
- [**Create stylized product photography with Airtable and Gemini** 30 steps · calls a model · Airtable](https://millionrounds.com/workflow/create-stylized-product-photography-with-airtable-and-gemini)
- [**Scrape query from Serper API than add Airtable and ZEP** 43 steps · calls a model · Airtable](https://millionrounds.com/workflow/scrape-query-from-serper-api-than-add-airtable-and-zep)
