Analyze email performance & optimize campaigns with GPT-4, SendGrid, and Airtable
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Airtable and OpenAI. It also calls api.sendgrid.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Sendgrid Data Pull (HTTP Request): calls api.sendgrid.com
- Data X-Form (Code): runs custom JavaScript code
- Search records (Airtable): search
- Merge: merges the data from its input branches
- Pull Most Recent Week (Code): runs custom JavaScript code
- Data Merge (Code): runs custom JavaScript code
- Update record (Airtable): update
- Search records (Airtable): search
- Previous Week Analysis (OpenAI): uses OpenAI
- Parse Output (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
Services it uses
Other OpenAI + Airtable templates (215) · Other OpenAI + SendGrid templates (37) · Other Airtable + SendGrid templates (3)
HTTP calls to: api.sendgrid.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Airtable
n8n-nodes-base.airtable - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Analyze email performance and optimize campaigns with AI using SendGrid and Airtable This n8n template creates an automated feedback loop that pulls email metrics from SendGrid weekly, tracks performance in Airtable, analyzes trends across the last 4 weeks,…