Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friend app should be able to chat with and have context from your gmail ($1000) #534

Closed
kodjima33 opened this issue Aug 6, 2024 · 19 comments
Labels
app idea flutter flutter work help wanted Extra attention is needed Paid Bounty 💰

Comments

@kodjima33
Copy link
Collaborator

kodjima33 commented Aug 6, 2024

Is your feature request related to a problem? Please describe.
Users want to be able to chat with their emails. Gmail doesn't have native AI features and is not smart and doesn't do it well. We need to let people to connect to Gmail through a plugin and upload their emails into Friend app and that data should be used same way we currently use memories.

Describe the solution you'd like
You need to make a "Connect Gmail" plugin for Friend app, in which the user will be able to authorize their gmail app and export all the data and then import it into Friend app.

Mails should be imported properly and vectorized in the backend, when chatting the user should be able to ask questions about their email.

A new section of the app with your Gmails indexed, should be in there.

Question

  • A simple Gmail Chat API search works? instead of indexing all this stuff? or why not?

Learn how to create plugins here

Additional context
This is a paid task. Reward is $1000 in cash. Simply link your PR with this task and we will check it asap. Check how Contributions and bounties work here
If no one is assigned to this task, then no one is working on it. We don't lock bounty tasks unless you've created PRs before.

@kodjima33 kodjima33 moved this to Backlog in omi TODO Aug 6, 2024
@kodjima33 kodjima33 added help wanted Extra attention is needed flutter flutter work Paid Bounty 💰 app idea labels Aug 6, 2024
@kodjima33 kodjima33 changed the title Uploading gmail into Friend ($2,000) Gmail plugin ($2,000) Aug 6, 2024
@ologunB
Copy link
Contributor

ologunB commented Aug 7, 2024

Can you kindly assign me to this challenge @kodjima33

@heidy00
Copy link

heidy00 commented Aug 7, 2024

Hello @kodjima33,
I am working on it.
I have experience with it and flutter.
can you assign for me?
Thank you

@josancamon19 josancamon19 changed the title Gmail plugin ($2,000) Friend app should be able to chat chat and have context from your gmail ($2,000) Aug 8, 2024
@josancamon19 josancamon19 changed the title Friend app should be able to chat chat and have context from your gmail ($2,000) Friend app should be able to chat chat and have context from your gmail ($1000) Aug 8, 2024
@josancamon19
Copy link
Contributor

I suggest #533 and this work together.

@josancamon19
Copy link
Contributor

This is 90% not a flutter task.

@ologunB @heidy00 let me know if you are still interested.

@heidy00
Copy link

heidy00 commented Aug 8, 2024

Hello,
Thank you for your suggestion.

@heidy00
Copy link

heidy00 commented Aug 8, 2024

Hello @josancamon19 ,
please contact with me via telegram.
https://t.me/vsheidy
This is my Telegram.

@josancamon19
Copy link
Contributor

let's chat on discord https://discord.gg/9puRjM2g
@josancamon19

@heidy00
Copy link

heidy00 commented Aug 8, 2024

let's chat on discord https://discord.gg/9puRjM2g @josancamon19

I can't add your discord.
vsheidy000
it is my username

@ologunB
Copy link
Contributor

ologunB commented Aug 8, 2024

@heidy00 u can work on it.

@Washyl
Copy link

Washyl commented Aug 8, 2024

Can you kindly assign me to this challenge @kodjima33

@samarsheikh001
Copy link

Please assign it to me, I am close to finish it.

@kodjima33
Copy link
Collaborator Author

kodjima33 commented Aug 13, 2024

@Washyl @samarsheikh001 @ologunB @heidy00 haven't seen any code so far - can someone please do a PR, we will check and if it's good, will assign the issue?

For now, the issue is still unassigned due to lack of code here

@kodjima33 kodjima33 changed the title Friend app should be able to chat chat and have context from your gmail ($1000) Friend app should be able to chat with and have context from your gmail ($1000) Aug 14, 2024
@beastoin
Copy link
Collaborator

🤔 should I...

@beastoin
Copy link
Collaborator

beastoin commented Aug 14, 2024

Question: A simple Gmail Chat API search works? instead of indexing all this stuff? or why not?

Answer: Simple Gmail Chat API search should works, cause Gmail is so generous on rate-limiting[1]. ver1 of this plugin should be use Gmail API to retrieve relevant emails ( messages in term of Gmail API ) whenever users ask, we don't need to index all of emails.

[1]: https://developers.google.com/gmail/api/reference/quota

@kodjima33
Copy link
Collaborator Author

@beastoin yeah i think for initial implementation we can just use chat API

But eventually we definitely will need to index emails in app's database to give more context for ai

@beastoin
Copy link
Collaborator

yes got it @kodjima33 , will draft a proposal soon.

@decipher2k
Copy link

@beastoin yeah i think for initial implementation we can just use chat API

But eventually we definitely will need to index emails in app's database to give more context for ai

keep in mind that some users do have thousands of mails in their inbox.

i'd suggest doing the mail handling serverside at the plugin server and searching mails with a non-ai based approach, fetching them regularily using IMAP. maybe it could be useful to fetch only the last 100 mails or so.

thus, the google quota won't be a problem, and there won't be many resources required.

@invarrow
Copy link
Contributor

invarrow commented Aug 23, 2024

@kodjima33 @josancamon19 completed the plugin to chat with mail

On the implementation side of it,
🟢 supports gmail auth similar to notion-crm and webhooks to handle triggers
🟢 to support the chat with mail, found it best to have it trigger on chat messages instead of memory, so added chat-query as a capability for external integrations.
🟢 The webhook is hooked up with langchain's mail toolkit for querying for mails. It also supports sending mails which can also be added if required.

wanted to get feedback and info on how to submit and have this plugin added since it requires the webhook to be hosted aswell..
will be cleaning and making a pr shortly

image

@josancamon19
Copy link
Contributor

Closing, not planned for now, will reopen later probably.

@josancamon19 josancamon19 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@github-project-automation github-project-automation bot moved this to Done in omi TODO Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app idea flutter flutter work help wanted Extra attention is needed Paid Bounty 💰
Projects
Status: Done
Development

No branches or pull requests

9 participants