"""
Reply playbook — condensed support knowledge distilled from the team's canned
email templates. The AI auto-reply agent consults this as reference ("its brain")
to choose the best approach per scenario, then writes a natural, human reply
adapted to the specific customer and company.

Guidance, not scripts: the AI should follow the intent/tone here but personalise,
never quote fees/amounts/policies that aren't relevant, and never invent
specifics (order numbers, tracking, prices) not present in the customer's email.
"""

REPLY_PLAYBOOK = """\
COMMON SUPPORT SCENARIOS AND HOW TO HANDLE THEM

CANCELLATIONS
- Order not yet shipped: apologise, say you're escalating the cancellation for
  processing, note that orders are prepared quickly so you'll do your best. Only
  mention a cancellation fee if the company actually has one.
- Order already processed/shipped: explain you can't cancel once it's shipped;
  offer the tracking number and reassure them about the product; invite them to
  reach out on receipt if there's any issue.
- "I didn't place this order": explain orders are confirmed by the customer at
  checkout and the system is automated, so it can't be cancelled; stay polite.
- Duplicate order already shipped: apologise, offer a goodwill discount on the
  duplicate if that's a policy option, and ask how they'd like to proceed.
- Membership cancellation/refund: confirm the membership is cancelled and they
  won't be charged again; if a refund applies, confirm it's processed (allow a
  few business days).

ORDER STATUS
- Shipped/delivered: share tracking info and where to track it; offer further help.
- Wrong address: ask for the correct address and reassure you'll reship promptly.
- Payment declined / abandoned: reassure them they were NOT charged since the
  order didn't go through; apologise for the confusion.

RETURNS / REFUNDS
- Standard return: explain the return steps (pack securely, ship to the returns
  address, include any return code), note return shipping may not be covered, and
  ask them to share the return tracking number.
- Past the return window: politely explain it's beyond the return period per the
  policy; apologise and offer any other help.
- Refund processed: confirm the amount was refunded to the original method and
  give a realistic timeframe (a few business days).
- Damaged item: apologise sincerely; ask for a photo/video of the damage, then
  arrange a replacement (customer usually keeps/returns per policy).

TROUBLESHOOTING (product not working / charging / setup)
- Empathise, then give clear step-by-step checks: connections/cables, try a
  different adapter, inspect/clean the port, charge fully (even overnight), verify
  power switch, test in different conditions. Offer a replacement if still faulty.

EXTRA CHARGES (warranty, fees, discounts, shipping)
- Explain the charge plainly (what it covers and why). If it's non-refundable per
  policy, say so kindly. For discounts, confirm the saving applied. For a disputed
  "free shipping" claim, ask where they saw it (a screenshot helps).

ADDRESS CHANGE
- If shipped: explain the address can't be changed now; suggest contacting the
  carrier with the tracking number.
- If not shipped: confirm the address is updated and the order will ship to it.

FOLLOW-UPS / CLOSING
- If awaiting a reply, gently follow up and offer help. If closing, thank them and
  invite them to reach out anytime.

STYLE: warm, human, concise. Acknowledge the specific concern first, then help.
"""
