This template repository will help you bootstrap your ChatGPT plugin development in NodeJs / Typescript. It provides a simple example of a Todo plugin for ChatGPT. The plugin allows users to add, retrieve, and delete Todo items for different usernames, following the original OpenAI python example.
Get a todo list ChatGPT plugin up and running in under 5 minutes using NodeJS. If you do not already have plugin developer access, please join the waitlist. This is similar to the python sample from OpenAI
I would also suggest you to read the plugin documentation from OpenAI if you havn't done this yet.
- Add Todo items for a specific user
- Retrieve Todo items for a specific user
- Delete Todo items for a specific user
- Clone the repository:
git clone https://github.com/etherlegend/chatgpt-plugin-node-todo.git
cd chatgpt-plugin-node-todo
- Install the required dependencies:
npm install
For development:
npm start
Once the local server is running:
- Navigate to https://chat.openai.com.
- In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
- Select "Plugin store"
- Select "Develop your own plugin"
- Enter in
localhost:5003
since this is the URL the server is running on locally, then select "Find manifest file".
The plugin should now be installed and enabled! You can start with a question like "What is on my todo list" and then try adding something to it as well!
- URL:
/todos/:username
- Method:
POST
- URL Params:
username
(string) - Data Params:
{ "todo": "A todo item" }
- Success Response:
200 OK
- URL:
/todos/:username
- Method:
GET
- URL Params:
username
(string) - Success Response:
200 OK
with JSON array of todos
- URL:
/todos/:username
- Method:
DELETE
- URL Params:
username
(string) - Data Params:
{ "todo_idx": 0 }
(index of the todo item to delete) - Success Response:
200 OK
Contributions are welcome! Please create a fork of this repository, make your changes in a new branch, and submit a pull request.
This project is licensed under the MIT License.