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
