jpskill.com
💬 コミュニケーション コミュニティ

email-agent

Unite-Hubに届くメールを処理し、送信者の情報抽出、意図の特定、CRM連携、感情分析を行い、AIによる洞察で顧客情報を最新の状態に更新するSkill。

📜 元の英語説明(参考)

Processes incoming emails for Unite-Hub. Extracts sender data, identifies communication intents, links to CRM contacts, analyzes sentiment, and updates contact records with AI insights.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Unite-Hubに届くメールを処理し、送信者の情報抽出、意図の特定、CRM連携、感情分析を行い、AIによる洞察で顧客情報を最新の状態に更新するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o email-agent.zip https://jpskill.com/download/17905.zip && unzip -o email-agent.zip && rm email-agent.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17905.zip -OutFile "$d\email-agent.zip"; Expand-Archive "$d\email-agent.zip" -DestinationPath $d -Force; ri "$d\email-agent.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して email-agent.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → email-agent フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Email Agent Skill

概要

Email Agent は、以下の役割を担います。

  1. ワークスペースからの未処理メールの処理
  2. 送信者情報の抽出と既存の連絡先へのリンク
  3. 意図と感情に関するメールコンテンツの分析
  4. CRM 連絡先をインタラクションデータで更新
  5. すべてのアクションに対する監査ログの作成

この Agent の使用方法

トリガー

ユーザーの発言:「Duncan のワークスペースのメールを処理して」または「未処理メールを分析して」

Agent の動作

1. 未処理メールの取得

Call: convex query emails.getUnprocessed({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  workspaceId: "kh72b1cng9h88691sx4x7krt2h7v7dehh",
  limit: 50
})

まだ処理されていないメールの配列を返します(isProcessed: false)。

2. 各メールに対して

ステップ A: 送信者のメールアドレスを抽出

From: "john@techstartup.com"
Extract: sender_email = "john@techstartup.com"

ステップ B: 連絡先へのリンク

Call: convex query contacts.getByEmail({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  workspaceId: "kh72b1cng9h88691sx4x7krt2h7v7dehh",
  email: "john@techstartup.com"
})

存在する場合 → contactId = found_contact._id 存在しない場合 → 次の項目で新しい連絡先を作成します。

  • email: sender_email
  • name: メールから抽出された名前、または「Unknown」
  • source: "email"
  • status: "lead"

ステップ C: メールコンテンツの分析

次の意図キーワードを抽出します。

  • "interested" / "partnership" / "collaboration" → intent: inquiry
  • "proposal" / "quote" / "pricing" → intent: proposal
  • "issue" / "problem" / "help" → intent: complaint
  • "?" / "how" / "what" / "when" → intent: question
  • "follow up" / "re:" → intent: followup
  • "meeting" / "call" / "sync" / "schedule" → intent: meeting

1 つのメールに複数の意図が適用される場合があります。

ステップ D: 感情の分析

メールのトーンを読み取ります。

  • ポジティブな指標: "excited", "love", "great", "thank you", "appreciate"
  • ネガティブな指標: "problem", "issue", "concerned", "unhappy", "urgent"
  • ニュートラル: 標準的なビジネストーン

positiveneutral、または negative として分類します。

ステップ E: サマリーの生成

メールの意図に関する 1〜2 文のサマリーを作成します。

Example: "John from TechStartup is inquiring about Q4 marketing services and partnership opportunities."

ステップ F: 処理済みとしてマーク

Call: convex mutation emails.markProcessed({ orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929", emailId: "email_id_from_step_1", contactId: "contact_id_from_step_b", intents: ["inquiry", "partnership"], sentiment: "positive", summary: "John inquiring about Q4 partnership" })

ステップ G: 連絡先の更新

これが新しいインタラクションである場合は、以下を更新します。

Call: convex mutation contacts.updateAiScore({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  contactId: "contact_id",
  score: 75  // エンゲージメントに基づいてスコアを上げます
})

Call: convex mutation contacts.addNote({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  contactId: "contact_id",
  note: "Email from John: Inquiring about Q4 partnership. Sentiment: positive. Intents: inquiry, partnership"
})

ステップ H: 監査イベントのログ記録

Call: convex mutation system.logAudit({ orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929", action: "email_processed", resource: "email", resourceId: "email_id", agent: "email-agent", details: JSON.stringify({ from: "john@techstartup.com", intents: ["inquiry", "partnership"], sentiment: "positive", contactLinked: true }), status: "success" })

エラー処理

何らかのエラーが発生した場合:

Call: convex mutation system.logAudit({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  action: "email_processing_error",
  resource: "email",
  resourceId: "email_id",
  agent: "email-agent",
  details: JSON.stringify({ error: "error message" }),
  status: "error",
  errorMessage: "description"
})

次に、次のメールに進みます(停止しないでください)。

サマリー出力

すべてのメールを処理した後、以下を提供します。

✅ Email Processing Complete

Total processed: X
Successfully linked: X
New contacts created: X
Intents extracted: X
Average sentiment: X

Contacts engaged:
- John Smith (TechStartup) - positive, inquiry
- Lisa Johnson (eCommerce) - positive, proposal
- Carlos Rodriguez (Agency) - positive, collaboration

Next steps:
1. Review high-priority contacts (positive sentiment + inquiry)
2. Generate followup emails for warm leads
3. Schedule meetings with decision-makers

主要なポイント

  • Org isolation: すべての操作は orgId の範囲に限定されます
  • Workspace scope: ターゲットワークスペースからのメールのみを処理します
  • Contact linking: 常にメールを既存の連絡先にリンクするように試みます
  • AI scoring: エンゲージメント(メール受信)時に連絡先スコアを上げます
  • Audit trail: コンプライアンスのためにすべてのアクションをログに記録します

例: 1 通のメールの処理

入力メール:

From: john@techstartup.com
Subject: Interested in your services
Body: Hi Duncan, we're looking to revamp our marketing strategy for Q4. Would love to chat about partnership opportunities.

Agent の処理:

  1. ✅ 送信者を抽出: john@techstartup.com
  2. ✅ 連絡先をクエリ: 連絡先に「John Smith」が見つかりました
  3. ✅ 意図を抽出: ["inquiry", "partnership"]
  4. ✅ 感情を分析: "positive" (熱心なトーン)
  5. ✅ サマリーを生成: "John inquiring about Q4 marketing strategy and partnership"
  6. ✅ 連絡先リンクでメールを処理済みとしてマーク
  7. ✅ 連絡先 AI スコアを 68 → 78 に上げます
  8. ✅ タイムスタンプと詳細を含むメモを追加します
  9. ✅ 完全なコンテキストで監査イベントをログに記録します

結果:

  • 新鮮なインタラクションデータで連絡先が更新されました
  • 監査証跡に、Agent がメールを処理したことが示されています
  • スコアが上がったため、連絡先が「高価値の見込み客」に表示されるようになりました
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Email Agent Skill

Overview

The Email Agent is responsible for:

  1. Processing unprocessed emails from a workspace
  2. Extracting sender information and linking to existing contacts
  3. Analyzing email content for intents and sentiment
  4. Updating CRM contacts with interaction data
  5. Creating audit logs for all actions

How to Use This Agent

Trigger

User says: "Process emails for Duncan's workspace" or "Analyze unprocessed emails"

What the Agent Does

1. Fetch Unprocessed Emails

Call: convex query emails.getUnprocessed({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  workspaceId: "kh72b1cng9h88691sx4x7krt2h7v7dehh",
  limit: 50
})

Returns array of emails not yet processed (isProcessed: false)

2. For Each Email

Step A: Extract Sender Email

From: "john@techstartup.com"
Extract: sender_email = "john@techstartup.com"

Step B: Link to Contact

Call: convex query contacts.getByEmail({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  workspaceId: "kh72b1cng9h88691sx4x7krt2h7v7dehh",
  email: "john@techstartup.com"
})

If exists → contactId = found_contact._id If NOT exists → Create new contact with:

  • email: sender_email
  • name: extracted from email or "Unknown"
  • source: "email"
  • status: "lead"

Step C: Analyze Email Content

Extract these intent keywords:

  • "interested" / "partnership" / "collaboration" → intent: inquiry
  • "proposal" / "quote" / "pricing" → intent: proposal
  • "issue" / "problem" / "help" → intent: complaint
  • "?" / "how" / "what" / "when" → intent: question
  • "follow up" / "re:" → intent: followup
  • "meeting" / "call" / "sync" / "schedule" → intent: meeting

Multiple intents can apply to one email.

Step D: Analyze Sentiment

Read email tone:

  • Positive indicators: "excited", "love", "great", "thank you", "appreciate"
  • Negative indicators: "problem", "issue", "concerned", "unhappy", "urgent"
  • Neutral: Standard business tone

Classify as: positive, neutral, or negative

Step E: Generate Summary

Create 1-2 sentence summary of email intent:

Example: "John from TechStartup is inquiring about Q4 marketing services and partnership opportunities."

Step F: Mark as Processed

Call: convex mutation emails.markProcessed({ orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929", emailId: "email_id_from_step_1", contactId: "contact_id_from_step_b", intents: ["inquiry", "partnership"], sentiment: "positive", summary: "John inquiring about Q4 partnership" })

Step G: Update Contact

If this is a NEW interaction, update:

Call: convex mutation contacts.updateAiScore({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  contactId: "contact_id",
  score: 75  // Increase score based on engagement
})

Call: convex mutation contacts.addNote({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  contactId: "contact_id",
  note: "Email from John: Inquiring about Q4 partnership. Sentiment: positive. Intents: inquiry, partnership"
})

Step H: Log Audit Event

Call: convex mutation system.logAudit({ orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929", action: "email_processed", resource: "email", resourceId: "email_id", agent: "email-agent", details: JSON.stringify({ from: "john@techstartup.com", intents: ["inquiry", "partnership"], sentiment: "positive", contactLinked: true }), status: "success" })

Error Handling

If something fails:

Call: convex mutation system.logAudit({
  orgId: "k57akqzf14r07d9q3pbf9kebvn7v7929",
  action: "email_processing_error",
  resource: "email",
  resourceId: "email_id",
  agent: "email-agent",
  details: JSON.stringify({ error: "error message" }),
  status: "error",
  errorMessage: "description"
})

Then continue to next email (don't stop).

Summary Output

After processing all emails, provide:

✅ Email Processing Complete

Total processed: X
Successfully linked: X
New contacts created: X
Intents extracted: X
Average sentiment: X

Contacts engaged:
- John Smith (TechStartup) - positive, inquiry
- Lisa Johnson (eCommerce) - positive, proposal
- Carlos Rodriguez (Agency) - positive, collaboration

Next steps:
1. Review high-priority contacts (positive sentiment + inquiry)
2. Generate followup emails for warm leads
3. Schedule meetings with decision-makers

Key Points

  • Org isolation: All operations scoped to orgId
  • Workspace scope: Process only emails from target workspace
  • Contact linking: Always try to link email to existing contact
  • AI scoring: Increase contact score when they engage (email received)
  • Audit trail: Log every action for compliance

Example: Processing One Email

Input Email:

From: john@techstartup.com
Subject: Interested in your services
Body: Hi Duncan, we're looking to revamp our marketing strategy for Q4. Would love to chat about partnership opportunities.

Agent Process:

  1. ✅ Extract sender: john@techstartup.com
  2. ✅ Query contact: Found "John Smith" in contacts
  3. ✅ Extract intents: ["inquiry", "partnership"]
  4. ✅ Analyze sentiment: "positive" (enthusiastic tone)
  5. ✅ Generate summary: "John inquiring about Q4 marketing strategy and partnership"
  6. ✅ Mark email processed with contact link
  7. ✅ Increase contact AI score from 68 → 78
  8. ✅ Add note with timestamp and details
  9. ✅ Log audit event with full context

Result:

  • Contact updated with fresh interaction data
  • Audit trail shows agent processed email
  • Contact now appears in "high-value prospects" due to increased score