Table of contents
In this tutorial you will build a small automation that receives a form submission, asks an AI model to summarise and classify it, and routes it to the right person.
Setup
- Create a webhook trigger in your automation tool
- Add an AI step with a clear classification prompt
- Add a switch step to route by category
- Send a notification to the right channel
The prompt
You are a triage assistant.
Classify the message into one of: sales, support, partnership, other.
Return JSON: {"category": string, "summary": string (max 30 words)}
Message:
{{ $json.message }}Test with real examples
Run ten real (anonymised) messages through the flow and check every classification. Adjust the prompt until the results are consistent.
Get the next article in your inbox
Insights for AI builders. Unsubscribe anytime.