page_type | languages | products | name | description | urlFragment | |||||
---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Contoso real estate plugin for Microsoft Copilot |
A tutorial to learn how to build an API plugin for Microsoft Copilot |
contoso-real-estate-plugin-for-microsoft-copilot |
A tutorial to learn how to build this sample API plugin can be found at Get started building an API plugin for Microsoft Copilot.
This API plugin finds real estate properties that are for sale on the market. When the user asks a question about real estate properties, Microsoft Copilot can use this plugin to find real estate properties that have matching criteria. The plugin uses hard-coded data to return results.
- Clone this repository.
- At a command prompt, enter
cd contoso-real-estate
to change to this sample's directory. - Enter
npm install
to install dependencies. - Enter
node server.js
to start the server. The server starts on port8080
. - Test the API, such as by sending a request to
http://localhost:8080/get-listings?city=Paris&bedrooms=3
.
To use and test this API plugin in Copilot in Bing, see Test and debug an API plugin.