outlook

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Microsoft Outlook Skill

Microsoft Outlook Skill

Overview

概述

Claude can manage your Microsoft Outlook email to read messages, compose and send emails, organize folders, manage calendar integration, and handle tasks. Works with both Outlook.com and Microsoft 365 accounts.
Claude可以管理你的Microsoft Outlook邮件,包括读取消息、撰写和发送邮件、整理文件夹、管理日历集成以及处理任务。支持Outlook.com和Microsoft 365账户。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/outlook/install.sh | bash
Or manually:
bash
cp -r skills/outlook ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/outlook/install.sh | bash
或者手动安装:
bash
cp -r skills/outlook ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined
canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,且永远不会看到你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在你的本地机器上访问,绝不会被传输。

Capabilities

功能

  • Read and summarize emails
  • Compose and send new emails
  • Reply to and forward emails
  • Search emails by sender, subject, or content
  • Organize with folders and categories
  • Manage focused inbox
  • Schedule emails for later sending
  • Set email flags and reminders
  • Access shared mailboxes
  • Manage email rules
  • Archive and delete emails
  • View and manage calendar from email
  • 读取和总结邮件
  • 撰写和发送新邮件
  • 回复和转发邮件
  • 按发件人、主题或内容搜索邮件
  • 使用文件夹和分类整理邮件
  • 管理聚焦收件箱
  • 安排邮件定时发送
  • 设置邮件标记和提醒
  • 访问共享邮箱
  • 管理邮件规则
  • 归档和删除邮件
  • 从邮件视图查看和管理日历

Usage Examples

使用示例

Example 1: Check Inbox

示例1:检查收件箱

User: "Check my Outlook inbox"
Claude: Navigates to Outlook, reads inbox.
        Reports: "You have 8 unread emails:
        1. From IT Support - 'System Update' (1 hour ago)
        2. From Manager - 'Weekly Report' (2 hours ago)..."
用户:“查看我的Outlook收件箱”
Claude:导航至Outlook,读取收件箱。
        回复:“你有8封未读邮件:
        1. 来自IT支持 - '系统更新'(1小时前)
        2. 来自经理 - '周报'(2小时前)...”

Example 2: Send Email

示例2:发送邮件

User: "Send an email to the team about tomorrow's meeting"
Claude: Composes email with subject "Tomorrow's Meeting",
        adds relevant details, sends. Confirms: "Email sent to team"
用户:“给团队发一封关于明天会议的邮件”
Claude:撰写主题为“明天的会议”的邮件,
        添加相关细节,发送。确认:“已给团队发送邮件”

Example 3: Search Emails

示例3:搜索邮件

User: "Find all emails from HR about benefits"
Claude: Searches "from:HR benefits", returns results.
        Reports: "Found 5 emails about benefits from HR..."
用户:“查找所有来自HR的关于福利的邮件”
Claude:搜索“from:HR benefits”,返回结果。
        回复:“找到5封来自HR的关于福利的邮件...”

Example 4: Organize Inbox

示例4:整理收件箱

User: "Move all newsletters to the Archives folder"
Claude: Identifies newsletter emails, moves to Archives.
        Confirms: "Moved 23 newsletters to Archives"
用户:“将所有新闻通讯移至归档文件夹”
Claude:识别新闻通讯邮件,移至归档文件夹。
        确认:“已将23封新闻通讯移至归档文件夹”

Authentication Flow

认证流程

  1. Claude navigates to outlook.live.com or outlook.office.com via Playwright MCP
  2. Enters MICROSOFT_EMAIL from canifi-env
  3. Handles password entry if not already authenticated
  4. Handles 2FA if prompted (notifies user via iMessage)
  5. Maintains session for subsequent operations
  1. Claude通过Playwright MCP导航至outlook.live.com或outlook.office.com
  2. 从canifi-env中读取MICROSOFT_EMAIL
  3. 如果尚未认证,则处理密码输入
  4. 如果提示双因素认证(2FA),则通过iMessage通知用户
  5. 维持会话以便后续操作

Selectors Reference

选择器参考

javascript
// New message button
'[aria-label="New mail"]'

// Mail list
'[role="listbox"]'

// Email item
'[role="option"]'

// To field
'[aria-label="To"]'

// Subject field
'[aria-label="Add a subject"]'

// Message body
'[aria-label="Message body"]'

// Send button
'[aria-label="Send"]'

// Search box
'[aria-label="Search"]'

// Folder pane
'[aria-label="Folder pane"]'

// Categories
'[aria-label="Categorize"]'

// Flag
'[aria-label="Flag this message"]'
javascript
// New message button
'[aria-label="New mail"]'

// Mail list
'[role="listbox"]'

// Email item
'[role="option"]'

// To field
'[aria-label="To"]'

// Subject field
'[aria-label="Add a subject"]'

// Message body
'[aria-label="Message body"]'

// Send button
'[aria-label="Send"]'

// Search box
'[aria-label="Search"]'

// Folder pane
'[aria-label="Folder pane"]'

// Categories
'[aria-label="Categorize"]'

// Flag
'[aria-label="Flag this message"]'

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Email Not Found: Search with variations, ask for clarification
  • Send Failed: Save as draft, retry, notify user
  • Folder Not Found: List available folders, create if needed
  • Rate Limited: Wait and retry with backoff
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 未找到邮件:使用变体搜索,请求用户澄清
  • 发送失败:保存为草稿,重试,通知用户
  • 未找到文件夹:列出可用文件夹,如有需要则创建
  • 速率限制:等待后重试并使用退避策略

Self-Improvement Instructions

自我改进说明

When you learn a better way to accomplish a task with Outlook:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific navigation patterns that work better
  4. Note differences between Outlook.com and Office 365
当你学会了使用Outlook完成任务的更好方法时:
  1. 在回复中记录改进内容
  2. 建议用新方法更新此技能文件
  3. 包含更有效的特定导航模式
  4. 注意Outlook.com和Office 365之间的差异

Notes

注意事项

  • Outlook web interface differs between consumer and business
  • Focused Inbox separates important emails automatically
  • Calendar and tasks accessible from mail view
  • Rules can automate email organization
  • Shared mailboxes require explicit access
  • Email scheduling available for future sending
  • Undo send available for brief period after sending
  • Dark mode available in settings
  • Outlook网页界面在消费者版和商业版之间存在差异
  • 聚焦收件箱会自动分离重要邮件
  • 可从邮件视图访问日历和任务
  • 规则可自动整理邮件
  • 共享邮箱需要明确的访问权限
  • 支持邮件定时发送
  • 发送后短时间内可撤销发送
  • 设置中提供深色模式