Multistep agent prompt examples
The following examples provide ideas for how to form multistep prompts for some standard use cases.Invoice a client
To invoice a client, you might have steps like these:create_invoice: Create an invoice for jane@example.com for 3 hours of CAD design at $100 per hour.send_invoice: Send invoice{invoice_id}to the client.send_invoice_reminder: Send a reminder for invoice{invoice_id}.
Create an online order
For an online order with shipping, you might use these steps in your prompts:create_order: Place an order for 2 “Custom Gold Ring” at $450 each (currency USD).pay_order: Capture payment for order{order_id}.create_shipment_tracking: Add tracking 1Z999AA10123456784 with carrier UPS to order{order_id}.
Sell a subscription
Subscriptions are a type of product, which come with specific parameters. To sell subscriptions, you might complete these tasks using your agent tools:create_product: Create a new product named “Coffee-Club Subscription” with the type ofDIGITAL.create_subscription_plan: Create aMONTHsubscription plan for product{product_id}named “Monthly Roast Plan” at the price of 20 USD per month.create_subscription: Create a subscription to plan{plan_id}for subscriber Alice Brown whose email address is alice@example.com.
Evaluate and resolve disputes
To manage disputes, you might use prompts like these:list_disputes: List allOPENdisputes.get_dispute: Get details for dispute{dispute_id}.accept_dispute_claim: Accept the dispute with ID{dispute_id}.
Add and confirm the details for a new product
When you add a new product, you’ll want to confirm that the product appears where and how it should. These prompts could do that:create_product: Create a new product called “Limited-Edition Walnut Serving Tray” of typePHYSICAL.list_product: List all products (page1,page_size25).show_product_details: Show the details for product{product_id}.
Create an invoice with a QR code
This example shows how to invoice a client and use a QR code for on-site payment. To complete this sort of process, you might use the following tools and steps:create_invoice: Create an invoice for bob@example.com for one “Pop-up Booth Entry Fee” at 20 USD.send_invoice: Send invoice{invoice_id}.generate_invoice_qr_code: Generate a QR code for invoice{invoice_id}.
Fix an invoice error
Correcting an invoice error might require steps like these:cancel_sent_invoice: Cancel theSENTinvoice with ID{invoice_id}.create_invoice: Create a corrected invoice for dana@example.com: 4 h consulting at $90 USD/h.send_invoice: Send invoice{new_invoice_id}.
Reconcile a transaction
To reconcile a transaction, compare the order details to the transaction itself:list_transaction: List of my transactions for the last 14 days.get_order: Get the details for order{order_id}.
Cancel a subscription
If a user wants to cancel a subscription, you might need to check the terms of their subscription. To do that, you could use these steps:show_subscription_details: Show the details for subscription ID{subscription_id}.cancel_subscription: Cancel the subscription ID{subscription_id}.