Templates / Route AI-powered customer support via email and Slack with PostgreSQL and Google Sheets

Route AI-powered customer support via email and Slack with PostgreSQL and Google Sheets

Ready for 3.0

by yuta tokumitsu ✓ · 58 views · created 2026-01-22 · Support Chatbot, AI RAG

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 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Postgres and Google Sheets. It also calls hooks.slack.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Extract & Enrich Data (Edit Fields (Set)): sets 8 fields: questionId, userQuestion, userEmail…
  2. Sentiment & Context Analysis (Code): runs custom JavaScript code
  3. Urgency Check (If): checks a condition and branches into true / false
  4. Send Urgent Alert (HTTP Request): calls hooks.slack.com (POST)
  5. Merge: merges the data from its input branches
  6. Fetch Conversation History (Postgres): run a query
  7. Search Knowledge Base (Code): runs custom JavaScript code
  8. Build AI Context (Code): runs custom JavaScript code
  9. AI Response Generator (Code): runs custom JavaScript code
  10. Process & Analyze Response (Code): runs custom JavaScript code

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

Services it uses

PostgresGoogle Sheets

HTTP calls to: hooks.slack.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 (10)

From the author

Automate intelligent customer support responses with AI and Slack How it works 1. Receive request via webhook with customer question 2. Analyze sentiment and detect urgency using JavaScript 3. Send urgent alerts to Slack for critical cases 4. Search knowledge…

Excerpt from yuta tokumitsu'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.