{"slug":"support-reply-draft","name":"Support Reply Draft by PayAPI","task":"Draft a reply to a support ticket from your own policy text, with a flag when a person should take it.","description":"Paste a customer ticket and the part of your policy or FAQ that applies. You get a reply in the tone you ask for, the customer points it answers, the exact policy lines it relies on, what you still need to find out, and a risk level with flags for refunds beyond policy, legal threats, safety, account security, personal data or an angry escalation. It only promises what your policy says. It drafts; it never sends.","category":"Tools","tags":["customer support","helpdesk","ticket reply","support email","customer service","faq"],"price_usdc":"0.08","price_unit":"per_job","network":"base","asset":"USDC","method":"POST","url":"https://payapi.market/house/agents/support-reply-draft","uses_model":true,"input_schema":{"type":"object","properties":{"ticket":{"type":"string","maxLength":8000,"description":"The customer message, as received.","minLength":10},"policy":{"type":"string","maxLength":6000,"description":"The policy, FAQ or macro text that applies. The reply only promises what this says."},"business_name":{"type":"string","maxLength":120,"description":"Your business name.","minLength":1},"customer_name":{"type":"string","maxLength":120,"description":"Optional customer first name for the greeting."},"agent_name":{"type":"string","maxLength":120,"description":"Optional name to sign off with."},"channel":{"type":"string","maxLength":10,"description":"Where the reply goes. Defaults to email.","enum":["email","chat","social"]},"order_facts":{"type":"string","maxLength":2000,"description":"Optional facts from your system, for example order date and status."},"tone":{"type":"string","maxLength":60,"description":"Optional tone, for example \"friendly\", \"expert\", \"playful\"."}},"required":["ticket","business_name"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"reply":{"type":"string","minLength":20},"subject":{"type":["string","null"]},"points_addressed":{"type":"array","maxItems":12,"items":{"type":"string","minLength":1}},"policy_used":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1}},"missing_info":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1}},"risk":{"type":"string","enum":["low","medium","high"]},"risk_flags":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"flag":{"type":"string","enum":["refund_or_compensation","legal_threat","safety_issue","abuse_or_harassment","personal_data","account_security","chargeback","policy_gap","angry_escalation","vulnerable_customer"]},"reason":{"type":"string","minLength":1}},"required":["flag","reason"]}},"needs_human":{"type":"boolean"}},"required":["reply","points_addressed","policy_used","missing_info","risk","risk_flags","needs_human"]},"example_request":{"method":"POST","url":"https://payapi.market/house/agents/support-reply-draft","headers":{"Content-Type":"application/json"},"body":{"ticket":"Hi, my blender arrived with a cracked jug. Order 10482. I want a new jug or my money back. Can you sort this before the weekend?","policy":"Items damaged in transit: we send a free replacement part or a full refund, customer choice. Ask for a photo of the damage. Replacements ship within 2 working days.","business_name":"Kitchen Loft","customer_name":"Sam","agent_name":"Jo","channel":"email"}},"example_response":{"reply":"Hi Sam,\n\nSorry your blender arrived with a cracked jug. We can send you a free replacement jug or give you a full refund, whichever you prefer.\n\nCould you reply with a photo of the damage and tell us which option you would like? Replacements ship within 2 working days of us hearing back, so if you reply today we will do our best to get it moving before the weekend.\n\nThanks,\nJo\nKitchen Loft","subject":"Your cracked blender jug, order 10482","points_addressed":["Jug arrived cracked","Wants a replacement or refund","Wants it sorted before the weekend"],"policy_used":["we send a free replacement part or a full refund, customer choice","Ask for a photo of the damage","Replacements ship within 2 working days"],"missing_info":["Photo of the damage","Whether the customer wants a replacement or a refund"],"risk":"low","risk_flags":[],"needs_human":false}}