https://github.com/openai/tabulate
public release of Excel / OpenAI API integration
https://github.com/openai/tabulate
Last synced: 2 months ago
JSON representation
public release of Excel / OpenAI API integration
- Host: GitHub
- URL: https://github.com/openai/tabulate
- Owner: openai
- License: mit
- Created: 2020-11-20T17:45:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-02T11:42:47.000Z (over 2 years ago)
- Last Synced: 2025-01-29T19:45:52.385Z (11 months ago)
- Language: JavaScript
- Size: 771 KB
- Stars: 120
- Watchers: 124
- Forks: 50
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAI API Excel integration
(Update 2022-05-09: This code is no longer being maintained and there are no expectations that it will work. For the most up to date documentation on our API, consider visiting https://beta.openai.com/examples or https://github.com/openai/openai-python)
This repository contains an example OpenAI API integration for Excel. It allows users to query the API to automatically generate Excel tables about topics.
For more details see the [API blog post](https://openai.com/blog/openai-api/)
The integration is an Excel TaskPane Add-in, which is structured as an HTML / CSS / Javascript web app running in an iframe. See the following links for more info:
- https://docs.microsoft.com/en-us/office/dev/add-ins/overview/learning-path-beginner
- https://docs.microsoft.com/en-us/office/dev/add-ins/excel/excel-add-ins-core-concepts
## Setup
Add your OpenAI API key and organization at the top of `excel-addin/src/taskpane.js` (search for `***KEY HERE***` and `***ORG HERE***`)
To start the local development server from the `excel-addin` directory:
- `brew install node@12` (Node LTS)
- `npm install`
- `npm run dev-server`
Open Excel for the web. Click "Insert" Menu (Ribbon) > Click "Office Add-ins" > Click "Upload My Add-in" in the upper right corner > Select `excel-addin/manifest.xml` ([source](https://docs.microsoft.com/en-us/office/dev/add-ins/testing/sideload-office-add-ins-for-testing#sideload-an-office-add-in-in-office-on-the-web))
You should see a new "OpenAI API" command group on the "Home" ribbon; click the "Tabulate" button to open the sidebar with API commands