Last active
May 14, 2026 02:50
-
-
Save kujiy/573117fd5d6bbe1dcbeaad1d203bcd43 to your computer and use it in GitHub Desktop.
post-gmail-to-slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 🎯 プロンプト | |
| あなたは以下のタスクを実行します: | |
| ステップ1: Gmailから未読メール取得 | |
| Gmail connection を使用して、inboxの未読メールのみを検索してください。 | |
| 検索条件: | |
| is:unread (未読メールのみ) | |
| in:inbox (プライマリーinboxのみ、ラベル付きメール除外) | |
| pageSize: 10 (最大10件) | |
| ステップ2: メール情報を抽出 | |
| 取得したメール各件について以下の情報を抽出してください: | |
| 件名 (subject) | |
| 送信者アドレス (from) | |
| スレッドID (threadId) | |
| 日時 (received date) | |
| ステップ3: Slackに投稿 | |
| Channel ID: ZZZZZZZZZ に、以下のフォーマットで投稿してください。 | |
| 各メールごとに1つのメッセージとして投稿: | |
| 📧 **[件名]** | |
| 👤 From: [送信者アドレス] | |
| 📅 受信: [日時] | |
| 🔗 Link: https://mail.google.com/mail/u/0/#inbox/[threadId] | |
| ステップ4: 完了報告 | |
| 投稿完了後、以下の情報を表示: | |
| 投稿したメール件数 | |
| 投稿されたSlackメッセージリンク | |
| ⚠️ 重要な注意事項 | |
| ✅ 必ず含める | |
| is:unread - 未読のみ | |
| in:inbox - プライマリーinboxのみ | |
| ❌ 含めてはいけない | |
| is:read - 既読メールは除外 | |
| category: - カテゴリーラベルは除外 | |
| label: - その他ラベルは除外 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment