/small-business:ticket-deflectorfrom small-business
Reads a forwarded customer email or ticket, pulls order/refund status from PayPal and account history from HubSpot, drafts a tone-matched reply in the owner's writing voice, and can issue a PayPal refund with explicit owner approval. Use when the user says "draft a response," "answer this customer," "where's my order," or "I want a refund."
Ships in small-business. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Lark-native execution (depth core: LARK-PATTERNS, LARK-RECIPES, LARK-FUSION). PayPal (order/refund), HubSpot, Intercom, Square stay on their external connectors. The Lark layer: read the forwarded thread via Lark Mail (
lark_mail_*/lark_api); resolve the customer/owner toopen_idwithlark_contact_search(P1); stage the reply withlark_mail_draft_create(or, on approval, send withlark_mail_send confirm_send: true) — never auto-send (P2). Log the interaction to a Lark Base support log vialark_base_record_upsert(dry_runfirst, P5) when the owner keeps one. A refund is a money gate — drive it through a real Lark approval instance (P7, delegate tolark-approval) rather than an ad-hoc "reply yes."
Forward or paste a customer email — Claude pulls order status from PayPal, looks up the customer in HubSpot, and drafts a reply in the owner's voice. If a refund is needed, it stages the details and waits for explicit approval before issuing anything.
User: "answer this customer" [forwards email]
→ Extract customer email + issue from thread
→ Pull PayPal transaction status
→ Pull HubSpot contact history
→ Draft reply in owner's voice
→ Owner approves draft → send or stage
→ If refund needed: approval prompt → owner confirms → issue
Read the customer message. Accept a forwarded Lark Mail thread (lark_mail_* / lark_api mail search, project with jq) or pasted text. Extract: customer email address, name, order or transaction ID (if present), and the core issue — refund request, order status question, or general complaint. If multiple issues are present, address them in the order they appear.
Pull order status from PayPal. Search PayPal transactions by customer email or transaction ID. Capture: amount, date, status, and whether a refund has already been issued. If PayPal is not connected, note it in the draft and continue. If no transaction matches, flag it — do not guess at a match.
Pull customer history from HubSpot. Search contacts by email address. Pull: lifecycle stage, notes, open deals, and recent activity. If no contact exists, note it and offer to create one after the reply is sent — do not create during the response workflow.
Draft the reply. Write in the owner's writing voice. Adjust tone to fit the issue type:
Approval gate — owner reviews the draft. Present the full draft. Do not send or stage it until the owner approves. The owner may edit freely before approving.
Approval gate — refund issuance. If a refund is warranted, prefer a real Lark approval instance (P7) over an ad-hoc yes/no — create it via lark_api (POST /open-apis/approval/v4/instances, see LARK-RECIPES; delegate to lark-approval for exact form shapes) with the customer, amount, and transaction ID in the form, routed to the owner/approver (resolve open_id with lark_contact_search). The approval engine tracks state and notifies. For a lightweight one-off, a confirmation card (P4) is acceptable:
"Issue refund of $[amount] to [customer name] ([email]) for transaction [ID]? Reply Y to proceed."
Wait for explicit confirmation. If the owner's reply is anything other than a clear yes, stop and ask what they'd like to do instead. Only execute the PayPal refund after the approval/confirmation resolves.
Send or stage the reply. After draft approval, ask the owner: send via Lark Mail now (lark_mail_send with confirm_send: true), or keep it as a draft (lark_mail_draft_create)? Execute their choice (dry_run: true first, P2). Then log the interaction — as a note on the HubSpot contact timeline, or as a row in the Lark Base support log via lark_base_record_upsert (P5).
Report. One short paragraph: reply sent or staged, refund issued or not, HubSpot note logged.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub larkcowork/lark-cowork-plugins --plugin small-business31 skills in this plugin
/business-pulseProduces a one-page cross-functional business snapshot for SMB owners — cash position (QuickBooks), sales trend (PayPal/Square), pipeline movement (HubSpot), this week's commitments (Calendar), urgent watch-list items (Lark Mail/Lark IM), and the single most important thing needing attention today. Proactively tries every available connector and gracefully scopes to whatever is connected — one connector gives a partial pulse; the full stack gives the full picture. Trigger when the user asks how the business is doing, wants a snapshot, a weekly summary, a Monday brief, or says anything like "what am I missing" or "catch me up on the business."
/call-listRanks the top-5 leads most worth calling today, supplies talking points from email history, blocks time on the calendar, and drafts follow-up messages. Accepts optional count and date arguments./canva-creator