Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update msgext-northwind-inventory-ts Labs Exercise 3 & 4 #141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Here are some prompts to try that use only a single parameter of the message ext

* "Find information about Chai in Northwind Inventory"

* "Find discounted seafood in Northwind. Show a table with the products, supplier names, average discount rate, and revenue per period."
* "Find discounted seafood in Northwind Inventory. Show a table with the products, supplier names, average discount rate, and revenue per period."

See if this last one also locates any of the documents you uploaded to your OneDrive.

Expand All @@ -60,7 +60,7 @@ Feel free to try making up your own prompts. You'll find that they only work if

In this exercise, you'll try some prompts that exercise the multi-parameter feature in the sample plugin. These prompts will request data that can be retrieved by name, category, inventory status, supplier city, and stock level, as defined in [the manifest](../appPackage/manifest.json).

For example, try prompting "Find Northwind beverages with more than 100 items in stock". To respond, Copilot must identify products:
For example, try prompting "Find Northwind Inventory beverages with more than 100 items in stock". To respond, Copilot must identify products:

* where the category is "beverages"
* where inventory status is "in stock"
Expand All @@ -80,17 +80,17 @@ By using this prompt, Copilot might look also in your OneDrive files to find the

Here are some more prompts to try:

* "Find Northwind dairy products that are low on stock. Show me a table with the product, supplier, units in stock and on order."
* "Find Northwind Inventory dairy products that are low on stock. Show me a table with the product, supplier, units in stock and on order."

* "We’ve been receiving partial orders for Tofu. Find the supplier in Northwind and draft an email summarizing our inventory and reminding them they should stop sending partial orders per our MOQ policy."
* "We’ve been receiving partial orders for Tofu. Find the supplier in Northwind Inventory and draft an email summarizing our inventory and reminding them they should stop sending partial orders per our MOQ policy."

* "Northwind will have a booth at Microsoft Community Days in London. Find products with local suppliers and write a LinkedIn post to promote the booth and products."
* "Northwind Inventory will have a booth at Microsoft Community Days in London. Find products with local suppliers and write a LinkedIn post to promote the booth and products."

Request an enhancement by prompting,

"Emphasize how delicious the products are and encourage people to attend our booth"

* "What beverage is high in demand due to social media that is low stock in Northwind in London. Reference the product details to update stock."
* "What beverage is high in demand due to social media that is low stock in Northwind Inventory in London. Reference the product details to update stock."

Which prompts work best for you? Try making up your own prompts and observe your log messages to see how Copilot accesses your plugin.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ We will use a lot of the code created for the other handlers.
const COMMAND_ID = "companySearch";
```

2. Replace the content of **handleTeamsMessagingExtensionQuery** with:
3. Change line 7 to:
```javascript
import { searchProductsByCustomer } from "../northwindDB/products";
```

4. Replace the content of **handleTeamsMessagingExtensionQuery** with:
```javascript
{
let companyName;
Expand Down