Hi!
This one was in my top three announcements from Build 2023. We can now build Chat Plugins for Microsoft Bing and Edge. Look at this 10 min intro:
Video Summary:
- 🌍💬📚 Microsoft is bringing AI innovation to Bing Chat, including multimodal conversation, more languages, and chat history.
- 🛠🔗 Developers can create plugins to connect their services with Bing Chat and other Microsoft platforms.
- 🤝🌐 Plugins are compatible across ChatGPT, Bing Chat, and the Microsoft Copilot system, reaching a wide ecosystem of users.
- 📝👍🛠 Developers need an OpenAPI Specification documenting their API and a manifest file to participate. Once approved, plugins can be added to Bing Chat in Edge.
Creating Plugins
Microsoft is adopting the same open plugin standard that OpenAI introduced for ChatGPT, enabling interoperability across ChatGPT and the breadth of Microsoft’s copilot offerings. That means developers can now use one platform to build plugins that work across both business and consumer surfaces, including ChatGPT, Bing, Dynamics 365 Copilot, Microsoft 365 Copilot and Windows Copilot. Microsoft also announced it is bringing Bing to ChatGPT as the default search experience.
Microsoft outlines framework for building AI apps and copilots; expands AI plugin ecosystem
This is cool because we can learn more about creating plugins for ChatGPT. And based on the get started documentation, it’s easy. Creating a plugin takes three steps:
- Build an API
- Document the API in the OpenAPI yaml or JSON format
- Create a JSON manifest file that will define relevant metadata for the plugin
During Build 2023 we share a sample Python FastApi app, on how to create a plugin. I cloned the original repo and created one (here) with some updates:
- The Plugin now returns a list of pets.
- The pet information schema includes basic pet information, and the owner information.
Here is a sample:
{
"name": "Max",
"type": "dog",
"breed": "Golden Retriever",
"age": 4,
"color": "golden",
"weight": 30,
"owner": {
"name": "John Doe",
"email": "johndoe@example.com",
"phone": "+1-555-123-4567"
}
}
Testing the PlugIn in ChatGPT
Time to test in ChatGPT. Registering the plugin is super easy, and once registered and working in Dev mode, we can use natural language to interact with the plugin.
In example: We can ask which owners have a dog and a cat? Spoiler, it was me 😁
We can also ask for insights about the pets’ information. In example: which is the oldest pet?
Again, this is super cool!
Next Steps: NET PlugIn sample
Now I’m creating simple plugin in NET, almost there! I’ll share the repo and instructions soon.
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
More info in https://beacons.ai/elbruno
Top comments (0)