Skip to content

Commit 7be0102

Browse files
authored
Update README.md
1 parent 8d75c6d commit 7be0102

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

README.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# Automate_Google_Docs_Using_AI_API
1+
# RayeedAI: Google Docs Integration with OpenAI API
2+
3+
## Overview
4+
RayeedAI is a Google Apps Script that integrates OpenAI's API into Google Docs, allowing users to interact with AI for various applications, such as content generation, summarization, and assistance within documents. This script enhances productivity by leveraging AI capabilities directly within the Google Docs environment. I will be showing you how you can also make a pesonalized Bot for youself or others.
5+
6+
## Features
7+
- **Chat AI:** Interact with the AI to generate responses based on selected text within your Google Document.
8+
- **Conversation History:** Maintains a history of interactions for context-aware responses.
9+
- **Customizable:** Easily modify the model type and parameters to suit your needs.
10+
11+
## Requirements
12+
- A Google account with access to Google Docs.
13+
- An OpenAI API key. Obtain your API key from [OpenAI](https://openai.com/index/openai-api/) (a nominal fee may apply).
14+
- Basic knowledge of JavaScript and Google Apps Script for customization.
15+
16+
## Setup Instructions
17+
18+
Follow these steps to set up RayeedAI and integrate OpenAI's API with Google Docs:
19+
20+
### 1. Get an OpenAI API Key
21+
- Sign up at [OpenAI](https://openai.com/index/openai-api/) if you don't already have an account.
22+
- After logging in, navigate to the API section and create a new API key.
23+
- Save this API key for later use.
24+
25+
### 2. Open Google Docs and Launch Apps Script
26+
- Open a new or existing Google Document.
27+
- Go to the menu and click on `Extensions` -> `Apps Script` to open the Google Apps Script editor.
28+
29+
### 3. Add the Script
30+
- In the Apps Script editor, delete any code that appears by default.
31+
- Copy the code from the `AI_API_into_Google_Docs.js` file in this repository.
32+
- Paste the copied code into the Apps Script editor.
33+
34+
### 4. Configure the API Key
35+
- In the pasted code, locate the line:
36+
```javascript
37+
const apiKey = "YOUR API KEY"; // Replace this placeholder
38+
- Input your Open AI API key into "YOUR API KEY"
39+
### 5. Enjoy using AI into your specific document
40+
- Save the js file and run the file.
41+
- Do not worry if it shows error into the code after running.
42+
- Go to the document, refesh the site and you should be able to find the AI named anything you want.

0 commit comments

Comments
 (0)