OfficeDev / Copilot-for-M365-Samples

Microsoft Copilot for Microsoft 365 samples

Home Page:https://aka.ms/extendcopilotm365

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample is not working in Teams Copilot (M365 Chat) but working in Message Extension from chat

ChetanSharma-msft opened this issue · comments

Sample

msgext-multiparam-ts

Description

I am able to run the sample locally and ME is working from chat and able to debug the code.
App is not working in M365 chat even after enabling the plugin.

https://github.com/OfficeDev/Copilot-for-M365-Plugins-Samples/tree/main/samples/msgext-multiparam-ts

Steps to reproduce

Setup the sample locally.
Search the prompt in Teams Copilot (M365 Chat)
Debugging is not coming here:

image

Expected results

Should get the response in M365 Chat

Actual results

It is not searching the prompts in the actual application.

Additional Info

No response

Any updates on this isssue?

Are you able to share the prompt that you are using to trigger the plugin?

If the ME is working in Teams, then it's more likely an issue with Copilot than with the sample itself.

Are you able to use any other plugin with Copilot?

Are you able to confirm that you meet the requirements for developing plugins for Copilot in your tenant? See https://learn.microsoft.com/microsoft-365-copilot/extensibility/prerequisites

@ChetanSharma-msft have you tried the message extension in Outlook?

Copilot and Outlook use the same bot channel, Microsoft 365. If the message extension is not working in Outlook then check the configuration of the bot in the dev.botframework.com portal, it should look like this.

image

I have seen in the past where the Microsoft 365 channel is not configured on the bot but the plugin is displayed in Copilot, like what you are seeing.

I just pushed an update to make the the query parameter retrieval code more robust.

@ChetanSharma-msft are you still facing issues?