Update — August 2026
This article documents an experiment originally published in April 2023. The Gmail-to-Trello concept and both APIs remain available, but the linked implementation should now be treated as an unmaintained experimental prototype, not as a production-ready or plug-and-play tool.
The repository targets the unsupported Node.js 16 runtime and uses
pkg, which was archived in 2024. It also requires security and reliability fixes, including removing credentials from logs, correcting email deduplication and startup behavior, improving Gmail time-based queries, and adding safer error handling.Do not run the current repository with real Gmail or Trello credentials without first reviewing and updating the code and its dependencies. If you test it, use non-production accounts, least-privilege credentials, and revoke the tokens afterward.
Photo by Rolf van Root on Unsplash.
Why ChatGPT?
As a manager, my coding duties have reduced drastically. So, looked everywhere to build or automate something that could impact any close one’s work. Found ChatGPT could be a helper to get some inspiration.
Use case
- Someone close does some grunt work that constraints it to share a Gmail account with other three people.
- Work is distributed by emails, each member has to pick their corresponding emails and address them.
- Problem: most of the times, someone opens an email that does not matter to its responsibility, and leaves it marked as read; so confusion as to if that email was addressed takes over the place.
What’s in the market?
My diagnostic is the group is prone to carelessly leave emails read by any reason; so my solution, after speaking with the affected, is to move the emails to a place where their state is visible and it’s easier to distribute tasks to the responsible ones. The most common tool for transparentizing such type of workspace, to me, is Trello or any board-like tool, besides that has a free tier, accessible to many users, and allows to order work in lists.
Did some research prior to get dirty with code, found there’s a Trello add-on for Gmail. However, it ain’t cool enough: asks to open a mail to see the add-on in action, this did not avoid the scenario were oblivious users could skip creating Trello cards for each email read. Besides that did not provide any way to automate card creation. So that was a no-way.
Without further ado, hands on work…
Solution
There, I came up with some requirements:
- Tool should create cards automatically based off a emails from an account.
- Tool should not prompt user for any input once it’s setup.
- Tool should create cards on a time basis.
- Tool should integrate with Gmail and Trello.
- Tool should be a plug-and-play thingy.
- Cards should be concesive enough and avoid to copy-paste all of the email contents.
- Cards should not duplicate.
From there, the inputs and outputs define as:
- Inputs: Gmail credentials, Trello integration requirements, user preferences on time basis for these cards to create, target Trello list, target Trello board.
- Outputs: Trello cards in given Trello list of a Trello board.
Caveats
- I already mentioned I don’t code much often, and have got a bit dusty so decided to use ChatGPT for this journey.
- Trello has its capricious way to integrate with custom tools, so that adds a bit of overhead to the final solution.
Talk is cheap, show me the code:
Below is the link to the GitHub repo, where I include prompts used with ChatGPT in prompts.txt:
nosavvy33/gmails-to-trello on GitHub
Next steps
See if this can become a Google add-on so that setup overhead reduces.
Final words
Surprised about how good of a work starter ChatGPT can be, no doubt it still needs polishing and human intervention for its proposed solutions to work. Personally, I come from another profession menaced by AI: translator; where there’s a saying “machine translation will replace translators that translate like machines”. I think of ChatGPT the same way, machine-generated software will replace software developers that write software as machines.
Top comments (0)