😎
How to create efficient ChatGPT plugins on Blobr?
Some details on how to create and share your ChatGPT plugins.
ChatGPT Plugins unlock a vast range of possible use cases. By adding a plugin to ChatGPT, the model is instructed about how to use the data you've allowed the model to use.
- Connect your API and make sure you do that by adding an enriched Open API file. As Chat GPT will scan your Open API file to understand how to perform actions and give you the most appropriate answers it can. The richer your API file, the better. Details of how to connect an API from there.
.png?alt=media&token=8f550103-ab99-49ad-a29d-9e5fe0a672ec)
API Product > Definition file upload step
- Create an API Product on which you toggle "ChatGPT Plugin" at the very first step ("Details"). Details of how to create an API Product from there.

API Product > Details Step
- When your API Product has been created, make sure you stay on the API Product edition page and add a tagline to your API Product. To do this, click on "Edit" on the Preview section. Fill in the field called "Tagline". The tagline will both be used in the manifest for the fields called "description for human" and "description for model". It should be a description tailored to the model, that gives insights about what the plugin does.

Edition of API Product preview
.png?alt=media&token=84557c78-3698-45cb-9c1b-a2b2f9c219da)
Example of tagline that will be used in the ChatGPT manifest file
That's it. Your plugin has been created. Now, how to put yourself in the shoes of end users and actually retrieve the plugin to use it on Chat GPT?
- Subscribe to the Plugin API Product. On the Overview page of the API Product, you will see "Manifest file" and "Plugin base URL". Copy the Plugin base URL.

- Go to your ChatGPT account and click on "New chat", then "GPT-4" and "Plugins".
.png?alt=media&token=ddb5dcdf-7d95-4961-9a64-d039ca21cf70)
- Click on the arrow next to "Plugin store"

- Click on "Develop your own plugin"

- Make sure you have access to the Chat GPT plugin creation option. Copy paste the Plugin base URL that you have retrieved from the developer portal (API Product Overview section) and click on "Find manifest file".
.png?alt=media&token=354b7d0d-82f5-4422-8f08-6941125aa687)
- ChatGPT will retrieve the attached plugin. Click on "Next".
.png?alt=media&token=e5d26107-f1c8-4b9d-805b-bbe85750f4d2)
- You can see the details of how ChatGPT works here. To make sure your plugin can be used as soon as possible, click on "Install for me".

- Make sure you agree and then click on "Continue".

- Enter your API key, that you can retrieve directly from the API Product section (Authentication section). You need to copy paste the primary API key. Click on "Install plugin".
.png?alt=media&token=712d425d-2a25-4dbf-a632-c691e1c6d513)
Congrats, your first ChatGPT plug in has been added. You can now ask questions to ChatGPT and the model will use the API to give the best answers it can.
A quick example below:
.png?alt=media&token=244f06d2-d26a-4fc4-b25c-b55aa2d2205b)
- Reduce response payload size Trim down the size of the API responses to include the most relevant and necessary information. That will ensure your plugin works within the context of ChatGPT and delivers faster responses.
- Optimize API query parameters Use the most efficient query parameters in your API to reduce the amount of data being processed and returned. This can help improve the performance of your plugin and reduce the likelihood of reaching rate limits.
- Test several descriptions and instructions Find the most effective way for the LLM to understand and use your plugin.
- Maintain and iterate on your plugin Work on improving the descriptions in your OpenAPI specs. The specs will be used by ChatGPT to interact with your plugin. Monitor your plugin's performance and feedback to identify issues and areas of improvements. Keep your Open API file up-to-date so that it keeps providing your teams or your end users value.
Last modified 4mo ago