Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.3
This workflow is provided as-is. Please review and test before using in production.
This n8n template automates your customer support workflow by connecting Gmail, OpenAI, Supabase, and Slack. It listens for new incoming emails, classifies them using AI, routes them to the appropr...
n8n-nodes-base.gmailtrigger, n8n-nodes-base.slack, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.supabase, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.gmail, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Bohdan Saranchuk.
Original n8n.io source• The OpenAI API is used for automatic email classification, which incurs a small per-request cost. See OpenAI Pricing for up-to-date info.
• You can easily expand the categories or connect more Slack channels to fit your workflow.
• The Supabase integration ensures you don’t process the same thread twice.
1. Gmail Trigger checks for unread emails.
2. Supabase Get Row verifies if the thread already exists.
3. If it’s a new thread, the OpenAI node classifies the email into categories such as “support” or “new-request.”
4. The Switch node routes messages to the correct Slack channel based on classification.
5. Supabase Create Row logs thread details (sender, subject, IDs) to your database.
6. Finally, the Gmail node marks the message as read to prevent duplication.
• The workflow uses a manual Gmail trigger by default, but you can adjust the polling frequency.
• Modify category names or Slack channels to match your internal setup.
• Extend the workflow to include auto-replies or ticket creation in your CRM.
• Gmail account (with OAuth2 credentials)
• Slack workspace (with channel access)
• OpenAI account for classification
• Supabase project for storing thread data
Use this automation to triage incoming requests, route sales leads to specific teams, or even filter internal communications. You can add nodes for auto-responses, CRM logging, or task creation in Notion or ClickUp.
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.
| Workflow | AI-powered email support router with Gmail, ChatGPT-4o, and Slack |
|---|---|
| Complexity | advanced |
| Nodes | 18 |
| Categories | Ticket Management, AI Summarization |
| Author | Bohdan Saranchuk |
| Published | 08 Oct 2025 |
Use the JSON export at /data/workflows/9376/9376.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
This n8n template automates your customer support workflow by connecting Gmail, OpenAI, Supabase, and Slack. It listens for new incoming emails, classifies them using AI, routes them to the appropr...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Ticket Management, AI Summarization use case.