Skip to main content

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

Workflow preview

Workflow preview
100%
Route AI-powered customer support via email and Slack with PostgreSQL and Google Sheets preview
Open on n8n.io

1. Workflow Overview

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

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.postgres

Source and attribution

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

Original n8n.io source

1.1 Workflow description

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

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 base and fetch conversation history from PostgreSQL
  5. Generate AI response with context-aware prompts
  6. Route intelligently: Auto-respond via email OR escalate to Slack
  7. Log everything to Google Sheets and PostgreSQL for analytics

Setup steps

  1. Slack webhooks: Replace YOUR_URGENT_WEBHOOK and YOUR_ESCALATION_WEBHOOK with your webhook URLs
  2. Google Sheets: Replace YOUR_SPREADSHEET_ID with your spreadsheet ID and authenticate
  3. Email: Configure SMTP/Gmail credentials in the email node
  4. PostgreSQL (optional): Create support_conversations table or disable DB nodes
  5. Production: Replace mock AI nodes with OpenAI/Anthropic API nodes

Key features

  • Multi-language support (Japanese & English)
  • Sentiment analysis with urgency detection
  • Smart escalation routing
  • Real-time Slack notifications
  • Comprehensive analytics logging

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - Webhook Trigger

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

Block 8 - Extract & Enrich Data

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

Block 9 - Sentiment & Context Analysis

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

Block 10 - Urgency Check

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

Block 11 - Send Urgent Alert

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

Block 12 - Merge After Urgency

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 13 - Fetch Conversation History

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.4

Block 14 - Search Knowledge Base

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

Block 15 - Build AI Context

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

Block 16 - AI Response Generator

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

Block 17 - Process & Analyze Response

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

Block 18 - Routing Decision

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

Block 19 - Slack Escalation

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

Block 20 - Send Auto Response

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

Block 21 - Merge After Routing

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 22 - Log to Analytics Dashboard

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 23 - Save to Database

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.4

Block 24 - Send API Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

3. Summary Table

Workflow Route AI-powered customer support via email and Slack with PostgreSQL and Google Sheets
Complexity advanced
Nodes 24
Categories Support Chatbot, AI RAG
Author yuta tokumitsu
Published 22 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12891/12891.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 Route AI-powered customer support via email and Slack with PostgreSQL and Google Sheets do?

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

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 Support Chatbot, AI RAG use case.