An open-source AI email writer and composer for Microsoft Outlook, powered by Google Gemini.
AI Compose is a lightweight, privacy-focused Outlook add-in developed by Rizonesoft. It leverages the Google Gemini API to help you draft, reply, and refine professional emails directly within the Outlook interface — without ever leaving your inbox.
| Feature | Description |
|---|---|
| 📝 AI-Powered Drafting | Generate full professional emails from short prompts and a desired tone |
| ↩️ Contextual Replies | Analyze incoming mail to suggest relevant, context-aware responses |
| 📋 Summarize | Condense long email threads into bullet points, paragraphs, or TL;DR |
| ✍️ Improve Writing | Fix grammar, improve clarity, make concise, or make professional |
| ✅ Extract Actions | Pull out action items, deadlines, and tasks from emails |
| 🌐 Translate | Translate email content into 20+ languages |
| 🔒 Privacy-First | Open-source architecture ensures your API keys stay local |
- Node.js v20 or higher
- A Google Gemini API key (free tier available)
- Microsoft Outlook (desktop, web, or Microsoft 365)
Option A — Install from GitHub Pages (recommended)
- Download the manifest: manifest.xml (right-click → Save As)
- Visit aka.ms/olksideload — this opens Outlook on the web and the Add-Ins dialog
- In the "Custom Addins" section at the bottom, click Add a custom add-in → Add from File
- Select the downloaded
manifest.xmland click Install - Open any email → click the AI Compose button in the ribbon
- Enter your Gemini API key in Settings (gear icon)
Tip: In classic Outlook on Windows, you can also access this via File → Info → Manage Add-ins.
Option B — Organization-wide deployment (M365 Admin)
- Go to admin.microsoft.com → Settings → Integrated Apps
- Click Upload custom apps → Provide link to manifest file
- Enter:
https://rizonesoft.github.io/ai-email-writer/manifest.xml - Click Validate → assign to users or groups → Deploy
Note: Updates are automatic — when we deploy new code to GitHub Pages, the add-in updates for all users on the next load. No reinstallation needed.
Option C — Install the Dev/Nightly build
For early access to the latest features:
- Download the dev manifest: manifest.xml (right-click → Save As)
- Follow the same steps as Option A using aka.ms/olksideload
- The dev build appears as "AI Compose (Dev)" in Outlook so it won't conflict with the production version
# Clone the repository
git clone https://github.com/rizonesoft/ai-email-writer.git
cd ai-email-writer
# Install dependencies
npm install
# Create a .env file with your Gemini API key
echo "GEMINI_API_KEY=your-key-here" > .env
# Start the development server
npm run dev-server- Start the dev server (
npm run dev-server) — runs onhttps://localhost:3000 - Open Outlook on the web
- Get Add-ins → My add-ins → Add a custom add-in → Add from file
- Upload
manifest.xmlfrom the project root - The add-in will hot-reload as you make changes
# Production build (outputs to dist/)
npm run build
# Run linting
npm run lintai-email-writer/
├── src/
│ ├── features/ # Feature modules (draft, reply, summarize, etc.)
│ ├── services/ # Gemini API client, Outlook service
│ ├── prompts/ # Prompt templates and builder
│ ├── styles/ # Design tokens and global CSS
│ ├── taskpane/ # Main UI (HTML, TypeScript, CSS)
│ └── commands/ # Outlook ribbon command handlers
├── assets/
│ └── tool-icons/ # Ribbon control icons (PNG, multiple sizes)
├── manifest.xml # Add-in manifest (GitHub Pages production)
└── .github/workflows/ # CI/CD deployment workflows
AI Compose is hosted on GitHub Pages with a single manifest.xml in the repository. The CI pipeline automatically patches the manifest for the dev environment at build time (different App ID, /dev/ URLs, and "(Dev)" label).
| Environment | URL | Trigger |
|---|---|---|
| Dev | rizonesoft.github.io/ai-email-writer/dev/ | Auto on every push to main |
| Production | rizonesoft.github.io/ai-email-writer/ | Manual trigger in GitHub Actions |
To promote to production: go to GitHub Actions → Deploy → Run workflow → check Deploy to production → Run workflow. Users receive updates automatically on their next add-in load.
If you need to update or re-deploy the add-in for your organization:
- Go to admin.microsoft.com → Settings → Integrated Apps
- Find AI Compose → click Update app (or remove and re-add)
- Select Provide link to manifest file
- Enter:
https://rizonesoft.github.io/ai-email-writer/manifest.xml - Click Validate → Update / Deploy
- Changes propagate to assigned users within 24 hours
Access settings via the gear icon in the add-in:
- API Key — Your Google Gemini API key (stored locally in your browser)
- Model — Choose between Gemini 3.1 Pro (latest), Gemini 3 Flash/Pro, or Gemini 2.5 Flash/Pro (stable)
- Default Tone — Set the default writing tone (Professional, Formal, Friendly, Casual)
- Summary Style — Default format for summaries (Bullets, Paragraph, TL;DR)
- Language — Default translation target language
- Your API key is stored locally in your browser's
localStorage— it never leaves your device - Email content is sent directly to the Google Gemini API for processing
- No data is stored on our servers — AI Compose is entirely client-side
- The add-in only requests ReadWriteItem permissions (the minimum needed)
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'feat: add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.
Made with ❤️ by Rizonesoft
