Virtual Agent topic input data types let you define text, Boolean, record, date, and array inputs without scripting. Set the type on the Start node of a custom control or topic block in Assistant Designer, then pass values from the calling topic. Typed inputs also support validation of NLU predictions.
Choose Virtual Agent topic input data types by meaning
Start with the information the receiving block needs. A person’s typed name, a user record, and a list of user records are different inputs, even when the conversation displays similar words. Choosing the type before connecting values gives the author a clear contract between the calling topic and the reusable component.
String holds alphanumeric text using JavaScript data conventions. Boolean represents true or false, such as a yes or no answer. Date/Time represents date and time values. Reference identifies a record through its sys_id. These distinctions matter when the receiving component needs something more precise than the words a person entered.
For example, consider a proposed equipment assistance topic. A description of the problem fits String. A confirmation fits Boolean. A selected employee fits Reference when the receiving component needs the employee record. A requested appointment fits Date/Time. Treat these as design examples: choose the type from the information required, rather than from the wording of the prompt.
Assistant Designer is the terminology used in Brazil and Australia; earlier releases use Assistant Designer Asset library or Virtual Agent Designer. Check the labels on your instance and release before following a design walkthrough. The input contract should still describe what the value means and whether it represents one item or a sequence.
Define the receiving input before mapping the caller
The input type belongs on the Start node of a custom control or topic block. Define that receiving input first. Once the calling topic specifies an input with a data type, the data pill picker can supply information already collected from the person or looked up previously.
- Identify the single piece of information the custom control or topic block needs.
- Define its input data type on the Start node.
- For a record input, choose the target table and any record conditions.
- For an applicable array input, decide the permitted number of rows.
- In the calling topic, use the data pill picker to connect the collected or previously retrieved information.
- Review a sample value against the receiving input’s meaning before testing the conversation.
A helpful review artifact is a short input inventory: the input name, its type, its origin, and the receiving component’s purpose. For an employee input, record whether the caller has free text or a selected record. For an appointment input, record whether the caller supplies one date or several. This makes mismatches visible before they become conversation defects.
When several topics need the same receiving component, discuss those input expectations together. The related design question is how to divide reusable work; see topic blocks in Virtual Agent design when deciding where that shared boundary belongs.
Use Reference for records and Array.Reference for sequences
Reference represents a table record by sys_id. Select a ServiceNow table in the Table field and define conditions when the returned record needs to meet specific criteria. A readable label can help a person choose, but the input’s record identity is the sys_id rather than that label.
Array.Reference represents a sequence of record identifiers. It also uses the Table field and supports conditions for the returned records. Max Number of Rows limits how many records authors can specify. This lets the input definition express both the kind of record and the size of the sequence.
For a design exercise, suppose a block needs a small set of employees whose names match a particular prefix. Choose Array.Reference, select sys_user, define the name condition, and set the row limit to the intended size. Review the filter and the limit separately: the filter describes eligible records, while the row setting describes the number authors can specify.
Do not substitute Array.String merely because employee names look like text. Use text when text is the required information; use record references when the receiving component needs records. During review, ask the block author to explain what they will do with the supplied value. That answer should justify the type choice.
Array.Reference corresponds to List.[Table] in Workflow Studio. Keep that terminology difference in the input inventory when discussing the same record sequence across those design environments. It helps reviewers recognize the intended relationship without treating differently named types as unrelated concepts.
Set array expectations and review default values
Arrays represent sequences rather than single values. Array.String holds alphanumeric text values. Array.Datetime holds date and time values. Array.Reference holds table records identified by sys_id. Array.Choice holds values from a particular choice field. Choose among them according to the contents of the sequence.
Max Number of Rows is available for limiting the number of strings, dates, or records authors can specify for Array.String, Array.Datetime, and Array.Reference. For Array.Datetime, use + to enter more than one default value. Duplicate default values are not permitted for array data types.
Review defaults as part of the input design, rather than as incidental sample data. A default sequence should demonstrate the shape the receiving component expects. If the example contains duplicate entries, revise the defaults before using it to explain the contract to another author.
For Array.Choice, begin with the specific choice field whose values the sequence represents. A list of arbitrary words and a list of values from that field express different expectations. Write down which field is intended so reviewers can assess the proposed examples against the right set of choices.
A focused review can compare one text value with a text sequence, one record with a record sequence, and one date with several dates. The goal is to expose a mistaken assumption about cardinality. Avoid adding arrays just because a later topic might someday need multiple values; design around the receiving component’s current requirement.
Check NLU predictions against the typed input
Input types support secondary validation of values predicted by NLU. A prediction that falls outside the valid choices does not slot-fill the input. For example, if a choice field offers desktop, tablet, and headset, a predicted value of scanner does not become an accepted choice merely because NLU returned it.
When reviewing this situation, separate the predicted value from the allowed value set. Compare the prediction with the actual choices before assuming the conversation’s input mapping is wrong. A prediction can look plausible in ordinary language while failing the receiving input’s constraints.
Prepare examples with an allowed choice and a plausible but disallowed choice. Record the predicted value and whether the input was slot-filled. This gives the reviewer evidence about the validation boundary instead of relying on the conversation’s apparent fluency.
Keep changes to input typing distinct from changes to how a topic is found. For the neighboring intent and migration work, use LLM topic discovery and NLU migration. For conversations selected through keywords, see keyword topics and matching.
For help planning this work, see ServiceNow implementation.
Before approving the input inventory, ask a second author to trace one example from the caller to the receiving component. Have them identify the value source and explain the selected type. Any disagreement is a reason to clarify the contract before extending the conversation.
Questions to settle during an input design review
What should a handover include for another topic author?
Provide a compact example of the expected value, its business meaning, and where the caller obtains it. Include a contrasting example that would be inappropriate. This turns a type label into an understandable agreement without requiring the next author to reconstruct your design decisions.
How should the team prioritize an input review?
Start with inputs whose interpretation affects later work: record identity, sequences, and constrained choices. Review simple descriptive text afterward. This is a suggested review order, intended to catch misunderstandings about the receiving component before spending time polishing prompts.
Should a translated conversation get a separate input inventory?
Keep the business meaning visible alongside the translated wording so reviewers can compare what the conversation asks with what the component expects. Coordinate that review with localizing Virtual Agent topics when language work is part of the change.
What is a sensible stopping point for the design session?
Finish when the caller’s example value, the receiving type, and the business requirement agree, and the team has recorded unresolved test cases. Assign an owner to those cases. A longer list of type definitions adds little if nobody can explain which value the caller will actually supply.