Expected delivery date vs actual delivery date if available.
Line items including product name, quantity, unit price, total price.
Tracking information: carrier name, tracking number, latest status and location.
Delivery and gift wrap details if any.
Payment details for this shipment:
Extract all payments from this shipment's "paymentSequences" array.
For each payment, show amount paid, masked account number, payment method (e.g., PROP, EGC, Unknown), payment plan type if any, transaction type.
Sum payment amounts for the shipment and show total paid.
RETURN POLICY & ELIGIBILITY
For each line item or shipment, specify if return is eligible.
Return window dates.
Any special flags (e.g., virtual return, military return, blocked vendor).
Notes on refund or exchange restrictions.
PAYMENT DETAILS
For each shipment, ONLY use the "paymentSequences" array within that shipment to extract payments.
Do NOT use or combine payments from any order-level or other parts of the JSON.
For every payment in "paymentSequences":
Show the payment amount.
Show the masked account number.
Show the payment method as specified in the paymentMethod field.
If paymentMethod is missing or null, label the payment method as "Unknown".
Include payment plan type if present (e.g., DEFERRED).
Include the transaction type (e.g., Charge, Authorization).
Group payments by shipment number, clearly listing all payments that contribute to that shipment.
Calculate the total amount paid per shipment by summing its paymentSequences.
Sum all shipment payments to get the overall payment total.
Assistant
Certainly! Please provide the detailed order JSON data so I can generate the comprehensive summary according to your specifications.
If any discrepancies occur between shipment totals and payment totals, flag that with a note.
Present the data clearly and concisely, like this example format:
Example output:
Payment Summary:
Shipment #1:
$21.66 paid via PROP, Transaction: Charge, Account: ************0580
Shipment #2:
$5.99 paid via PROP, Transaction: Charge, Account: ************0580
$20.00 paid via Unknown payment method, Transaction: Charge, Account: ************5076
Overall Total Paid: $47.65
RECOMMENDED NEXT ACTIONS FOR AGENT
For each likely customer question related to this order, provide:
A representative Question phrased as it might be asked by a customer.
A warm, professional, and empathetic Agent Script including appropriate apologies or expressions of empathy.
The response should be clear, polite, and helpful, referencing order details to address the customer's concerns.
Format your response clearly like this:
Question: [Customer’s likely question]
Agent Script: [Polite, empathetic, and informative response]
Include common escalation triggers that agents should watch for, for example:
Shipment marked delivered but customer claims non-receipt.
Customer requests a return when return eligibility is false.
Payment issues such as outstanding balances or failed transactions.
Reports of damaged or wrong items.
Gift wrap or registry-related concerns.
For each escalation trigger, include a brief note advising the agent when to escalate.
Always output the "Question" and "Agent Script" on separate lines as below.
Do NOT put them on the same line.
Example:
Question: Has my order been delivered?
Agent Script: I’m happy to inform you that shipment #1 was delivered on 04/16/2025 via UPS. Please let us know if you need any further assistance tracking it.
(... and so forth for other Questions)
PREDICTED CUSTOMER INTENT AND ANSWERS
Analyze the order JSON and predict all likely customer intents/questions, including but not limited to:
Tracking or delivery status inquiry
Return or refund request
Product defect, damage, or wrong item reported
Warranty questions
Gift-related inquiries (gift wrap, gift messaging)
Payment or billing inquiries
Request for invoice or receipt copy
Cancellation or order modification requests
For each predicted intent, check if the JSON contains relevant data that can answer or assist with that intent.
Provide a clear, concise answer for the agent to relay to the customer based on that data.
If no information is found in the JSON to address that intent, state:
"No relevant information available in the order data to answer this query."
Always output the "Intent" and "Agent Script" on separate lines as below.
Do NOT put them on the same line.
Example format:
Intent: Tracking or delivery status inquiry?
Agent Script: The order’s shipment #1 was delivered on 04/16/2025 via UPS (tracking number 1Z07F8X30399215224) to the address 1071 Catalpa Dr, O Fallon, IL 62269. Shipment #2 was delivered on 04/18/2025 via UPS (tracking number 1Z4RV307YW18780083).
Intent: Return or refund request?
Agent Script: Return eligibility for both shipments is false, and the return window dates are past/not applicable. There are no items eligible for return.
(... and so forth for other intents)
Format your response clearly, use bullet points and sections. Be concise but comprehensive.
Please produce the requested detailed summary.
in this prompt try to make that it include every shipmente details as well as the all the payment of that make it proper for the gemini-2.0-flash-001 llm