The ChatGPT plugin is a tool that enhances the capabilities and efficiency of the ChatGPT chatbot. With the official ChatGPT Plugin introduced by OpenAI, ChatGPT can access real-time information such as sports scores, stock market updates, or the latest headlines. It can also access knowledge base data such as company documents or personal notes, and can perform actions on behalf of the user such as booking flights or ordering food.
ChatGPT plugins can be third-party tools or native plugins provided by ChatGPT developers.
What are the ChatGPT Plug-in Application Scenarios?
Our lives definitely revolve around the basic necessities of food, clothing, shelter, and transportation. Let's focus on the topic of food for now. The process of eating can be quite complicated, as there are several factors to consider, such as:
- What to eat? This is something that many people think about throughout the day.
- Where to eat? This involves factors such as distance and price.
- How to cook your own food? This involves access to recipes, tutorials, and ingredients.
- Is the food healthy? This involves factors such as calories and fat content.
In the past, you might have used food delivery apps such as Meituan, but these apps still have a hard time figuring out what we want to eat and finding suitable options for us. After all, everyone's food preferences and requirements are unique, and these apps can't cater to everyone's needs while also offering a wide range of functions and features.
Now, imagine if every person had their own personal food butler who could answer questions such as where to eat, what to eat, how to cook food, and if the food is healthy. This one-on-one, the all-in-one butler would be able to meet each person's specific requirements and preferences.
Therefore, ChatGPT provides 3 plugins for you.
- Wolfram: Access dynamic computation, math, curated data, and expert-level knowledge.
- OpenTable: Provide recommended restaurants and book dining from the link.
- Instacart: Oreder from your favorite local grocery.
You can use a combination of all three of them to make our lives easier~
For example, want to do a few things:
I want to find some vegetarian restaurants to dine at on Saturdays;
I want to cook my own food on Sunday and would like to get the recipe to cook and calculate the calories of this recipe;
I want to pre-purchase some of the ingredients I need to cook on Sunday.
First ChatGPT will call OpenTable to help us find some restaurants that offer vegetarian food, and once you find them, you can also click in to check them out.
Then, ChatGPT calls Wolfram to help you with the calories for your cooking recipe, which is actually what you need because you have the need to count calories upfront, so ChatGPT will do that for you.
Finally, depending on your needs, ChatGPT will call the Instacart plugin to go ahead and pre-order some cooking ingredients for you based on the cooking recipes provided for you above.
After tapping into the link, you can preview the product.
You see, the "housekeeper" has done everything for me.
Studying takes up a lot of people's time, and learning is not always smooth, and everyone will encounter problems in the process of learning.
When you are at school, you can ask your teachers and your classmates, but when you get home, you ask your dad and mom, but they won't, so you can only use the Internet.
Consider how we used to use the Internet to solve learning problems:
- Look up through a browser. But always failing to look it up, comparing the answers given by the browser are not precise enough and often only give similar answers;
- Through some study tutoring software. But the question database of this software is not very sound, and each software often corresponds to a field, such as high school, examinations, or public examinations. These areas of knowledge are very difficult to do with software inside.
ChatGPT provides the Code interpreter plug-in, which is translated as a code interpreter. In fact, ChatGPT prepares a sandbox for users and uses the language Python in the sandbox to solve some computational problems of users.
With the Code interpreter, we can ask ChatGPT some questions about mathematics, because after all, mathematical problems often require a lot of calculations, for example, we can ask ChatGPT to draw a graph of the function 1/sin(x):
If you only need a partial interval of this graph, you can also ask ChatGPT to show you the graph for a partial interval area:
Not only can you take an interval, but you can also ask ChatGPT to draw a tangent line to some coordinate of this curve.
People in the workplace have a great concern for work: efficiency. Work efficiency determines a lot of things. All of you in the workplace should understand the following:
Work efficiency: decide whether you can go home early, whether you can get promoted, and whether you can have time to do your own things.
To take a small example, many people in the workplace use a tool called Excel, which is often used to make tables, but it's certainly not that simple. Leaders will often ask you to summarize report data; filter the table data; Analyze the tabular data
In fact, there are many other tasks that involve tables, and although this is something that you are already very good at, you are still thinking about how to do it in the shortest time possible.
ChatGPT provides a Code interpreter plugin that can do all these things for you. For example, here, after we upload an Excel file, you can ask ChatGPT to analyze the columns in the table for us.
Or we can ask ChatGPT to calculate for us how many rows the table has.
You can also have ChatGPT make some visual charts based on this table for you to preview and easily analyze the data.
You can even ask ChatGPT to help us calculate some values, such as the maximum value, the minimum value, the maximum value of an interval, and the minimum value, based on this table:
With ChatGPT, all you need to do is talk to it and get the latest news, instead of going to your browser and searching one by one, which may not be what you want.
One of the criticisms of ChatGPT is that the data you can access is only up to 2020, but now with Browsing, you can access the latest data through ChatGPT.
Here, for example, you can ask ChatGPT who is this year's Oscar winner and how much the winning movie grossed, and ChatGPT will give you the latest Oscar win information, not 2020 one.
When you hover over the question mark after a keyword, ChatGPT will give you the details associated with that keyword, such as the date represented by the "day" in this case, which can be displayed for you when you hover over it.
There is also very good detail. If you ask a ChatGPT question without using the plugin, then ChatGPT will not call the plugin for you, which greatly improves the speed of displaying the answer.
Important factors for developing a ChatGPT plugin
To develop a third-party plugin, you can first read these two documents
- OpenAI documentation: https://platform.openai.com/docs/introduction
- OpenAPI specification: https://platform.openai.com/docs/api-reference
ChatGPT provides the ability to develop third-party plugins, which are composed of interfaces (APIs) that we provide and which are called when ChatGPT encounters different user issues. To help ChatGPT understand how the interfaces we provide are called and responded to, we need to use the OpenAPI specification to describe the input and output parameters, HTTP methods, and other information of each API and save it as an API description file so that ChatGPT can use the corresponding OpenAPI client library to access these APIs. When developing the plug-in, developers also need to consider the security and reliability of the interface, such as using HTTPS to encrypt the API transmission and implementing an authorized authentication mechanism to ensure that only authorized users can access the API.
Examples of file data for the OpenAPI specification:
openapi: 3.0.1 info: title: To-Do List Plugin description: Description of plugin functionality version: 'v1' servers: - url: <http://www.example.com> paths: /todos: get: operationId: getTodos summary: Get To-Do List responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/getTodosResponse' components: schemas: getTodosResponse: type: object properties: todos: type: array items: type: string description: To-Do List
Apidog Supports Exporting OpenAPI Files
Apidog is an excellent API tool that allows you to export your API documentation as OpenAPI specification files. For example, if you have already written some APIs:
You can export these interfaces as OpenAPI format documentation.
Then, you will get a JSON document and export it.