GithubHelp home page GithubHelp logo

riensen / auto-gpt-email-plugin Goto Github PK

View Code? Open in Web Editor NEW
132.0 132.0 15.0 703 KB

Revolutionize email management with the Auto-GPT Email Plugin, leveraging AI to automate drafting, intelligent replies, and seamless inbox control.

License: MIT License

Makefile 1.17% Shell 2.69% Python 96.14%

auto-gpt-email-plugin's People

Contributors

billschumacher avatar buckedunicorn avatar dr33dm3 avatar eltociear avatar hdkiller avatar isaiahbjork avatar johnseth97 avatar jpetzke avatar ntindle avatar riensen avatar slistinc avatar taylorbeeston avatar torantulino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-gpt-email-plugin's Issues

AutoGPT Email Plugin Issue: Emails Going to Drafts and Unable to Read Emails

Dear Riensen

I hope this message finds you well. I am writing to request assistance with an issue I've encountered while using the email plugin for AutoGPT. I have been following the provided guide to set up and use the plugin, but I am experiencing difficulties when attempting to send emails and read the received emails.

When I use the "send_email" command, I receive the following error message:

Command send_email returned: Email went to [Gmail]/Drafts!

Instead of sending the email as intended, it is being saved to the Drafts folder in Gmail. Additionally, the plugin is unable to read the received emails.

I have double-checked the guide and followed the instructions carefully, but the problem persists. I would appreciate any guidance or suggestions you can provide to help me resolve this issue. Please let me know if you require any further information or logs to better understand the problem.

Thank you in advance for your assistance.

Sincerely,

AI using "to" instead of "recipient" and "body" instead of "message"

Whenever the AI uses send_email, it uses "to" instead of "recipient" and "body" instead of "message". I then have to tell it through the console to use "recipient" and "message" in order for it to send the email. Does anybody else have this issue? Any ideas how to fix it?

Cannot send attachment

I'm expecting to get Auto-GPT to send an attachment but it fails

CRITICISM:  I need to make sure that the email is sent successfully and that the recipient receives the file.
NEXT ACTION:  COMMAND = send_email ARGUMENTS = {'to': '<email_address>', 'subject': "CV", 'body': "Please find attached CV.", 'attachment': '<path_to_downloaded_CV>'}
SYSTEM:  Command send_email returned: Error: send_email() takes 3 positional arguments but 4 were given
| Thinking...

Marking messages as seen doesn't appear to work

I originally had my .env file configured with EMAIL_MARK_AS_READ=False
I then realised my mistake and altered the .env file settings to EMAIL_MARK_AS_READ=True
However, it never seems to mark messages as read/seen, even if I explicitly ask it to.

I am using a dedicated gmail account for this

Integrate plugin functionallity in javascript

is it possible to write javascript code that exploits the send email plugin's functionality? In other terms, in principle, could it be possible to ask AutoGPT to call this functionality inside the scripts that it's generating?

Unable To Read Emails with Plug-In

It is allowed to send an email, but unable to read emails. Any help on correcting this issue?

PLAN:

  • Read emails
  • Identify urgent messages
  • Respond to urgent messages
  • Prioritize inbox
  • Continuously learn and adapt
    CRITICISM: I need to ensure that I am efficient and effective in my email management, and that I am prioritizing your inbox based on your preferences and needs.
    NEXT ACTION: COMMAND = read_emails ARGUMENTS = {'imap_folder': 'INBOX', 'imap_search_command': 'UNSEEN'}
    Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ...
    Asking user via keyboard...
    Input:y -15
    -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
    SYSTEM: Command read_emails returned: Error: decode() argument 'encoding' must be str, not None
    THOUGHTS: I apologize for the error. Let's try again to read your most recent emails to identify any urgent messages that require your immediate attention.
    REASONING: Reading your emails will give us a better understanding of your current priorities and help us determine the next steps.
    PLAN:
  • Read emails
  • Identify urgent messages
  • Respond to urgent messages
  • Prioritize inbox
  • Continuously learn and adapt
    CRITICISM: I need to ensure that I am efficient and effective in my email management, and that I am prioritizing your inbox based on your preferences and needs.
    NEXT ACTION: COMMAND = read_emails ARGUMENTS = {'imap_folder': 'INBOX', 'imap_search_command': 'UNSEEN'}
    SYSTEM: Command read_emails returned: Error: decode() argument 'encoding' must be str, not None
    THOUGHTS: I apologize for the error. It seems that I am not authorized to access your email account. Please provide me with the necessary credentials to access your email account.
    REASONING: Without the necessary credentials, I am unable to access your email account and perform the necessary actions to manage your inbox.

Email plugin

Hello, I have installed all plugins and input outlook smtp info into the env. Autogpt says its saved an email into drafts but no email was there. I am using an app password. I have allowed pop and smtp and imap in settings. The only thing is I dont use a paid api. But autogpt says it's done the task but I just dont see any email. Can you assist. Thanks

Cant send emails with custom hoster

Hi,

at first, thank you so much for this nice plugin! :)
I like it and want to test it much more.

When I tried to setup my own email from custom hoster (no gmail, outlook, ....) then its not working. I think, its because of SSL?! There is no way for the moment, to put security mode.

When I tried outlook email, then its working.

Testing with Google Workspace

I have set up a separate e-mail account for the bot in our org.

I logged in to the account to check that it works from web, and have made sure IMAP is active.

When doing your test as you describe, I get command read_emails returned: Error: b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'

It's the same password I used to log in to this account on web, so I know it's not that.

How to make autogpt learn internal documents

I would really like to use this plugin but I was wondering one very important thing. How can autogpt first learn the data it needs about our company to be able to respond to the incoming mails.

As example we run a hostel. We get queries for pricing, cancellations, where to park and so on. Autogpt needs to be able to review our information to be able to answer to the mails. How would this work. Any help/explanation would be greatly appreciated.

Issue w/ read_emails()

SYSTEM: Command read_emails returned: Error: decode() argument 'encoding' must be str, not None

Auto-GPT is throwing this error when it attempts to read_emails() and fetch any of my recent mails for processing or replies.

I believe the Imap/smtp is configured properly as I was able to send an email out with auto-gpt, but I could be wrong.

Also attempted some work-arounds in the python code, but was unsuccessful after a few different attempts.

Using 2FA w/ app password setup.

Fix: complex imap search

Code needs to handle future edge cases like this one _, search_data = conn.search(None, 'CC', '"Verify your email"')

Type Error with AutoGPT 0.3.1

Anybody getting this with AutoGPT 0.3.1 - it was working with 0.2.2 for me..

Traceback (most recent call last):
File "/Users/david/opt/anaconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/david/opt/anaconda3/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/david/Desktop/dkautogpt/Auto-GPT-latest/autogpt/main.py", line 5, in
autogpt.cli.main()
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
rv = super().invoke(ctx)
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/david/Desktop/dkautogpt/Auto-GPT-latest/autogpt/cli.py", line 96, in main
run_auto_gpt(
File "/Users/david/Desktop/dkautogpt/Auto-GPT-latest/autogpt/main.py", line 127, in run_auto_gpt
cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode))
File "/Users/david/Desktop/dkautogpt/Auto-GPT-latest/autogpt/plugins.py", line 238, in scan_plugins
loaded_plugins.append(a_module())
File "/Users/david/opt/anaconda3/lib/python3.10/site-packages/abstract_singleton/init.py", line 14, in call
cls._instances[cls] = super().call(*args, **kwargs)
TypeError: Can't instantiate abstract class AutoGPTEmailPlugin with abstract methods can_handle_report, can_handle_text_embedding, can_handle_user_input, handle_text_embedding, report, user_input

Okta 2FA bypass

Updated .env file to

EMAIL_SMTP_HOST=smtp.office365.com EMAIL_SMTP_PORT=587 EMAIL_IMAP_SERVER=imap.office365.com

And attempted to login to outlook, but was rejected with this error message

Command send_email returned: Error: [Errno 8] nodename nor servname provided, or not known

Is there is password app similar to Gmail, or do you know another option?

Thank you, truly revolutionary stuff in the making.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.