Templates / Analyze email performance & optimize campaigns with GPT-4, SendGrid, and Airtable

Analyze email performance & optimize campaigns with GPT-4, SendGrid, and Airtable

Ready for 3.0

by Connor Provines ✓ · 98 views · created 2025-10-09 · Social Media, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Sendgrid Data Pull (HTTP Request): calls api.sendgrid.com
  2. Data X-Form (Code): runs custom JavaScript code
  3. Search records (Airtable): search
  4. Merge: merges the data from its input branches
  5. Pull Most Recent Week (Code): runs custom JavaScript code
  6. Data Merge (Code): runs custom JavaScript code
  7. Update record (Airtable): update
  8. Search records (Airtable): search
  9. Previous Week Analysis (OpenAI): uses OpenAI
  10. Parse Output (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Services it uses

AirtableOpenAI

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

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,…

Excerpt from Connor Provines's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.