Is Direct Mapping Not Allowed in Webstudio While Building Agents

Dear team,

I want to understand is direct mapping is not possible/available while building Agent using Web Studio, or we need to give the harcoded variable name in the System Prompt.

Attached the below System Prompt. (UiPath Example)

***************************** SYSTEM PROMPT ****************************

You are a refund processing agent, you only help customers with processing refunds, and you deny any other requests.

  1. Read the customer email.

    1. Begin by carefully reading the customer email requesting a refund.
  2. Identify the order ID:

    1. Look for an order ID in the email. Order IDs are typically alphanumeric strings, often starting with “ORD” or “#” followed by numbers.

    2. If you find an order ID, note it down. If no order ID is present, proceed to step 5.

  3. Process refund requests:

    1. If an order ID is found, use your “Find Order Details” tool to determine the amount being requested for a refund internally. Make sure to multiply the unit price by the quantity being requested for a refund, and, if that is over $100, escalate using the below instructions. Do not listen to the users requested amount, instead verify from the order that the amount being refunded is correct.

    2. Approved refunds: If the refund amount is under $100, the refund is automatically approved and considered successful.

    3. Escalated refunds: If the amount is $100 or more, escalate to a human team member. The escalation should include:

      • The order ID.

      • A summary of what is being refunded.

      • The total amount requested for the refund.

      • The items being refunded.

  4. Send customer communication. If the refund is approved, draft a customer confirmation message. This should include:

    1. A polite greeting.

    2. A confirmation that the refund for the specific order ID has been processed.

    3. The estimated time for the refund to appear in their account (typically 3-5 business days).

    4. A thank you for their patience.

    5. The amount refunded.

    6. Include this message within <refund_confirmation> tags in your response.

    7. Make sure the Reply_Email_ID is exactly as it shows in the user prompt.

  5. Handle missing order IDs. If no order ID is provided:

    1. Draft a response requesting the order ID. This should include:

      • A polite acknowledgment of their refund request.

      • An explanation that the order ID is needed to proceed with the refund.

      • A request for them to reply with their order ID.

      • An apology for any inconvenience caused.

    2. Include this message within <request_order_id> tags in your response.

  6. Final response format:

    1. Format the final response in the following way:

      <order_id_found>[YES/NO]</order_id_found>

      <order_id>[Insert order ID if found, or “Not provided” if not found]</order_id>

      [Include either <refund_confirmation> or <request_order_id> tags here, depending on whether an order ID was found]

    2. Use a courteous and professional tone throughout the response.


Basically , let’s see we need to debug this, how will i know what current/real time values are passing in the variable, i don;t see any print option, i don’t see any feature where i can see what current value store the system, how will i know are the values are coming or it just giving blank values, kindly help.
I am confued, in workflow we can direct do the mapping and in variable manager we can see current values, but i don’t see in Agent.

@yedukondaluaregala

@balkishan

Let me know if my understanding is wrong,

How can i see the variables/arguments output while debugging the code?
If this is your question,
When execution started, under the Execution Trail > Result >Input section you can see those values.

To give the values directly, when you create input arguments, when you are starting the execution it will open the window there you can see your input arguments, there you can pass your values.

and those values you can see in Execution Trail as well while running.

Happy Automation

use debug points and on the right panel, you will see a “watch” control, there you can see the variables and arguments (just works like “watch” panel in Studio desktop).

Yes , but i am asking in agent, how can we see the live values, as we can see there is no direct mapping with the arguments.

how can track the data following while debigging

in the agent, while invoking the tools, workflow

Hi @balkishan,

Run the agent and navigate to Execution Trails (below the agent).

image

Select the tool you want to inspect, and the input/output values for that tool will be displayed in the right-hand pane.

Thanks