I need to change the default answer in the QnA Maker. I changed it in the configuration of the QnA App Service as seen here:
When I try it in the QnA Maker Portal I get the new default answer:
The problem is that when I try it in a channel like Microsoft Teams(or any other one), the default answer is not the new default answer:
My Microsoft Teams version is 1.2.00.27559 (64-bit)
One more way of changing your default answer to have it reflected it in different channels is to try through the Azure portal:
Go to the Azure portal and navigate to the resource group where your QnA Maker service was created.
Click on the specific App Service.
Once the QnA MAker App Service opens up, click on the Configuration option under the Settings blade on the left pane.
Under Application settings, you will find the DefaultAnswer setting. Double click on the DefaultAnswer option and it will open up the Add/Edit application setting where you can change the value(your default answer) and click on OK.
Click on Save and then Refresh the app service.Now, try testing the default answer on any channel.
Also, note that when you are making the changes in the qnamaker portal, make sure that you save, train and publish the app else the settings may not show the updated changes.
Hope this helps.
To change the default answer of a QnA Bot in a channel like Microsoft Teams, we have to change it in its source code. To access the source code, head to the Bot App Service and in the left hand blade look for the App Service Editor in the Development Tools tab:
Once there, we have to look for the Dialog folder and open up the QnAMakerBaseDialog file:
Now, we have to edit the DefaultNoAnswer const:
Then, we have to build the solution in the code editor. To do that, click the console icon on the left vertical menu, type "build.cmd" in the console and hit enter. This action should build and deploy your code.
If you have any issues building it this way, you can build it also from the App Service panel, going to Console, under the Development Tools tab(where the App Service Editor was)
Finally, the default answer should be displayed correctly. If not, restart the app service in the Azure portal and the new default answer should work fine!
Related
Hi my organisation has been creating an app on microsoft teams that allows users to view glpi website inside of a teams tab. The app in itself is just a shortcut to make it easier for the users to navigate through teams.
We need to use an html file with java script in it so that the app redirects to the website in a tab as microsoft teams doesn't allow us to show external website inside of a teams app.
My question is the following : Is it possible that when as a user i click the app button and the redirection to the website tab happens, that this tab automatically expands so that it take all the space inside the teams client. I want it to trigger the "expand the tab" option. (I accept whatever solution you may find because i haven't been able to find something relevant)
This was my first post i thank you for you time and effort and for reading me, have a nice one.
(I tried my best to review this before posting but i'm not sure that i haven't made any mistakes).
I have tried a bunch of useless edits...
There doesn't seem to be any graph API available for pin an App.
We have app related graph API available for add app to team and install app to user.
Ref Doc: https://learn.microsoft.com/en-us/graph/api/team-post-installedapps?view=graph-rest-1.0&tabs=http
https://learn.microsoft.com/en-us/graph/api/userteamwork-post-installedapps?view=graph-rest-1.0&tabs=http
To redirecting your Tab in application you can use deeplink to Tab of an application.
Reference Document: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-link-application?tabs=teamsjs-v2#generate-a-deep-link-to-your-tab
I'm currently learning Teams development and I just installed the Teams Toolkit extension. Following the quickstart guide, launching the app opens my browser with the Teams web app and the message
App not found, Please verify the app and it's[sic] access
permissions.
Fortunately, this app can still be launched when selecting the "Preview in Teams" option in the Developer Portal.
Quoting the GettingStarted.txt:
If you Start Debugging in a browser and Teams shows the message "App not found, Please verify the app and it's access permissions", it means the app hasn't been uploaded to Teams Dev Portal. To resolve this, follow the steps in the Quick start section above. The Project > TeamsFx > Configure for SSO menu command will do this step for you.
Except it was successfully uploaded to Dev Portal.
What I did
Did this "Configure for SSO" thing. No problems with that and the app was successfully added to the Developer Portal.
Where I searched for an answer
VS Marketplace page for Teams Toolkit (Reviews, Q&A)
Github page (issues) for Teams Toolkit
This very site - Stack Overflow.
Obviously, I'm not 100% sure that I haven't missed anything.
Temporary solution
In the meantime, I set the "launchBrowser" property to "false" in launchSettings.json. However, it's a waste of time to constantly go back to the Developer Portal to launch it, especially when the functionality is there.
Visual Studio 2019, Microsoft Development Account.
Thanks in advance.
We tried to repro this issue at our end and it is working fine for us. Could you please make sure app is opened in same tenant with which you configured for SSO. Also please remove all credentials from cache to make sure its not taking another credentials and try again.
Assuming nothing else was changed from the new project template, there are a few things you can try to narrow down the issue.
Open your browsers web dev tools and watch the console after clicking the Add button (before you see the error message). Sometimes a useful error message from the developer portal helps identify the issue.
Verify that when Visual Studio launches the URL, the correct tenant is loaded in Teams.
Run the project in VS, then manually navigate in your browser to the endpoint of your tab that you expect to work. It would be something like https://localhost:44357/tab by default (the value is in the manifest.json). The sample won't work completely because it's not running inside Teams, but you should be able to verify it's working locally.
If none of that helps, please log an issue on the GitHub page and we can investigate a bug.
I want to test the Calling API of Teams, when enabling Calling Bot function in App Studio, there is a hint as below:
Calling endpoint
Manage the calling endpoint for your bot here.
(This feature is in beta and only available for users using the Developer Preview version of Teams.)
So I got below link to help enable Developer Preview version of Teams, but there is no the About → Developer preview menu.
//https://learn.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-intro
Enabling uploading of apps in the admin console of your tenant as described here.
Click on your profile (either in the upper right or lower left of the Teams interface) to display the Teams menu.
Select About → Developer preview.
Select Switch to Developer preview.
Has the method been changed, or I haven't the right way?
You can enable it by clicking your profile, like below.
the teams version I am using is "1.2.00.24753", Please ensure that you are using the relevant version of Teams client, and if some setting was changed in Admin Console, you can log-in again to make it work.
You can enable Developer Preview in Teams via changing the Teams policies from Admin Center.
You need to open Update policies settings and set the policy you want to use to "Enabled" (the default is "Follow Office Preview").
[enter image description here][1]
[1]: MS Teams Update policy
I would like to create an application for Microsoft Teams but I don't understand what capability I have to exploit.
I would like the application to be called up from the application bar and opened to full screen.
The same behavior that occurs for the "App Studio" application.
I need to bring something that is not accessible, either by chat or tea; the app should manage a flow in a personal window.
I looked at the manifest definition document but found nothing.
https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema
I would like to replicate the application behavior like AppStudio or Microsoft Planner, to name a few.
For example App Studio
A possible alternative, could be to insert a button in the chats and open a popup with the configuration page.
I saw this behavior for the AzureDevOps extension.
Unfortunately this also seems to be a capability not available.
Azure DevOps
Do you have any idea how to do it?
Thanks a lot
Correct solution is static tab for personal use.
Complete answer
I'm trying to learn how to create a Microsoft Teams app following their getting started guide:
https://learn.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-nodejs#ComposeRichMessages
Using the source code from here: https://github.com/OfficeDev/msteams-samples-hello-world-nodejs
I also read the specific docs here:
https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/messaging-extensions
I have the app configured and packaged and side-loaded. The tabs and bot are functioning normally. However, the compose extension ellipsis button never shows up.
Supposedly, all I should need to do is set the correct botId in the composeExtensions section of the manifest.json. I did that, but it's still not showing up.
I have no clue how to troubleshoot this.
Thanks!
According to the docs...
Important
messaging extensions are available only in Public Developer Preview. Many details in this document are subject to change.
That links to:
What is the Public Developer Preview for Microsoft Teams?
https://learn.microsoft.com/en-us/microsoftteams/platform/resources/general/developer-preview