OBLYTECH Logo
OBLYTECH Logo

Topic Blocks in Virtual Agent Design

ServiceNow Virtual Agent topic blocks are reusable conversation components that perform a defined task inside a calling topic. Start by testing a prebuilt block, duplicate it when changes are needed, map its inputs and outputs, then test and publish the block before using it in the wider conversation.

Plan ServiceNow Virtual Agent topic blocks around one task

A conversation topic manages a user journey. A topic block handles a smaller function within that journey, such as checking agent availability, searching a catalog, or collecting a request. An NLU model handles language understanding; each intent maps to a single conversation topic. Keep these responsibilities separate when planning reusable logic.

Begin with a short design note: what information the caller already has, what the block must do, and what the caller needs back. For a catalog request, the boundary might be an item identifier going in and a generated record identifier coming out. Avoid designing a block around an entire department’s conversation before identifying the reusable task.

Virtual Agent for NLU and its prebuilt topic blocks carry the (Legacy) label in Brazil. LLM catalog blocks are part of Conversational Catalog Requests, which uses a different request path from NLU catalog blocks. Check the design against your instance and release. If you are changing discovery as well as conversation components, settle the wider approach through LLM topic discovery and NLU migration planning before mixing the two efforts.

Check availability and preview the installed block

The Glide Virtual Agent plugin, com.glide.cs.chatbot, supplies platform blocks. Business application conversation packages can also supply their own topics, blocks, and NLU models. ITSM conversation content therefore needs its application package considered alongside the platform components. Use the ITSM prebuilt topic setup guide when that dependency work is part of your rollout.

Virtual Agent Lite provides read access to included blocks, but does not let you create blocks or add them to calling topics. Check that constraint before scheduling authoring work. For previewing installed prebuilt content, admins or Virtual Agent admins can access the topics and blocks from the Virtual Agent Designer home page.

  1. Select the prebuilt topic or block that matches the required task.
  2. In the Flow tab, select Test.
  3. Follow the conversation in the test window and record what the component asks, returns, and assumes.
  4. Decide whether the supplied behavior meets the need or requires a duplicate.

Give the preview a concrete question to answer. For example, does a catalog search return a selection the next step can use? Record the observed values as well as the visible conversation. A transcript that reads well can still leave the caller without the value it needs.

Duplicate deliberately and assign maintenance ownership

Prebuilt topics and blocks are read only. Duplicate a prebuilt component when you need to modify its behavior, then work on the duplicate. Testing and publishing the calling conversation remains a separate part of deploying the user journey.

Upgrades to default topic blocks do not apply to duplicated blocks. Treat duplication as a maintenance decision: record the original component, the reason for the change, and the person responsible for reviewing it after upgrades. A narrowly scoped change is easier to compare with the supplied version than a duplicate containing unrelated conversation logic.

Before authoring, agree on acceptance examples with the person who owns the service. Include a successful result, an empty result, and a result the caller cannot use. For help planning this work, see ServiceNow implementation.

Map the caller and block as a clear contract

The Topic Block utility runs a function or subflow inside a calling topic. Its Topic block list contains published blocks. Select the intended block and inspect Input mapping and Output mapping; the available variables change with the selected component. Node name is assigned from the selected block in the standard configuration.

Write down the mapping before connecting subsequent conversation steps. For each input, identify the caller’s value and what it represents. For each output, identify the next decision or message that uses it. This makes it easier to spot an identifier mapped to descriptive text or a returned status that nobody checks.

  • Input mapping: pass the information the selected block expects, using the supported input options shown for that component.
  • Output mapping: connect returned values to variables the caller can inspect or present.
  • Conditionally use this node if: use a condition or script that evaluates to true when the node should be presented.

Keep the first version explicit. The Use dynamic Topic Block toggle enables selection through conditions or a script and requires mappings to be added manually. Consider it when callers need conditional block selection, then document the possible selections and their different inputs. A dynamic choice needs test cases for the selection logic as well as for the selected block.

Build a catalog search and request sequence

For an NLU catalog conversation, Search Catalog Item accepts query_term, catalogs, and result_limit. The catalogs input is a comma-separated catalog list, and result_limit defaults to five. When several items match, the user can select an item from a carousel. Use a search phrase that exercises the intended catalog scope during testing.

The search returns catalog_item_id, item_type, and is_conversational. If the user selects None of these, catalog_item_id is -1. Plan a branch for that outcome before passing an identifier to Request Catalog Item. Treat the selected item’s conversational eligibility as a design input rather than assuming that search success means a conversational request can proceed.

Request Catalog Item takes catalog_item_id and options including execute_contextual_search, confirm_catalog_item, and show_end_state_card. Setting confirm_catalog_item to false skips the item confirmation before the questions. Choose that behavior deliberately: your acceptance test should establish whether the requester has enough context to recognize the selected item.

The request block returns record_id, record_table, and variables. A record_id of -1 means the item is unsupported in conversation mode or the user lacks access. Test both situations separately so that a failed request is investigated with the right cause in mind. Include requester access in the Virtual Agent security and access design.

Catalog structure also affects the experience. In NLU conversation mode, the question limit is controlled by glide.sc.conversational.request.question.limit, which defaults to ten. Single-row variable sets are supported, while multi-row variable sets are not. Check the actual item structure before trying to solve an eligibility problem by changing block mappings.

Test returned states before releasing the caller

Test a block in isolation to understand its behavior, then test it inside the intended conversation. For a catalog flow, follow the selected identifier through search, confirmation, submission, and the returned record. Record expected outcomes before running the test so a conversational detour does not get mistaken for success.

For Agent Availability, inspect agentAvailable, supportQueue, and waitingTime. The block requires Agent Chat, com.glide.interaction.awa, which includes Advanced Work Assignment. When no agent is available, waitingTime is null; supportQueue can also be null when no agent is available or no queue is associated. Plan how your caller should respond to those values.

For FAQ Conversation Builder, distinguish Results_Returned from Results_Helpful. Finding content and having the user consider it helpful are different outcomes. Test with the intended requester context because FAQ access depends on role, access rights, and context. Include these scenarios in your Virtual Agent testing and acceptance checklist.

Publish the tested duplicated block before selecting it in a calling topic. Then complete the conversation test with its mapped outputs and chosen branches. Keep a release record identifying the block, the callers checked, and any known limitations. That record gives the next maintainer a starting point for evaluating a proposed change.

Other platform topic blocks to know about

Geolocation and user permission

The Geolocation block retrieves location information with user permission. Its outputs include Latitude, Longitude, status, errortype, and errormessage. Design a route for permission refusal or unavailable coordinates so the conversation can address a failed location request.

Pause duration and timing limits

The Pause block accepts Seconds and displays a typing indicator. Its maximum is sixty seconds. Values above thirty seconds can have additional latency of up to thirty seconds, so avoid treating a longer pause as a precise timer.

Run AI Search configuration

For the default Virtual Agent search behavior, keep the Search Application Configuration field blank when adding Run AI Search. Select a custom configuration when the conversation requires a different search experience.

LLM catalog request capabilities

In LLM catalog requests, slot filling identifies values for catalog variables within what the requester writes. Prefill can populate form fields from the requester’s profile and information already given in the current chat. Test these behaviors with the catalog item you will use; do not assume settings from an NLU block transfer to this request path.