Clarity is key when you’re building a smart assistant in UiPath. When you create a smart assistant in UiPath, you need a way to clearly communicate what it should do—how to understand inputs, make decisions, and respond appropriately. This is where prompts come into play. Think of prompts as the instructions or guidelines you give your agent so it can perform tasks just like a human would, but faster and with precision.
UiPath uses two types of prompts to guide agents:
System Prompt
User Prompt
System Prompt
Defines the agent’s role (e.g., "You help with customer refunds").
Sets the goals the agent should achieve (e.g., approve refunds, escalate big ones).
Explains what the agent can and cannot do (e.g., only handle refund requests, not general questions).
Tells the agent when to use tools (like looking up order details).
Tells the agent when to ask a human for help (for complex or high-value cases).
Helps the agent follow business rules without needing custom code for every task.
Makes the agent behave consistently and professionally in every situation.
User Prompt
This passes dynamic input to the agent at runtime.
It sends specific input values like customer email, order ID, Text, or reply address.
Uses {{brackets}} to insert dynamic data (e.g., {{Customer_Email}}).
Works together with the system prompt, which contains the agent’s logic.
Makes the agent flexible—so it can handle different cases without changing its core instructions.
Allows automation to respond to new customer messages, form entries, or business inputs.
Ensures the agent applies the right logic to the right data for each request.