Skip to content

2bcloud-io/cold_mail_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cold Mail generator

This is a Flask application that generates a cold email using the davinci text 003 model. The email is generated based on a target URL and an origin URL provided by the user.

Prerequisites

Before running the application, make sure you have the following installed:

  • Python 3
  • Flask
  • OpenAI Python library
  • requests library
  • BeautifulSoup library

Installation

  1. Clone the repository or download the code files.
  2. Install the required libraries using the following command:
pip install -r requirements.txt

Configuration

To use the OpenAI API, you need to set your API key in the code. Replace "YOUR_API_KEY" with your actual OpenAI API key.

Usage

  1. Start the application by running the following command:
python ./email_api.py
  1. Open a web browser and navigate to http://localhost:5000.
  2. The home page will be displayed, and you can enter the target URL and origin URL in the provided input fields.
  3. Click the "Generate Email" button to generate the cold email.
  4. The generated email will be displayed on a new page.

Note: The target URL and origin URL should be valid URLs that contain the web content you want to use for generating the email.

Important Notes

  • This code assumes you have a basic understanding of Flask and web development.
  • Make sure to handle error cases and perform input validation as needed.
  • The OpenAI GPT-3.5 model is used to generate the email. You may need to have appropriate access and resources from OpenAI to use this model.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published