logo

NJP

Triggering Flow Designer subflows/actions through Virtual Agent

Import · Feb 22, 2021 · article

Utility: Action

Maybe your eye already caught the new Utility "Action". That's what this article is about! It does make one of my previous articles obsolete, though always good when such functionality becomes out-of-the-box.

image

image

Note: The fields shown in the Flow Action Properties can differ a little bit depending on if you selected Action or Subflow.

Flow Designer Subflow or Action

The new Utility Action supports executing a Flow Designer Subflow or Action. It does not support executing a Flow Designer Flow (the custom Topic Block earlier mentioned, does support executing a Flow Designer Flow). Positives of having this new Utility are amongst others that you can simply select a Subflow or Action, and depending on those, Inputs become visible. This helps guide you through the usage of the Flow Designer Subflow or Action.

For this article, I've selected an Action that retrieves System Property values. The input is simply the System Property name, and the output the System Property value. After selecting the Action on the Utility Flow Action Properties, both the (mandatory) input and the output automatically become visible and can be used.

Note: The output only becomes visible when you select "Wait for response".

image

The output mapping can easily be used using the data pill or scripting vaInputs.variable_name.

image

image

Result

The result of my first small test using an Action to retrieve System Property Values instantly works. Just having dragged/dropped the Utility Action and a Bot Response Text, selected the Action and added the output to the Bot Response Text using the data pill.

The usage of this new Utility Action looks so easy and smooth!

image

image

---

And that's it!

Kind regards,

Mar k Roethof

ServiceNow Technical Platform Architect @ Quint Technology

2x ServiceNow Developer MVP

2x ServiceNow Community MVP

---

LinkedIn

image

View original source

https://www.servicenow.com/community/virtual-agent-nlu-articles/triggering-flow-designer-subflows-actions-through-virtual-agent/ta-p/2307820