Skip to main content

AI Classify

The AI Classify node uses AI to sort incoming data into categories you define. It reads the input, decides which category it belongs to, and routes the flow accordingly.

Screenshot placeholder

How It Works

  1. You define a list of categories (e.g., "Sales", "Support", "General", "Spam").
  2. The node sends the input text to your AI provider.
  3. The AI picks the best-matching category.
  4. The flow continues down the output handle for that category.

Screenshot placeholder

Configuration

Input Text

The text you want to classify. Supports {{variables}}.

Example: {{incoming_message}}

Categories

A list of category names. Each category creates its own output handle on the node, so you can connect a different flow path to each one.

Example categories:

  • Sales
  • Support
  • General
  • Spam

System Prompt (Optional)

Additional context to help the AI classify more accurately. Use this to explain your business or clarify what each category means.

Output

The chosen category is available as {{classification}} for downstream nodes.

Each category also gets its own output handle on the node. Connect different branches of your flow to each handle to route messages to the right place.

Example

A message comes in from a customer. You want to handle it differently depending on what it's about:

  1. Incoming Message trigger fires
  2. AI Classify reads the message and sorts it into "Sales", "Support", or "General"
  3. Each category connects to a different AI Generate Reply node with its own system prompt

This way, sales questions get a sales-focused reply, support requests get troubleshooting help, and general messages get a friendly generic response.

How Matching Works

The AI returns a category name, and the node matches it against your list using this order:

  1. Exact match — the AI's response exactly matches a category name
  2. Word boundary match — the category name appears as a whole word in the response
  3. Substring match — the category name appears somewhere in the response (longest category names are checked first to avoid false matches)

Technical Details

  • Uses temperature 0 for consistent, repeatable classifications.
  • The AI is instructed to respond with only the category name, nothing else.