linagora / tmail-backend

GNU Affero General Public License v3.0
30 stars 17 forks source link

Mail GPT: mail API #1108

Open chibenwa opened 1 week ago

chibenwa commented 1 week ago

Why ?

AI is a trandy topic.

We should start integrating AI in our products.

We aim at proposing

What ?

Mail API for chatGPT. Write a proof of concept of a GPT conversation through mail.

All user needs to do is send an email to gpt@linagora.com

Each email thread starts a discussion. When I answer an email of the gpt bot it keeps posting in the discussion. All recipients of the mail thread can take part to the discussion. The AI system generates one response per email received to all involved recipients of the latest received email.

How ?

One mailet calling OpenAI APIs.

Later it could be wired to Linagora models.

chibenwa commented 1 week ago

Data sanitizing goes here: removed HTML at minimum.