Skip to main content

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


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


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

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


Common Pitfalls & Fixes


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.
Last modified on May 21, 2026