Skip to content

Analyze sentiments of emails from your inbox using the power of OpenAI's GPT-3! A Python-based tool designed to process and extract sentiments seamlessly from emails, giving you insight into your communication.

Notifications You must be signed in to change notification settings

ritaCosta93/ai-email-sentiment-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📧 Email Sentiment Analysis with OpenAI's GPT-3

Analyze sentiments of emails from your inbox using the power of OpenAI's GPT-3! A Python-based tool designed to process and extract sentiments seamlessly from emails, giving you insight into your communication.

Email Sentiment Analysis Tool

📢 AI-Driven Creation

This project stands as a testament to the fusion of human creativity and artificial intelligence. Entirely conceptualized and refined through AI assistance, over 12 hours of meticulous prompt tweaking and iterations have led to this sophisticated tool. Our journey of blending human oversight with AI capabilities promises an innovative future for software development.

🌟 Features

  • Intuitive GUI: Simply select the INBOX file and let the tool handle the rest.
  • Powered by GPT-3: Utilizes OpenAI's state-of-the-art GPT-3 model for accurate sentiment detection.
  • Clean Processing: Strips away HTML, unwanted metadata, and extracts the main content of the email.
  • Detailed Reports: Get sender details, email content, and the sentiment of each email in a .txt report.
  • Rate Limit Handling: Built-in rate limiting and error handling for a smooth user experience.

🛠️ Installation

Prerequisites

Ensure you have Python 3.x installed on your system. For new users, it's recommended to install Python from the official website.

Dependencies

After cloning the repository, navigate to the project directory and run the following command to install all required packages:

pip3 install -r requirements.txt

OpenAI API Key

You'll need an OpenAI API key to access the GPT-3 model. Obtain it from OpenAI's website, and replace the placeholder in the code with your key.

🚀 Usage

Run the main script:

python3 bert.py

A GUI window will open. Select your INBOX file, and the tool will start processing. Once complete, you will find a .txt report in the project directory containing the analysis.

Note: The current script is configured to analyze mbox formatted inbox files. You can obtain your INBOX file from your email service provider (e.g., Gmail offers an option to download your emails in this format via Google Takeout).

📸 Screenshots

Tool in Action

💡 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

📜 License

This project is open source and available under the MIT License.

🤝 Acknowledgments

  • OpenAI for their robust API.
  • Python community for the plethora of helpful libraries.

❤️ If you find this tool helpful, consider giving it a star on GitHub!

About

Analyze sentiments of emails from your inbox using the power of OpenAI's GPT-3! A Python-based tool designed to process and extract sentiments seamlessly from emails, giving you insight into your communication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages