Question 26
Four draft system prompts are shown for an “invoice-approval” agent. Based on UiPath guidance for context, instructions, output format, and constraints, which draft is the most robust choice?
- You are an invoice approver. After processing, output exactly the following JSON template: { “id”: “ABC-123”, “status”: “approved”, “amount”: 9999.99 } 1 Extract {{Invoice_ID}} from the email text. 2 When an {{Invoice_ID}} is found, run the LookupInvoice tool to retrieve invoice amount and supplier name. 3 If the total ≥ $10 000, escalate the case to Finance in Action Center, sending {{Invoice_ID}}, amount, and supplier. 4 If the total < $10 000, approve the invoice. Populate the fields above with real data.
- You are an invoice-approval agent who deals only with supplier invoices and rejects any other request. 1 Extract Invoice_ID from the email text. 2 When an Invoice_ID is found, run the LookupInvoice tool to retrieve invoice amount and supplier name. 3. If the total ≥ $10 000, escalate the case to Finance in Action Center, sending Invoice_ID, amount, and supplier. 4 If the total < $10 000, approve the invoice. 5 Return a reply wrapped inside <invoice_status> tags: use <approved> or <awaiting_review> as appropriate. Follow a concise, professional tone and refuse tasks outside invoice approval.
- You are an invoice-approval agent who deals only with supplier invoices and rejects any other request. 1 Extract {{Invoice_ID}} from the email text. 2 When an {{Invoice_ID}} is found, run the LookupInvoice tool to retrieve invoice amount and supplier name. 3 If the total ≥ $10 000, escalate the case to Finance in Action Center, sending {{Invoice_ID}}, amount, and supplier. 4 If the total < $10 000, approve the invoice. 5 Return a reply wrapped inside <invoice_status> tags: use <approved> or <awaiting-review> as appropriate. Follow a concise, professional tone and refuse tasks outside invoice approval.
- You are an invoice approver. After processing, output exactly the following JSON template: { “id”: “ABC-123”, “status”: “approved”, “amount”: 9999.99 } 1 Extract Invoice_ID from the email text. 2 When an Invoice_ID is found, run the LookupInvoice tool to retrieve invoice amount and supplier name. 3 If the total ≥ $10 000, escalate the case to Finance in Action Center, sending Invoice_ID, amount, and supplier. 4 If the total < $10 000, approve the invoice. Populate the fields above with real data.