AddThisFeature

AI Intent Detection

Work out what a message is asking for so the app can route it to the right place.

moderate AI Analysis & Search

What it adds

Classification of incoming free text against a fixed catalogue of supported intents, with an explicit unknown outcome.

What your agent is told to do

5
  1. 1

    Define the intent catalogue as data owned by the app, not as prose inside a prompt. Every result must resolve to an entry that already exists, and anything else becomes unknown.

  2. 2

    Detect intent from the actionable part of the message only. Strip quoted replies, forwarded threads, signatures, and prior messages, because the intent of a two-month-old quoted paragraph is not the intent of the message in front of you.

  3. 3

    Return a ranked shortlist with confidence rather than a single verdict, and treat everything below a configured threshold as ambiguous so the interface can ask instead of guessing.

  4. 4

    Where intent triggers an action, show the detected intent and let the user confirm or correct it. Corrections must be stored, because they are the only honest measure of whether the classifier is working.

  5. 5

    Sentiment scoring on the same text belongs to AI Sentiment Analysis; this feature owns what the user wants and that one owns how they feel about it. Share one text extraction and redaction step between them rather than sending the same message to the provider twice.

Edge cases it handles

8
  • Results must be constrained to the closed catalogue. An invented intent, however plausible, is not routable and must be collapsed to unknown rather than created on the fly.
  • Ambiguous and multi-purpose messages are common. Unknown must be a real outcome with its own path through the interface, not a hidden state that silently picks the first option.
  • Quoted, forwarded, and historical text will otherwise dominate the classification. Separate the new content before analysis and record which portion was used.
  • Text in a message may itself contain instructions aimed at the model. Treat all incoming content as untrusted data, never as configuration, and reject any result that names an intent outside the catalogue as evidence of exactly this.
  • Anything with a consequence — cancelling, refunding, deleting, escalating, notifying a customer — needs an explicit confirmation step showing what was detected and what will happen.
  • When the provider is unavailable, messages must still arrive and land in a default queue for manual triage. Routing may degrade; delivery may not.
  • Truncated or malformed output must be rejected outright. A partially returned intent name that happens to prefix-match a real one is a wrong answer, not a near miss.
  • Changing the catalogue does not reclassify history. Store the catalogue version with each result so old routing decisions remain explicable.

Definition of done

8
  • Every detected intent maps to an entry in the stored catalogue, with the catalogue version recorded.
  • Unknown and ambiguous outcomes are supported end to end and visible in the interface.
  • Quoted and historical text is excluded from the analysed content.
  • Consequential actions require explicit user confirmation of the detected intent.
  • User corrections are captured and reportable against detected intents.
  • A provider outage routes messages to manual triage without dropping them.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.