File size: 1,462 Bytes
f946c51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# AI Survey Bot Recommendation

This is a Streamlit app that allows users to answer a couple of questions and get a tailor-made response from an AI chatbot. The chatbot uses OpenAI GPT-3.5 Turbo to generate responses based on the user's input.

## Live Demo

You can test the live application here: [AI Survey Bot Recommendation](https://ai-survey-bot-recommendation-9e6213040391.herokuapp.com/)

## Key files

- **app.py** - Main Streamlit app code
- **requirements.txt** - Python dependencies
- **setup.sh** - Heroku config script

## Installation

1. Clone the repository:

   ```bash
   git clone https://github.com/your-username/your-repo.git
   ```

2. Install the dependencies:

   ```bash
   pip install -r requirements.txt
   ```

3. Set up the environment variables:

   - Create a `.env` file in the root directory of the project.
   - Add the following variables to the `.env` file:

     ```plaintext
     OPENAI_API_KEY=your-openai-api-key
     EMAIL=your-email
     PASSWORD=your-password
     ```

4. Run the app:

   ```bash
   streamlit run app.py
   ```

## Usage

1. Open the app in your browser.
2. Answer the questions presented on the app.
3. Click the "Submit" button to get the chatbot response.
4. The chatbot response will be displayed on the app.
5. The chatbot response will also be sent to the email address provided.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.