I have recently released AI Email, an AI agent based on Chatgpt which is capable of connecting to yorìur GMAIl account and read your emails. You can find the codes on GitHub. The Web interafce is built using Gradio.
How Does It Work?
The Agent can be prompted with authors or topics of interest, and with topics/authors that the user is not interested about. The architecture comprises 4 main elents:
– Emailer class to establish the connection to GMAIL account and read emails. It is also responible for modifying the emails (e.g. set as read and move to trash). For each email message, it returns a dictionary containing the email author, the topic/title, the date of receipt, and the content of the email.
– Author/Topic Checker: a ChatGPT-based LLM that checks whether or not the author and content of the email message are within those of interest for the user.
– Interest Scorer: another LLM that given the list of authors/topics of interest scores the emial message giving a probability score between 0 and 1, with 1 representing the highest interest.
– Summarizer: if the email message is considered relavent by the Interest Scorer, the full email content is passed to the summarizer in order for it to provide the main key points of the email.
The emails that are not considered of interest will be directly sent to trash.
In order for the user to be aware of the behaviour of the agents, the Gradio web app will return a list of both the discarded messages and those considered of interest, with the corresponding summary.




