OBLYTECH Logo
OBLYTECH Logo

Write LLM Descriptions and Instructions for Virtual Agent Topics

Write an LLM topic description to explain which requests Virtual Agent should route to the topic. Write instructions to define how the model responds and extracts input after discovery. Give the description a precise task boundary, then use distinct input node names and explicit value mappings to guide the conversation.

Separate topic discovery from conversation behavior

A description and an instruction solve different problems. The topic description helps the model identify the appropriate topic for a request. Instructions associated with LLM user input controls guide responses inside the conversation. A well-written response instruction cannot compensate for a description that attracts requests outside the topic’s scope.

Start by writing two short working statements: the request this topic handles and the information its conversation needs. Keep these statements separate during review. For a device replacement example, the first might concern replacing a damaged company device; the second might concern collecting the device category and reason. This is an authoring example, not a claim about a supplied replacement workflow.

Descriptions are required when creating topics. Their specificity matters for discovery. Instructions in the Detail description field can shape tone, greetings, small talk, and entity detection. Decide which purpose an instruction serves before adding more wording.

Designer naming varies by release: Brazil uses Assistant Designer, Australia and Yokohama use Virtual Agent Designer, and Zurich refers to the Assistant Designer Asset library. Check the interface on your instance and release before following a field reference. For broader discovery changes, see Virtual Agent LLM topic discovery and NLU migration.

Write an LLM topic description around the supported task

Begin with the action the topic supports. Add the object of that action and the context that distinguishes it from neighboring topics. A description such as “Handle device requests” leaves several possibilities open: troubleshooting, replacement, purchase, or access to an existing device. Naming a category is a starting point, but it does not establish the routing boundary.

An illustrative description could be: “Help request replacement of a damaged company laptop. Handle requests about replacing the laptop because of physical damage. Keep new equipment purchases and software problems outside this task.” Use that wording only if the actual conversation supports that scope. A detailed description that promises unsupported work creates a different routing problem.

  1. Identify the concrete user goal, including the object or service involved.
  2. List the request variations the existing topic can handle.
  3. Describe the context that separates those requests from adjacent topics.
  4. Remove responsibilities that the conversation cannot complete.
  5. Compare the result with neighboring descriptions for overlapping promises.

Details should explain the task, rather than decorate it. Include a date, category, or operation when that distinction changes what the topic does. Avoid a catalog of loosely related services added to make the description appear comprehensive. The reader reviewing the description should be able to predict which requests belong there.

Before changing a supplied conversation, compare its actual coverage with pre-built topics in ITSM Virtual Agent. Describe the behavior that exists, then consider whether the conversation itself needs expansion.

Replace keyword collections with task logic

NLU utterances emphasize phrases and keywords. LLM descriptions need purpose and context. Pasting a list such as “broken laptop, damaged computer, replace device” into the description leaves the relationship between those phrases unstated. Explain the supported action and its circumstances instead of expecting the model to infer the workflow from a vocabulary list.

Search snippets are also a poor starting point. A snippet aims to attract a reader; a discovery description needs to distinguish one task from another. Remove promotional language and broad introductions. State what request should lead into this conversation and which distinctions matter to its scope.

Use direct verbs where possible. Replace an ambiguous sentence such as “It helps them with this” with wording that names the task. Pronouns and third-party references can blur who is acting or whose request is being handled. Review descriptions for that ambiguity before spending time on synonyms.

If a conversation currently relies on explicit keyword matching, review keyword topics and matching in Virtual Agent before treating an LLM description as a replacement phrase list. Keep the authoring decision tied to the discovery mechanism being used.

Give input nodes distinct names and extraction instructions

The Node name should identify the operation being performed and distinguish the node from other inputs. Similar names can lead to an entity being assigned to the wrong input node variable. Naming two inputs “Device type” and “Device” makes their separate responsibilities harder to recognize.

For the replacement example, consider names such as “Replacement device category” and “Replacement damage reason.” These are suggested authoring names. Check that each name describes the information that its own node collects. Do not make the name broader than the expected input.

Use Detail description to explain what the model should collect or how it should respond. Where mapped values are involved, use the Additional instructions for LLM area to specify allowed operations or values and how user language maps to them. The model can use that mapping for entity identification and slot filling.

For example, if a designed input accepts the keys “physical_damage” and “battery_issue,” an instruction might associate “cracked casing” with the first and “battery will not hold charge” with the second. State that the mapped key is the desired extraction result. Those keys are illustrative; substitute values that the actual input accepts.

Keep unrelated response instructions out of that mapping. A request for a friendly greeting does not explain which category to extract. When a node has both conversational and extraction responsibilities, write each responsibility clearly enough to review independently.

Test routing and extraction as separate checks

Build a small review set before revising the wording. Include requests clearly inside the task, requests clearly outside it, and requests near a boundary. Record the expected topic and the expected input values. This is a recommended review method, not a built-in scoring feature.

For the device example, compare “Replace the laptop with a cracked case” with “Install software on the laptop.” Both mention the same equipment, but the intended tasks differ. A successful routing check should reflect that difference. Then test whether the selected conversation collects the appropriate damage reason without confusing it with the device category.

  • Check whether the intended topic is discovered for a supported request.
  • Check whether a neighboring task is incorrectly pulled into that topic.
  • Check whether a recognized entity reaches the intended input variable.
  • Check whether extracted values match the keys the input expects.
  • Check whether response tone follows the instruction without obscuring the request for information.

Revise the description when the wrong topic is selected. Review node names and extraction instructions when the correct topic receives the wrong values. Change one suspected cause at a time and repeat the relevant examples. This keeps a successful wording change from hiding an unresolved mapping problem.

Question-shaped replies deserve a separate test case. A user answering a question with another question can confuse the model. Compare that exchange with an action-led request, and revise the conversational wording if it leaves the intended action unclear.

For help planning this work, see ServiceNow implementation.

Questions about maintaining LLM topic wording

Should reviewers approve descriptions and instructions together?

A combined review is sensible when a topic’s scope changes. Ask the workflow owner to check supported requests and the conversation designer to check collected values. Their review questions differ, even when the same person performs both checks. Keep the expected task boundary visible beside the proposed wording.

How should teams document a wording experiment?

Keep the previous wording, the reason for the change, the examples used, and the observed result in an authoring record. That record helps a later reviewer distinguish a deliberate boundary from an accidental omission. Avoid recording sensitive conversation details when a neutral example demonstrates the same issue.

When should an author split a description into separate topics?

Consider a split when a description repeatedly joins unrelated goals and reviewers cannot explain their shared outcome. First inspect whether the conversation actually handles those goals together. A split is a design decision that needs its own review; adding more description text does not settle it.

Who should review specialized business vocabulary?

Ask someone familiar with the service to check whether category names and operation names carry the intended meaning. A technically clear instruction can still use a business term incorrectly. Include alternative employee wording in the review examples, especially when internal terminology differs from everyday requests.

Should unchanged wording be retested after a conversation change?

Retesting is a sensible maintenance step when the supported task or collected inputs change. An unchanged description may promise a task the revised conversation no longer handles. Compare the wording with the revised workflow, then run the affected examples before accepting the change.