Auto-Classify and route to Messages with an AI Agent in n8n and Post It to Slack

An n8n workflow that fires when a customer messages you on WhatsApp, then an AI agent reads it, tags the topic and urgency, and routes it to the right person — giving you every message auto-sorted and assigned. No code: import the JSON, connect your apps, and it runs 24/7.

difficulty Beginnersetup 40 minresult Every message auto-sorted and assigned
  1. 1

    Trigger when a customer messages you on WhatsApp

    A WhatsApp Trigger starts the workflow the moment a customer messages you on WhatsApp.

  2. 2

    Hand it to the AI agent

    An AI Agent node running OpenAI reads it, tags the topic and urgency, and routes it to the right person. The prompt is pre-written and scoped to this one job so results stay consistent.

  3. 3

    Deliver the routing

    The result is sent to Slack — ready for a human to approve.

  4. 4

    Add a safety net (optional)

    Insert an IF/human-approval step before anything is published or emailed, so you stay in control until you trust the output.

Frequently asked questions

How do I import the workflow into n8n?

Download the JSON, then in n8n open a new workflow, choose ⋯ → Import from file, and select it. Every trigger, node and connection appears on the canvas; you just add your credentials and activate it.

How much does the AI part cost to run?

Pennies. Each run sends a small amount of text to the model, so most teams spend a few dollars a month even at hundreds of runs. You set the model and can cap volume in n8n, so costs never surprise you.

Can I trust the AI to get the routing right?

The prompt is tightly scoped to one job and you can add a human-approval step in n8n before anything is sent or published. Start with review-mode for a week, and once you trust the output, switch it to fully automatic.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.