This Chrome extension uses GPT-4 to read and answer support emails in Gmail, utilizing documents to answer specific emails characterized only for your company. It automatically generates responses for emails by utilizing a separate backend API built with Django. The extension adds a "Generate Response" button to Gmail's interface, which, when clicked, sends the email content to the backend API. The API processes the email and returns a generated response, which is then inserted into the reply composer of the same email thread.
- Google Chrome Browser
- A running instance of the Django backend API
- Clone this repository to your local machine.
git clone https://github.com/vshulya/support_chrome_extension.git
- Navigating to the Backend folder
cd chrome-extension-backend
- Install the required Python packages
pip install -r requirements.txt
-
Change the name of example env to .env and replace your_openai_api_key_here with your actual OpenAI API key and your_django_secret_key_here with your django secret key.
-
Run the Django server
python manage.py runserver
The backend API is now running and ready to receive requests from the Chrome extension.
- Navigating to the Chrome extension folder
cd ..
cd .\support_guy\
-
Open Google Chrome, and navigate to
chrome://extensions
. -
Enable "Developer mode" by toggling the switch in the top right corner.
-
Click the "Load unpacked" button and select the directory Support_guy.
-
The Gmail Auto-Responder extension should now be visible in your list of Chrome extensions.
-
Ensure that the backend API is running and accessible. Update the
apiURL
variable in thebackground.js
file with the correct API endpoint.
const apiURL = "http://127.0.0.1:8000/generate_response/";
Once the server is running:
-
Open Gmail in Google Chrome.
-
Navigate to an email thread.
-
Click the "Generate Response" button that appears below the email content.
-
Wait for the response to be generated and inserted into the reply composer.
-
Review the generated response and click "Send" to send the email.
This project is licensed under the MIT License.