The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Is it possible to get output from topic block?

Dotychczas
Mega Guru

Hello Experts, 

in virtual agent I have a topic block called "Survey" which I added to my setup topic. I would like to display link depending on choices made in survey. Is it even possible? 

Kind Regards
Kuba

1 ACCEPTED SOLUTION

nilimadesai
ServiceNow Employee
ServiceNow Employee

Hello, 

You can define the output in the survey topic block based on user input selections and use them in the Survey topic. See the image below for where to define the output. 

find_real_file.png

If I have answered your question, please mark my response as correct and/or helpful.

Regards,

Nilima 

View solution in original post

8 REPLIES 8

nilimadesai
ServiceNow Employee
ServiceNow Employee

Hello, 

You can define the output in the survey topic block based on user input selections and use them in the Survey topic. See the image below for where to define the output. 

find_real_file.png

If I have answered your question, please mark my response as correct and/or helpful.

Regards,

Nilima 

How do I use those outputs as a variables in my main topic? 

And how do I reuse those outputs as variables in my main topic?

They appear as input variables in the main topic. By default, they'll have the name you define in the subtopic, but if you want or need (i.e. if you have multiple), you can manually rename them as well in the settings of the topic block from the main topic.

To use them in the main topic... from the data pill picker in the UI, they're available to select like any other input variable and from a script, they're similarly available like any other input variable (vaInputs.[name]).