You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!