Hi everyone,
I’m working on an n8n workflow that uses an AI agent to generate unique content ideas and then automatically creates records for these ideas in an Airtable base. However, I’m encountering a problem where the Airtable node in n8n is repeatedly inserting the same data from the first iteration, even though the AI is providing distinct content ideas for each subsequent iteration.
Here’s a breakdown of my setup:
-
AI Agent (e.g., OpenAI, etc.): I’m using an AI agent node to generate a list of content ideas based on certain parameters. The agent is successfully outputting unique content ideas for each record. I’ve confirmed this by checking its output and the number of runs. It will create for example 12 unique content ideas.
-
Airtable Node (Create): I’m using the Airtable node with the “Create” operation to add new records to my Airtable base. I’ve mapped the output fields from the AI agent to the corresponding fields in my Airtable table (e.g., “Title,” “Excerpt,” “Volume,” “Competition”). You can see the mapping in the screenshot attached.
-
The Issue Even though the AI agent is generating unique content ideas, the Airtable node is only inserting the data from the very first content idea generated. It’s creating duplicate records in Airtable, all with the same “Title,” “Excerpt,” etc., as the first record. It seems like it’s looping or caching the first response and reusing it.
What I’ve tried:
-
Checked the AI Agent Output: I’ve verified that the AI agent is indeed producing unique output for each iteration.
-
Inspected the Airtable Node Input: The input to the Airtable node during each run is the same, which is why the output is also the same.
-
Experimented with Different Mapping Modes: I’ve tried both automatic and manual mapping of columns in the Airtable node, but the issue persists.
Screenshots:
I’ve attached screenshots of:
-
The AI agent’s output showing unique content ideas.*
-
The Airtable node’s configuration and mapping.*
-
The resulting duplicate records in Airtable.*
Expected Behavior:
The Airtable node should create a new record in Airtable for each unique content idea generated by the AI agent, with the corresponding data mapped to the correct fields.
Actual Behavior:
The Airtable node only creates records based on the first content idea, resulting in duplicate entries in Airtable.
Question:
Has anyone encountered this issue before? Is there a setting in n8n or a specific way to configure the Airtable node that I’m missing to ensure that it processes each unique input from the AI agent correctly? Any help or suggestions on how to resolve this duplication problem would be greatly appreciated.
Environment:
- n8n version: 1.70.3*