Skip to content

Simple script that allows you to call gpt-3 in google sheets

License

Notifications You must be signed in to change notification settings

runningdan/gpt3-google-sheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPT-3 Google Sheets Script

Simple Google Sheets script for GPT-3

Setup

  1. Open your google sheet
  2. Navigate to Extensions > Apps Script
  3. Paste in the script located in the file script.js
  4. Generate or fetch api key from your open-ai account (https://beta.openai.com/account/api-keys)
  5. Replace <OPENAI_API_KEY> with your open-ai api key.

Usage

To use this simple GPT3 app script just call the following function in your spreadsheet. The function concatenates the inputs to create a prompt which is sent to GPT3.

GPT3(arg1, arg2, ...)

Example

For this example we can assume cell C4=2 and cell D4=4 in the spreadsheet.

Spreadsheet function call

=GPT3("add", C4, "and", D4, "together")

The prompt sent to GPT-3 would be

"add 2 and 4 together"

Output

2 + 4 = 6

alt text

About

Simple script that allows you to call gpt-3 in google sheets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published