Skip to content

This is an AI-powered chatbot that automatically engages with users who sign up on your website. It can answer questions about your company based on PDF documents and send automated emails.

Notifications You must be signed in to change notification settings

Subhasiish/Ai-saas

Repository files navigation

AI Chatbot with Automatic Email Response

This is an AI-powered chatbot that automatically engages with users who sign up on your website. It can answer questions about your company based on PDF documents and send automated emails.

Features

  • User signup and authentication
  • AI-powered chat interface
  • PDF document processing
  • Automated email responses
  • Modern, responsive UI
  • Secure user data storage

Prerequisites

  • Python 3.7+
  • OpenAI API key
  • Gmail account (for sending emails)

Setup

  1. Clone the repository

  2. Install dependencies:

    pip install -r requirements.txt
  3. Create a .env file in the root directory with the following variables:

    SECRET_KEY=your-secret-key-here
    OPENAI_API_KEY=your-openai-api-key-here
    EMAIL_USER=your-email@gmail.com
    EMAIL_PASSWORD=your-email-app-password
    
  4. Place your company information PDF in the root directory as company_info.pdf

  5. Run the application:

    python app.py

Usage

  1. Open your browser and navigate to http://localhost:5000
  2. Sign up with your email and password
  3. Start chatting with the AI assistant
  4. The chatbot will automatically answer questions based on your company's PDF information
  5. Welcome emails are sent automatically upon signup

Security Notes

  • Never commit your .env file to version control
  • Use strong passwords for your email and OpenAI API key
  • Keep your company information PDF secure and up-to-date

Customization

  • Modify the email templates in the app.py file
  • Update the UI by editing templates/index.html
  • Add more features by extending the Flask routes in app.py

License

MIT License

About

This is an AI-powered chatbot that automatically engages with users who sign up on your website. It can answer questions about your company based on PDF documents and send automated emails.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published