Skip to main content

Send adaptive daily Supabase product pulse emails with Claude and SMTP

Workflow preview

Workflow preview
100%
Send adaptive daily Supabase product pulse emails with Claude and SMTP preview
Open on n8n.io

1. Workflow Overview

Quick overview This scheduled workflow reads your Supabase project’s live schema, uses Anthropic Claude to plan safe PostgREST queries from a plain English requirement, computes the requested metri...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.emailsend, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aumadi Technologies.

Original n8n.io source

1.1 Workflow description

Title
Send adaptive daily Supabase product pulse emails with Claude and SMTP
Workflow name
Send adaptive daily Supabase product pulse emails with Claude and SMTP

Quick overview

This scheduled workflow reads your Supabase project’s live schema, uses Anthropic Claude to plan safe PostgREST queries from a plain-English requirement, computes the requested metrics, and sends a daily pulse email via SMTP with results or a clear “no matching data” notice.

How it works

  1. Runs every morning at 8am on a schedule.
  2. Fetches your Supabase REST OpenAPI schema and condenses it into a list of available tables and columns.
  3. Sends your plain-English reporting requirements and the live schema to Anthropic Claude to generate PostgREST metric queries.
  4. Validates the planned queries against the discovered schema, replaces time placeholders with real timestamps, and builds Supabase REST URLs.
  5. Executes each query against the Supabase REST API and calculates counts, sums, or top-group breakdowns from the returned rows.
  6. If results exist, asks Anthropic Claude to write a short headline/summary/insights and emails a formatted report via SMTP; otherwise, emails a not-found message listing skipped items.

Setup

  1. Add credentials for Supabase API, Anthropic (HTTP Header Auth using x-api-key), and an SMTP account.
  2. In the Config step, set supabaseUrl, reportEmail, fromEmail, brandName, windowHours, and your plain-English requirements.
  3. Ensure the Supabase REST API can see the tables referenced by your requirement (reload PostgREST schema if needed) and adjust the schedule time to your timezone before activating.

Requirements

  • A Supabase project + Supabase API credential (host + service key)
  • An Anthropic (Claude) API key
  • An SMTP account (any provider — Brevo, Gmail, etc.)

Customization

  • Rewrite the plain-English requirements in Config to report on anything
  • Set windowHours (24 = day, 168 = week, 720 = month)
  • Adjust schedule time/timezone; swap the Claude model
  • Edit the email design in Build Email, or the planSystem/reportSystem prompts

Additional info

Zero DB setup — no functions, no Postgres connection. It reads your live schema, queries only tables that exist, safely skips anything missing, and sends a clear "not found" email instead of a blank report.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Section — Understand the DB

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section — Plan + guard

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — Run + report

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - 📘 Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - 🔧 Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Every Morning 8am

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 7 - ⚙️ Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - 🗂️ Discover Schema

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - 🧩 Read Schema

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - 🧠 Plan Queries

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - ✅ Validate & Resolve

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - 🔎 Run Query

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - 🧮 Collect Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - 🧠 Write Report

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Extract Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Build Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - ✉️ Send Report

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 18 - Found requirement data?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 19 - 🛟 Build Not-Found Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Send adaptive daily Supabase product pulse emails with Claude and SMTP
Complexity advanced
Nodes 19
Categories Market Research, AI Summarization
Author Aumadi Technologies
Published 19 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16507/16507.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send adaptive daily Supabase product pulse emails with Claude and SMTP do?

Quick overview This scheduled workflow reads your Supabase project’s live schema, uses Anthropic Claude to plan safe PostgREST queries from a plain English requirement, computes the requested metri...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.