SaaS AI Email Router

Route inbound support emails with reliable Ollama workflows.

A production-style Next.js router that validates input, tracks requests, applies guardrails, classifies customer intent, and drafts polished support responses with local AI.

Email Playground

Draft, classify, and route in one API call

The API validates payloads, rate limits requests, tracks a UUID per request, and falls back with clean JSON errors if Ollama is unavailable.

Intent Classes

3

complaint / question / refund

Guardrails

Active

unsafe prompts filtered before routing

Routing

Live

response drafted with Ollama in real time

AI Thinking

Live output stream

Your AI-generated reply will appear here with a typing animation after the email is processed.

Response Console

Structured API output

Payload preview

{
  "id": "uuid",
  "intent": "complaint | question | refund",
  "response": "AI response will appear here."
}

Operator notes

Rate limiting and request tracking are handled in middleware before the route executes.

Guardrails screen unsafe input before classification and response generation.

Submit an email to see the live routing workflow.