Outlook connector

From andreaswasita/copilot-cowork-dojo · View interactive version

Outlook connector is an AI agent skill from the GitHub repository andreaswasita/copilot-cowork-dojo. Drive Outlook mail and calendar from Copilot — search threads, draft replies, schedule meetings, manage rules. Use whenever the input or output of a task is an email or a calendar event. Triggers: "draft a reply", "schedule a meeting", "find emails from", "calendar conflicts", "send to".

How to use this skill

Skill file

Outlook Connector

Email is the most overloaded surface in the enterprise. Use Copilot to triage and draft, never to send unread.


Quick Reference

| Task | Approach |

|---|---|

| Triage an inbox | Bucket -> drafts -> human review -> send |

| Reply in-thread | Use conversationId; never auto-rewrite the subject |

| Schedule a meeting | Find free/busy across attendees -> propose 3 slots -> book on confirmation |

| Forward externally | Strip earlier internal-only messages; remove sensitive attachments |

| Search a mailbox | KQL with sender + date range + folder filter |

| Bulk action | Dry-run first; never auto-send via rules |

Prerequisites — this skill is a playbook, not the connector

A SKILL.md cannot call Outlook on its own. It assumes the platform already exposes Microsoft Graph mail / calendar as tools. The skill teaches Cowork how to use Outlook well; the connector itself is separate infrastructure.

Before this skill works end-to-end you need:

  1. A Microsoft Graph connector — typically Copilot Cowork's built-in M365 connectivity, or an MCP server wrapping the Graph /me/messages and /me/events endpoints.
  2. Credentials — your Entra ID session with Mail.Read / Mail.Send / Calendars.ReadWrite scopes consented for the connector.
  3. Tenant policies — mail flow, retention, and DLP rules must permit programmatic access.
  4. Tool discovery — confirm mail / calendar tools are visible (ask Cowork: "what Outlook tools do you have?") before using this skill.

In Cowork on a properly licensed M365 tenant, this is usually present out of the box. On other surfaces, you'll need an MCP connector explicitly installed.

When to Use

How to Use

  1. Search / list messages by conversationId, sender, date range, or KQL — narrow before you read.
  2. Read the thread, then attachments. Treat attachments as separate sources for citation.
  3. Draft the reply in a draft surface (Outlook draft folder, not in chat). Keep the draft until verified.
  4. Resolve recipients — verify To/Cc/Bcc against the original thread + the deliverable's intended audience.
  5. Send / schedule only after the verify-before-send gate.

Parameter Guidance

| Parameter | Why it matters |

|---|---|

| conversationId | Anchors a reply to the right thread; avoids forking. |

| to / cc / bcc | Audience defects = blast-radius defects. Verify each list. |

| subject | Don't auto-rewrite an existing thread's subject — breaks threading. |

| attachments | Re-attach only what's needed; remove confidential earlier attachments when forwarding externally. |

| categories / flag | Use to mark Copilot-drafted items pending human review. |

Examples

| Don't: Anti-pattern | Do: Right move |

|---|---|

| Let Copilot auto-send a drafted reply | Draft to the Outlook drafts folder; a human reviews, then sends |

| Rewrite the subject line on a reply | Keep the existing subject; reply by conversationId to preserve threading |

| Forward a thread externally as-is | Strip internal-only earlier messages and sensitive attachments first |

| "Summarize my inbox" with no scope | Filter by sender + date + folder before reading — privacy and cost both matter |

Critical Rules

Common Pitfalls

Anti-Patterns

Verify Before Send

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.