# meeting-transcript (shareable)

A Clawpilot skill that downloads the transcript of a recorded Microsoft Teams meeting by automating the Stream Transcript pane's native **Download** button via Playwright. Default output is `.docx`; `.vtt` is available on request. Files are named `<slug>-<YYYY-MM-DD>-<HHMM>.<ext>` using the actual **recording start time** (pulled from the chat thread's "Meeting started at..." line), not the scheduled time the Recap picker shows.

This is **stage 3 of 3** in the [Teams Transcript Pipeline](../teams-transcript-pipeline/) suite — it pairs with `/transcript-watcher` (detects new MP4s and triggers this skill) and `/doc-watcher` (converts the downloaded `.docx` to `.md` and pings Teams). It also stands alone for manual one-off transcript pulls.

## Why this exists

Microsoft Graph's transcript endpoints (`/me/onlineMeetings/{id}/transcripts/...`) require admin-consented `OnlineMeetings.Read` + `OnlineMeetingTranscript.Read.All` scopes that aren't granted to most personal Clawpilot tokens. This skill takes the UI-automation path instead, which works for any user who can already view the recording in Teams.

## Install

1. Copy `meeting-transcript.md` to your Clawpilot skills folder:
   - Windows: `C:\Users\<you>\.copilot\m-skills\meeting-transcript\SKILL.md`
   - Or import via Clawpilot Settings → Skills → Add local skill.
2. Open `SKILL.md` and replace the two placeholders in the **Configuration** section:
   - `{{DEFAULT_OUTPUT_DIR}}` — where transcripts should land by default.
   - `{{TENANT_ID}}` — your Microsoft 365 tenant GUID.
3. Restart Clawpilot (or reload skills) so the new skill is picked up.

## Use

In a Clawpilot chat:

```
/meeting-transcript <Teams meeting link, subject, or chat id>
```

Optional modifiers in natural language:
- "save it to `<some other folder>`"
- "give me the vtt instead"

Or let `/transcript-watcher` invoke this automatically every time a new recording lands in OneDrive.

## Requirements

- Clawpilot with browser-control (Playwright) and M365 tools enabled.
- Signed in to Microsoft 365 in the Clawpilot-controlled browser session (persistent Edge profile recommended — sign in once, the skill reuses the session forever).
- The recording exists and you have permission to view it in Teams.

## License

Provided as-is. No warranty. Do whatever you like with it.

