Skip to content

Latest commit

 

History

History

contoso-real-estate

page_type languages products name description urlFragment
sample
yaml
json
js
copilot
ms-copilot
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

Learn to build an API plugin for Microsoft Copilot - Contoso real estate

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.

Local development

  1. Clone this repository.
  2. At a command prompt, enter cd contoso-real-estate to change to this sample's directory.
  3. Enter npm install to install dependencies.
  4. Enter node server.js to start the server. The server starts on port 8080.
  5. Test the API, such as by sending a request to http://localhost:8080/get-listings?city=Paris&bedrooms=3.

Testing the plugin

To use and test this API plugin in Copilot in Bing, see Test and debug an API plugin.