Mailmerge-JS is an open-source command-line tool that automates Gmail mail merges with AI assistance. Installed via npm, it connects to your Gmail account and handles the repetitive work of templating and preparing recipient data.
Gmail mail merge from the terminal
Run campaigns directly from your terminal and send messages from your own Gmail account without setting up external email services. Mailmerge-JS helps you generate personalized emails from templates by inserting data from your sources, reducing manual copy-paste.
AI-assisted templates and personalization
Mailmerge-JS uses AI to simplify drafting and working with template variables. This is useful for bulk outreach where each email should still feel individual, including:
- Name-based greetings
- Text variations based on recipient fields
- Faster preparation of template copy
Open source for audits and extensions
The project is available on GitHub and published to the npm registry, making it easier to review the code and contribute. Developers can also:
- Extend functionality for internal workflows
- Integrate mailmerge-js into scripts and pipelines
- Adapt the tool to team-specific processes

