ticket-deflector

GitHub

自动回复客户邮件或工单。从PayPal和HubSpot获取订单及账户信息,以所有者语气起草回复。若需退款,先展示详情并等待明确批准后再执行,确保操作安全合规。

small-business/skills/ticket-deflector/SKILL.md anthropics/knowledge-work-plugins

Trigger Scenarios

用户要求起草回复 询问订单状态 请求退款

Install

npx skills add anthropics/knowledge-work-plugins --skill ticket-deflector -g -y
More Options

Non-standard path

npx skills add https://github.com/anthropics/knowledge-work-plugins/tree/main/small-business/skills/ticket-deflector -g -y

Use without installing

npx skills use anthropics/knowledge-work-plugins@ticket-deflector

指定 Agent (Claude Code)

npx skills add anthropics/knowledge-work-plugins --skill ticket-deflector -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/knowledge-work-plugins --all -g -y

预览 repo 内 skill

npx skills add anthropics/knowledge-work-plugins --list

SKILL.md

Frontmatter
{
    "name": "ticket-deflector",
    "description": "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.\"\n",
    "compatibility": "Requires PayPal, HubSpot, Mail. Optional: Intercom, Square."
}

Ticket Deflector

Quick start

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

Workflow

  1. Read the customer message. Accept a forwarded Gmail thread 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.

  2. 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.

    • PayPal rate limit: If the customer provided a transaction ID, use it — single-record lookups avoid throttling entirely. If searching by email, use a 7-day window (not 30 days). PayPal's transaction list endpoint throttles aggressively on wide date-range queries; back-to-back tickets in the same session will hit this limit if the window is too broad.
    • If Intercom is connected, check for open support tickets from this customer.
    • If Square is connected, check Square transaction history as a secondary source.
    • If multiple transactions match, surface all of them and ask the owner which one applies before drafting.
  3. 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.

  4. Draft the reply. Write in the owner's writing voice. Adjust tone to fit the issue type:

    • Refund request → empathetic, clear, action-oriented
    • Order status question → factual, reassuring
    • General complaint → acknowledge, explain, offer resolution Flag any data gaps inline in the draft with a bracketed note (e.g., [Note: No PayPal transaction found — verify order ID before sending]) so the owner sees the gap before sending. For a worked example, see reference/examples/respond-refund-request.md. For common pitfalls, see reference/gotchas.md.
  5. 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.

  6. Approval gate — refund issuance. If a refund is warranted, surface a dedicated confirmation prompt after the owner approves the draft:

    "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.

  7. Send or stage the reply. After draft approval, ask the owner: send via Gmail now, or save as a draft? Execute their choice. Then log the interaction as a note on the HubSpot contact timeline.

  8. Report. One short paragraph: reply sent or staged, refund issued or not, HubSpot note logged.

Approval gates

  • Never issue a PayPal refund without explicit owner confirmation — always show amount, customer name, email, and transaction ID before executing.
  • Never send the reply without owner review. Always present the full draft first.
  • Never create a HubSpot contact during the response flow. Offer it afterward.
  • Never auto-select a PayPal transaction. If multiple match, surface them all and let the owner choose.
  • Never fabricate order details. If PayPal has no record, say so inline in the draft — do not invent a status.

Reference

Version History

  • 6f13415 Current 2026-07-05 18:36

Same Skill Collection

bio-research/skills/nextflow-development/SKILL.md
bio-research/skills/single-cell-rna-qc/SKILL.md
bio-research/skills/start/SKILL.md
cowork-plugin-management/skills/cowork-plugin-customizer/SKILL.md
cowork-plugin-management/skills/create-cowork-plugin/SKILL.md
customer-support/skills/customer-escalation/SKILL.md
customer-support/skills/customer-research/SKILL.md
customer-support/skills/draft-response/SKILL.md
customer-support/skills/kb-article/SKILL.md
customer-support/skills/ticket-triage/SKILL.md
data/skills/analyze/SKILL.md
data/skills/build-dashboard/SKILL.md
data/skills/create-viz/SKILL.md
data/skills/data-visualization/SKILL.md
data/skills/explore-data/SKILL.md
data/skills/sql-queries/SKILL.md
data/skills/statistical-analysis/SKILL.md
data/skills/validate-data/SKILL.md
data/skills/write-query/SKILL.md
design/skills/accessibility-review/SKILL.md
design/skills/design-critique/SKILL.md
design/skills/design-handoff/SKILL.md
design/skills/design-system/SKILL.md
design/skills/research-synthesis/SKILL.md
design/skills/user-research/SKILL.md
design/skills/ux-copy/SKILL.md
engineering/skills/architecture/SKILL.md
engineering/skills/code-review/SKILL.md
engineering/skills/debug/SKILL.md
engineering/skills/deploy-checklist/SKILL.md
engineering/skills/documentation/SKILL.md
engineering/skills/incident-response/SKILL.md
engineering/skills/standup/SKILL.md
engineering/skills/system-design/SKILL.md
engineering/skills/tech-debt/SKILL.md
engineering/skills/testing-strategy/SKILL.md
enterprise-search/skills/digest/SKILL.md
enterprise-search/skills/knowledge-synthesis/SKILL.md
enterprise-search/skills/search-strategy/SKILL.md
enterprise-search/skills/search/SKILL.md
enterprise-search/skills/source-management/SKILL.md
finance/skills/audit-support/SKILL.md
finance/skills/close-management/SKILL.md
finance/skills/financial-statements/SKILL.md
finance/skills/journal-entry-prep/SKILL.md
finance/skills/journal-entry/SKILL.md
finance/skills/reconciliation/SKILL.md
finance/skills/sox-testing/SKILL.md
finance/skills/variance-analysis/SKILL.md
human-resources/skills/comp-analysis/SKILL.md
human-resources/skills/draft-offer/SKILL.md
human-resources/skills/interview-prep/SKILL.md
human-resources/skills/onboarding/SKILL.md
human-resources/skills/org-planning/SKILL.md
human-resources/skills/people-report/SKILL.md
human-resources/skills/performance-review/SKILL.md
human-resources/skills/policy-lookup/SKILL.md
human-resources/skills/recruiting-pipeline/SKILL.md
legal/skills/brief/SKILL.md
legal/skills/compliance-check/SKILL.md
legal/skills/legal-response/SKILL.md
legal/skills/legal-risk-assessment/SKILL.md
legal/skills/meeting-briefing/SKILL.md
legal/skills/review-contract/SKILL.md
legal/skills/signature-request/SKILL.md
legal/skills/triage-nda/SKILL.md
legal/skills/vendor-check/SKILL.md
marketing/skills/brand-review/SKILL.md
marketing/skills/campaign-plan/SKILL.md
marketing/skills/competitive-brief/SKILL.md
marketing/skills/content-creation/SKILL.md
marketing/skills/draft-content/SKILL.md
marketing/skills/email-sequence/SKILL.md
marketing/skills/performance-report/SKILL.md
marketing/skills/seo-audit/SKILL.md
operations/skills/capacity-plan/SKILL.md
operations/skills/change-request/SKILL.md
operations/skills/compliance-tracking/SKILL.md
operations/skills/process-doc/SKILL.md
operations/skills/process-optimization/SKILL.md
operations/skills/risk-assessment/SKILL.md
operations/skills/runbook/SKILL.md
operations/skills/status-report/SKILL.md
operations/skills/vendor-review/SKILL.md
partner-built/apollo/skills/enrich-lead/SKILL.md
partner-built/apollo/skills/prospect/SKILL.md
partner-built/apollo/skills/sequence-load/SKILL.md
partner-built/common-room/skills/account-research/SKILL.md
partner-built/common-room/skills/call-prep/SKILL.md
partner-built/common-room/skills/compose-outreach/SKILL.md
partner-built/common-room/skills/contact-research/SKILL.md
partner-built/common-room/skills/prospect/SKILL.md
partner-built/common-room/skills/weekly-prep-brief/SKILL.md
partner-built/slack/skills/slack-messaging/SKILL.md
partner-built/slack/skills/slack-search/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-bot/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-meeting-app/SKILL.md
partner-built/zoom-plugin/skills/choose-zoom-approach/SKILL.md
partner-built/zoom-plugin/skills/cobrowse-sdk/SKILL.md
partner-built/zoom-plugin/skills/contact-center/android/SKILL.md
partner-built/zoom-plugin/skills/contact-center/ios/SKILL.md
partner-built/zoom-plugin/skills/contact-center/SKILL.md
partner-built/zoom-plugin/skills/contact-center/web/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom/SKILL.md
partner-built/zoom-plugin/skills/design-mcp-workflow/SKILL.md
partner-built/zoom-plugin/skills/general/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/electron/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/unreal/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/oauth/SKILL.md
partner-built/zoom-plugin/skills/phone/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-product/SKILL.md
partner-built/zoom-plugin/skills/probe-sdk/SKILL.md
partner-built/zoom-plugin/skills/rest-api/SKILL.md
partner-built/zoom-plugin/skills/rivet-sdk/SKILL.md
partner-built/zoom-plugin/skills/rtms/SKILL.md
partner-built/zoom-plugin/skills/scribe/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-mcp/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-oauth/SKILL.md
partner-built/zoom-plugin/skills/start/SKILL.md
partner-built/zoom-plugin/skills/team-chat/SKILL.md
partner-built/zoom-plugin/skills/ui-toolkit/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/flutter/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/unity/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/android/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/ios/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/web/SKILL.md
partner-built/zoom-plugin/skills/webhooks/SKILL.md
partner-built/zoom-plugin/skills/websockets/SKILL.md
partner-built/zoom-plugin/skills/zoom-apps-sdk/SKILL.md
partner-built/zoom-plugin/skills/zoom-mcp/whiteboard/SKILL.md
pdf-viewer/skills/view-pdf/SKILL.md
product-management/skills/competitive-brief/SKILL.md
product-management/skills/metrics-review/SKILL.md
product-management/skills/product-brainstorming/SKILL.md
product-management/skills/roadmap-update/SKILL.md
product-management/skills/sprint-planning/SKILL.md
product-management/skills/stakeholder-update/SKILL.md
product-management/skills/synthesize-research/SKILL.md
product-management/skills/write-spec/SKILL.md
productivity/skills/memory-management/SKILL.md
productivity/skills/start/SKILL.md
productivity/skills/task-management/SKILL.md
productivity/skills/update/SKILL.md
sales/skills/account-research/SKILL.md
sales/skills/call-prep/SKILL.md
sales/skills/call-summary/SKILL.md
sales/skills/competitive-intelligence/SKILL.md
sales/skills/create-an-asset/SKILL.md
sales/skills/daily-briefing/SKILL.md
sales/skills/draft-outreach/SKILL.md
sales/skills/forecast/SKILL.md
sales/skills/pipeline-review/SKILL.md
small-business/skills/call-list/SKILL.md
small-business/skills/cash-flow-snapshot/SKILL.md
small-business/skills/close-month/SKILL.md
small-business/skills/content-strategy/SKILL.md
small-business/skills/contract-review/SKILL.md
small-business/skills/crm-cleanup/SKILL.md
small-business/skills/crm-maintenance/SKILL.md
small-business/skills/customer-pulse-check/SKILL.md
small-business/skills/customer-pulse/SKILL.md
small-business/skills/friday-brief/SKILL.md
small-business/skills/handle-complaint/SKILL.md
small-business/skills/invoice-chase/SKILL.md
small-business/skills/lead-triage/SKILL.md
small-business/skills/monday-brief/SKILL.md
small-business/skills/month-end-prep/SKILL.md
small-business/skills/month-heads-up/SKILL.md
small-business/skills/plan-payroll/SKILL.md
small-business/skills/price-check/SKILL.md
small-business/skills/quarterly-review/SKILL.md
small-business/skills/review-contract/SKILL.md
small-business/skills/run-campaign/SKILL.md
small-business/skills/sales-brief/SKILL.md
small-business/skills/tax-prep/SKILL.md
bio-research/skills/instrument-data-to-allotrope/SKILL.md
bio-research/skills/scientific-problem-selection/SKILL.md
bio-research/skills/scvi-tools/SKILL.md
data/skills/data-context-extractor/SKILL.md
partner-built/brand-voice/skills/brand-voice-enforcement/SKILL.md
partner-built/brand-voice/skills/discover-brand/SKILL.md
partner-built/brand-voice/skills/guideline-generation/SKILL.md
small-business/skills/business-pulse/SKILL.md
small-business/skills/canva-creator/SKILL.md
small-business/skills/job-post-builder/SKILL.md
small-business/skills/margin-analyzer/SKILL.md
small-business/skills/smb-onboard/SKILL.md
small-business/skills/smb-router/SKILL.md
small-business/skills/tax-season-organizer/SKILL.md

Metadata

Files
0
Version
6f13415
Hash
69ef2493
Indexed
2026-07-05 18:36

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 01:49
浙ICP备14020137号-1 $Гость$