Templates / Monitor customer risk and AI feedback using PostgreSQL, Gmail and Discord

Monitor customer risk and AI feedback using PostgreSQL, Gmail and Discord

Ready for 3.0

by Avkash Kakdiya ✓ · 45 views · created 2025-12-29 · Market Research, 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-10-19.

What this workflow does

This workflow has 23 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Sheets, Gmail, Postgres and Discord. It also calls api.groq.com over HTTP.

How it runs

Trigger: On a schedule (every day) (plus 1 other trigger).

  1. Edit Fields (Edit Fields (Set)): sets 1 field: isDaily
  2. Edit Fields (Edit Fields (Set)): sets 1 field: isWeekly
  3. Switch: routes items into 2 branches
  4. Fetch Customer Risk Data (Postgres): run a query
  5. Get row(s) in sheet (Google Sheets): uses Google Sheets
  6. Is High Risk Customer? (If): checks a condition and branches into true / false
  7. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Prepare Escalation Summary For Low Risk User (Edit Fields (Set)): sets 9 fields: customer_id, customer_name, email…
  9. Prepare Escalation Summary For High Risk User (Edit Fields (Set)): sets 9 fields: customer_id, customer_name, email…
  10. Merge: merges the data from its input branches

…plus 11 more steps. See the full node list below.

Services it uses

Google SheetsGmailPostgresDiscord

HTTP calls to: api.groq.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.

Nodes used (13)

From the author

How it works This workflow monitors customer health by combining payment behavior, complaint signals, and AI-driven feedback analysis. It runs on daily and weekly schedules to evaluate risk levels, escalate high-risk customers, and generate structured product…

Excerpt from Avkash Kakdiya'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.