Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Passing Input Data/Context from Architect Bot Flow into an Agentic Virtual Agent (AI Studio)

    Posted 10-13-2026 06:55
    Hi Community,
     
    In a standard Inbound Call/Message Flow calling a Bot Flow, we define Input variables on the Bot Flow (marked as "Input to flow"), which then appear in the "Call Bot Flow" action so the parent flow can pass values like ANI, customer ID, or CRM lookups.
     
    I want to do the exact same thing when calling an Agentic Virtual Agent from a Bot Flow: pass existing flow variables into the Agentic Virtual Agent so it can use them in conversation, decisions, or data action tools without reprompting the caller.
     
    Could someone confirm the recommended process?
    1. How do we define these variables inside the agent in AI Studio so they appear under the "Inputs" list of the "Call Agentic Virtual Agent" action in Architect?
    2. What are the best practices around token limits or context sizing when passing data from the flow?
     
    Thanks for any insights!

    #AIConfiguration
    #AICopilot(Agent,Supervisor,Admin)
    #API/Integrations
    #ArchitectandDesign
    #ConversationalAI(Bots,VirtualAgent,etc.)

    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------


  • 2.  RE: Passing Input Data/Context from Architect Bot Flow into an Agentic Virtual Agent (AI Studio)

    Posted 10-13-2026 08:37

    The variables get defined on the agent side first. In AI Studio, open the agent and set up the input variables you want handed over, name and type. Until they exist there, there's nothing to map to in Architect.

    In the bot flow, Virtual Agent has to be enabled, then add the Call Agentic Virtual Agent action and pick the agent. The variables you defined show up as inputs on the action, so you assign your flow values to them there - ANI, customer ID, whatever the flow already collected. The action has outputs too, for the context the agent sends back when it finishes. One thing that catches people: adding the action changes the flow type to Agentic Virtual Agent, you'll see the badge in the top right.

    Inside the agent, reference the variables by name in your prompts and guides and the values are just there when it runs. No re-asking the customer for what the flow already knows.

    i keep what i pass pretty small, ID, auth state, locale. If the agent needs more than that it can go fetch it with a tool once it knows who it's talking to, no need to stuff a whole CRM record through the action



    ------------------------------
    Jason Okowitz
    Enterprise Architect
    HCA
    ------------------------------



  • 3.  RE: Passing Input Data/Context from Architect Bot Flow into an Agentic Virtual Agent (AI Studio)
    Best Answer

    Posted 10-13-2026 08:43

    Hi Akshat,

    Adding some specifics to Jason's answer:

    Defining the inputs

    In AI Studio, open the agent and go to the Configuration tab. Add your variables under Start Context, giving each one a name, data type and description. Once the agent is published, they show up under Inputs on the Call Agentic Virtual Agent action. The action only lists published agents and always runs the latest published version, so republish after you add variables.

    A few things to know:

    • Only primitive types are supported. You can't pass a list of orders or a JSON object. Flatten what you need into strings, numbers or booleans, or let the agent fetch the detail with a data action tool.

    • The description matters. The agent reads it to work out how to use the value. "Customer ID, already verified, use for the GetAccount tool" works much better than "custId".

    • Use masking for string values the agent should carry but never see or say, such as auth tokens, UUIDs or internal IDs. They can still be passed into tools.

    • Outputs are set up the same way under End Context. You can pick them from Start Context, Tool Input or Tool Output, with up to 50 outputs and 2,000 characters per string (longer values get truncated). After publishing you can add outputs but can't deselect ones you've already used.

    Token and context sizing

    • The total size of unmasked start context values is capped. Masked values don't count toward it. If you go over, the action takes the Failure path with the exit reason request.too.large, so handle that path in the flow rather than assuming success.

    • Everything unmasked goes into the prompt on every turn. A large start context costs more tokens and adds latency for the whole conversation, not just the first turn.

    • Don't send sensitive data such as card numbers in start context.

    • Map the Exit Reason output (Error / Escalation / TriggeredByUser / Guardrails) to a variable and branch on it after the action. That gives you clean handling for escalations and failures.

    I agree with Jason on the rule of thumb: pass identifiers and state (customer ID, auth status, locale, intent from the IVR), mask the internal ones, and let tools pull the rest.

    Docs:

    Call Agentic Virtual Agent action: https://help.genesys.cloud/articles/call-agentic-virtual-agent-action/ 

    Start/End context configuration: https://help.genesys.cloud/409057 

    Regards



    ------------------------------
    Stephan Taljaard
    EMBEDIT s.r.o
    ------------------------------



  • 4.  RE: Passing Input Data/Context from Architect Bot Flow into an Agentic Virtual Agent (AI Studio)

    Posted 10-16-2026 01:01

    Thanks for your answers.

    I have one question: Is it possible to pass the information collected by the Agentic Virtual Agent during the conversation back to the Architect flow through End Context, even if those values are not used in any tool input or tool output? If yes, how can I configure this?



    ------------------------------
    Akshat
    CTI Engineer
    ------------------------------