ticket-deflector
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."
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ticket-deflector.zip https://jpskill.com/download/22780.zip && unzip -o ticket-deflector.zip && rm ticket-deflector.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22780.zip -OutFile "$d\ticket-deflector.zip"; Expand-Archive "$d\ticket-deflector.zip" -DestinationPath $d -Force; ri "$d\ticket-deflector.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ticket-deflector.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ticket-deflectorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] ticket-deflector
チケットデフレクター
クイックスタート
顧客からのメールを転送または貼り付けてください。Claude が PayPal から注文ステータスを取得し、HubSpot で顧客を検索し、オーナーの声で返信を作成します。返金が必要な場合は、詳細を準備し、明示的な承認があるまで何も発行しません。
User: "この顧客に回答してください" [メールを転送]
→ スレッドから顧客のメールアドレスと問題を抽出
→ PayPal の取引ステータスを取得
→ HubSpot の連絡先履歴を取得
→ オーナーの声で返信を作成
→ オーナーが下書きを承認 → 送信または準備
→ 返金が必要な場合: 承認プロンプト → オーナーが確認 → 発行
ワークフロー
-
顧客メッセージを読み取ります。 転送された Gmail スレッドまたは貼り付けられたテキストを受け入れます。顧客のメールアドレス、名前、注文または取引 ID(存在する場合)、および主要な問題(返金リクエスト、注文ステータスの質問、一般的な苦情)を抽出します。複数の問題がある場合は、表示された順に処理します。
-
PayPal から注文ステータスを取得します。 顧客のメールアドレスまたは取引 ID で PayPal の取引を検索します。金額、日付、ステータス、およびすでに返金が発行されているかどうかをキャプチャします。PayPal が接続されていない場合は、下書きにその旨を記載して続行します。一致する取引がない場合は、フラグを立てます。推測で一致させないでください。
- PayPal レート制限: 顧客が取引 ID を提供した場合は、それを使用してください。単一レコードの検索はスロットリングを完全に回避します。メールで検索する場合は、7日間のウィンドウ(30日間ではない)を使用してください。PayPal の取引リストエンドポイントは、広い日付範囲のクエリに対して積極的にスロットリングします。同じセッションで連続してチケットを処理すると、ウィンドウが広すぎる場合にこの制限に達します。
- Intercom が接続されている場合は、この顧客からの未解決のサポートチケットを確認します。
- Square が接続されている場合は、Square の取引履歴を二次ソースとして確認します。
- 複数の取引が一致する場合は、それらすべてを表示し、下書きを作成する前にオーナーにどれが適用されるかを尋ねます。
-
HubSpot から顧客履歴を取得します。 メールアドレスで連絡先を検索します。ライフサイクルステージ、メモ、未完了の取引、および最近のアクティビティを取得します。連絡先が存在しない場合は、その旨を記載し、返信送信後に作成することを提案します。応答ワークフロー中に作成しないでください。
-
返信を作成します。 オーナーの文章スタイルで記述します。問題の種類に合わせてトーンを調整します。
- 返金リクエスト → 共感的、明確、行動指向
- 注文ステータスの質問 → 事実に基づき、安心させる
- 一般的な苦情 → 認識、説明、解決策の提示 下書き内のデータギャップは、角括弧で囲んだメモ(例:[注:PayPal の取引が見つかりません。送信前に注文 ID を確認してください])でインラインでフラグを立て、オーナーが送信前にギャップを確認できるようにします。具体的な例については、reference/examples/respond-refund-request.md を参照してください。よくある落とし穴については、reference/gotchas.md を参照してください。
-
承認ゲート — オーナーが下書きを確認します。 完全な下書きを提示します。オーナーが承認するまで送信または準備しないでください。オーナーは承認前に自由に編集できます。
-
承認ゲート — 返金発行。 返金が正当である場合、オーナーが下書きを承認した後、専用の確認プロンプトを表示します。
"[金額]を[顧客名]([メールアドレス])に、取引[ID]の返金を発行しますか?続行するにはYと返信してください。"
明示的な確認を待ちます。オーナーの返信が明確な「はい」以外の場合は、停止して、代わりに何をしたいかを尋ねます。
-
返信を送信または準備します。 下書き承認後、オーナーに尋ねます:今すぐ Gmail で送信しますか、それとも下書きとして保存しますか?彼らの選択を実行します。その後、HubSpot の連絡先タイムラインにインタラクションをメモとして記録します。
-
レポート。 短い段落で:返信が送信または準備されたか、返金が発行されたか否か、HubSpot のメモが記録されたか。
承認ゲート
- 明示的なオーナーの確認なしに PayPal の返金を発行しないでください — 実行する前に、常に金額、顧客名、メールアドレス、取引 ID を表示してください。
- オーナーの確認なしに返信を送信しないでください。 常に最初に完全な下書きを提示してください。
- 応答フロー中に HubSpot の連絡先を作成しないでください。 後で提案してください。
- PayPal の取引を自動選択しないでください。 複数一致する場合は、すべて表示し、オーナーに選択させてください。
- 注文の詳細を捏造しないでください。 PayPal に記録がない場合は、下書きにその旨をインラインで記載してください。ステータスをでっち上げないでください。
参考資料
- reference/gotchas.md — トーン、PayPal 検索、および曖昧な返金シナリオに関する良い/悪いパターン
- reference/examples/respond-refund-request.md — 具体的な例:PayPal 取引が見つかった場合の返金リクエスト
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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
-
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.
-
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.
-
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:
- 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.
-
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, 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.
-
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.
-
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
- reference/gotchas.md — Good / Bad patterns for tone, PayPal lookup, and ambiguous refund scenarios
- reference/examples/respond-refund-request.md — worked example: refund request with PayPal transaction found