Ai data extraction with dynamic prompts and Airtable
Ready for 3.0What this workflow does
This AI workflow has 36 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Airtable.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set Airtable Vars (Edit Fields (Set)): sets 4 fields: appId, tableId, notificationUrl…
- Get Table Schema (Airtable): get schema (base)
- Get Table Schema (Airtable): get schema (base)
- FieldsChanged Webhook (HTTP Request): calls an HTTP API (POST)
- Get Prompt Fields (Code): runs custom JavaScript code
- Get "Input" Field (Edit Fields (Set)): sets or maps fields
- Get Webhook Payload (HTTP Request): calls an HTTP API
- RecordsChanged Webhook (HTTP Request): calls an HTTP API (POST)
- Parse Event (Code): runs custom JavaScript code
- Event Type (Switch): routes items into 3 branches
…plus 18 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Filter
n8n-nodes-base.filter - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Airtable
n8n-nodes-base.airtable - Webhook
n8n-nodes-base.webhook - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
This n8n template introduces the Dynamic Prompts Ai workflow pattern which are incredible for certain types of data extraction tasks where attributes are unknown or need to remain flexible. The general idea behind this pattern is that the prompts for…