# AI Email Classifier & Slack Router

**Category:** AI Automation  
**Tools:** Gmail, OpenAI, Slack  
**Nodes:** 11  
**Built by:** Forgent Systems

Reads incoming emails, has AI classify each one (support, sales, billing, HR and so on) and notifies the right team on Slack straight away.

![Workflow](preview.webp)

## How it works

1. A new email arrives in Gmail.
2. AI classifies it into a category with a short summary.
3. A switch sends it down the matching path.
4. The responsible team or person is notified on Slack.

## Use cases

- Shared inboxes such as info@ and hello@
- Small teams without a helpdesk
- Faster lead and ticket response

## Setup

1. In n8n open **Workflows → Import from File** and choose `workflow.json`.
2. Connect these credentials:
   - Gmail account
   - OpenAI account
   - Slack account
3. Point the Sheets / Airtable / Drive / Slack nodes at your own resources (structure above).
4. Replace placeholder emails, phone numbers and `YOUR-FORM-ID` links with your own.
5. Times use the America/New_York timezone and dates use MM/DD/YYYY. Adjust if needed.
6. Run a test execution, then activate.

## Nodes

- **Gmail Trigger** — `n8n-nodes-base.gmailTrigger`
- **AI Agent** — `@n8n/n8n-nodes-langchain.agent`
- **OpenAI Chat Model** — `@n8n/n8n-nodes-langchain.lmChatOpenAi`
- **Structured Output Parser** — `@n8n/n8n-nodes-langchain.outputParserStructured`
- **Switch** — `n8n-nodes-base.switch`
- **General Inquiry** — `n8n-nodes-base.slack`
- **Support** — `n8n-nodes-base.slack`
- **Sales** — `n8n-nodes-base.slack`
- **Service** — `n8n-nodes-base.slack`
- **Billing** — `n8n-nodes-base.slack`
- **HR / Careers** — `n8n-nodes-base.slack`
