Перейти до основного вмісту

Using AI to Generate a Topic

Use the Generate with AI feature to bootstrap a Topic definition (label, API name, classification description, scope, and instructions) from a natural language prompt. This page gives you patterns, validation criteria, and refinement tactics so output reaches production quality quickly.


Summary

You GetWhy It Helps
Structured draft (all core fields)Eliminates blank‑page delay
Enumerated rulesEncourages atomic, testable behaviors
Suggested triggers & scopeQuicker classification coverage
Rapid iteration loopTry multiple framings to converge

Prerequisites

  • Access to an Agent where you can create Topics
  • Understanding of what the Topic should and should NOT handle
  • (Optional) List of trigger phrases & default values you expect

When to Use vs. Manual Authoring

Use AI Generation WhenPrefer Manual Authoring When
You need a fast first draftRegulatory / compliance heavy domain
Pattern is common (quiz, retrieval, summarization)Highly bespoke workflows
You want multiple alternative wordingsStrict legal wording required
You’re standardizing voice across teamsYou already have a vetted template

Step-by-Step

  1. Open the Topics tab of your Agent and click Create New Topic.
  2. Click Generate with AI.
  3. Enter a descriptive prompt (see Prompt Patterns below).
  4. Submit and wait for the draft.
  5. Review each section (Label, API Name, Classification, Scope, Instructions).
  6. Edit for clarity, compliance, and uniqueness.
  7. Accept / insert the generation into the form.
  8. Save the Topic and run initial test prompts.

Prompt Patterns

GoalPrompt ExampleKey Inclusion
Quiz generationCreate a quiz generation topic that produces adjustable difficulty quizzes (easy/medium/hard) with a selectable number of questions. Default to 5 medium questions if unspecified.Defaults for difficulty & count
Retrieval / knowledgeTopic for internal knowledge lookups across product docs; summarize and cite sources. Exclude financial or HR policy questions.Explicit exclusions
CoachingTopic that coaches junior support agents on tone and resolution steps; asks clarifying questions before drafting a reply.Clarifying step
Compliance filterTopic that screens user requests for PII exposure risk; flags and suggests redactions; does not store raw data.Data handling constraints

Tips:

  • State DEFAULTS (difficulty, count, format) explicitly
  • Add EXCLUSIONS (what this topic must not do)
  • Include ACTION verbs for classification: "explain", "quiz", "summarize", "coach"

Screenshots

StageScreenshot
Drafting (input)AI Topic Prompt
Generated ResultAI Topic Result

Common Pitfalls & Fixes

PitfallSymptomFix
Over-broad scopeMisclassification overlaps with other TopicsNarrow scope + add exclusions
Missing defaultsInconsistent responsesAdd explicit default rules
Ambiguous triggersRandom routingStrengthen trigger verbs/nouns
Instruction driftModel ignores later rulesShorten + front‑load critical rules
Weak namingConfusing or genericUse domain + function (e.g., Biology_Quiz)

After Accepting the Draft

  1. Adjust naming collisions (if any).
  2. Save the Topic.
  3. Run 3–5 varied user phrasing tests.
  4. Confirm correct routing; tweak classification description if misrouted.
  5. Add or edit an Action if the Topic requires external calls.

Done. You now have a repeatable method to translate intent into a production‑grade Topic definition using AI assistance.