Scenario:
I am building an automation in UiPath Maestro where I am using:
- RPA Workflows
- Agents
- Multiple tasks/workflows connected in the same process
I need to exchange data (variables/arguments) between these components during execution.
Problems I Am Facing:
1. Passing Variables from RPA Workflow to Agent
I have variables created and used inside an RPA workflow.
I want to pass those values as input to an Agent task in Maestro.
- What is the correct method to pass arguments/variables from RPA workflow to Agent?
- Is there any specific configuration in Maestro task mapping?
2. Passing Variables into Agent Prompt
I want to use dynamic values from workflow variables inside the Agent Prompt.
Example:
Instead of static prompt text:
Check invoice details
I need something like:
Check invoice details for Invoice Number: {InvoiceNumber}
- How can I pass workflow variables dynamically into the Agent prompt?
- Does Maestro support placeholders / expressions inside prompts?
3. Passing Arguments from One Task to Another Task
I have multiple tasks in Maestro.
Example:
-
Task 1 gets Customer Name
-
Task 2 should use Customer Name
-
Task 3 should use same value in another workflow
-
How can I pass output arguments from one task to another task?
-
What is the best practice for sharing variables across tasks in Maestro?
My Questions:
- How to pass arguments from RPA workflow to Agent task in Maestro?
- How to use workflow variables inside Agent prompts?
- How to transfer output variables from one task to another task?
- Is there any recommended design pattern for variable handling in Maestro?