Option A correctly applies zero-shot prompting to a narrowly defined information-extraction task.
Zero-shot prompting instructs a language model to perform a task without including demonstrations of the expected input-output relationship. This technique is appropriate when the task is sufficiently familiar and can be communicated through direct, unambiguous instructions.
In this scenario, the agent must read incoming email content, identify an invoice number, and return the extracted identifier when present.
A suitable instruction would define the source text, extraction objective, and expected output while avoiding unnecessary procedural complexity.
For production use, the prompt should also specify the behavior when no invoice number exists, such as returning a defined null value or an explicitly designated status. This prevents the agent from inventing identifiers when the required information is absent.
Option B describes few-shot prompting because it introduces example emails and expected outputs.
Option C adds tool and escalation complexity that is unnecessary for the stated extraction requirement. Option D increases instruction volume without necessarily improving reliability.
UiPath's prompting guidance emphasizes clear objectives, focused responsibilities, and explicit output requirements. These principles are especially important when an agent performs narrowly scoped extraction or classification operations.
Official UiPath references/topics: Agents — Prompts — System Prompt; Best Practices for Building Agents — Scope Narrowly and Specialize.
Submit