Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 1.54 KB

README.md

File metadata and controls

70 lines (54 loc) · 1.54 KB

Email GPT as a Service

Overview

Email GPT as a Service is an email service that leverages the power of GPT-4o to answer your questions. Users can send an email to [email protected] and receive a response generated by our AI.

Screenshot

Features

  • Easy to Use: Simply send an email to [email protected] to get started. Get answers to your questions by email using OpenAI's GPT-4o model.

Getting Started

Prerequisites

  • Ruby (version 3.3.4 or later)
  • Rails (version 8.0 or later)
  • An OpenAI API key
  • Mailgun API Key and Verification Token

Installation

  1. Clone the repository:
git clone https://github.com/ankurp/TryMailGPT.git
cd TryMailGPT
  1. Install the required gems:
bundle install
  1. Set up the database:
rails db:setup
  1. Add your OpenAI API key to the Rails credentials:
EDITOR="code --wait" bin/rails credentials:edit

Add the following:

secret_key_base: ...
action_mailbox:
  mailgun_signing_key: ...
openai:
  access_token: ...
mailgun:
  api_key: ...
  1. Start the Rails server:
rails server
  1. Open your browser and navigate to http://localhost:3000 to see the landing page.

Usage

To use the service, simply send an email to [email protected]. The AI will process the email and send a response back to you.

Running Tests

To run the test suite, use the following command:

rails test

Contact

For any questions or inquiries, please contact ankurp