How to assign AI agent Studio variable value
I have created a variable (country) in my workflow agent, and my logic depends on this variable using if-else conditions. During testing, I was manually assigning values to this variable, and everything worked fine.
Now, I need to call the agent from Fusion using a Smart Action. I want to know how I can assign a value to this variable (country) within the action chain.
Here is the code I’m using:
….
require(["vx/oracle_fai_aistudiopublicUI/ui/self/resources/js/agentUtil"], (AgentUtil) => {
const onBeforeSmartActionSubscription = recordContext.subscribe(onBeforesmartActionRequest, (response) => {
AgentUtil.invokeAIChat('WHAT_COUNTRY', {}, "Start"); // Launch the agent team AI chat
Tagged:
0