Get bot-side code in bot framework - webchat github repo - botframework

I am creating an SPFx webpart to create a chat window for SharePoint Online. Basically Azure bot service is to be used in conjunction with QnA maker service and the resultant bot should be used with the chat window. I have successfully transformed the sample available at Microsft/BotFramework-webchat github repository to create a minimizable chat window and this is working properly.
I want to show a welcome message to user as soon as user get connected with bot and for that a sample is available at /BotFramework-WebChat/tree/master/samples/15.d.backchannel-send-welcome-event 'WEB_CHAT/SEND_EVENT' is added in store but now i am not getting it that how to access 'bot-side' code to post a welcome message when above mentioned activity is received by the bot.
Any help is greatly appreciated.

Related

Refresh the microsoft teams chat with bot embedded code

I have created a bot using bot composer and I have generated bot embed URL. I have accessed the same URL in browser and it got opened successfully in Microsoft teams
Now when I have updated the bot and published in azure, I am not finding an option to refresh this same in Microsoft teams
Is there any way to refresh the session and start the chat again with new modified bot????
when you update the bot and publish it in azure, the bot ID and user Id will not change so, the chat id will be remains same in the backend and you can't refresh the chat window in teams. This is by design.

MS-Teams Deeplink to start conversation with bot

Is there any way to start conversation with bot in ms-teams via deeplinks?
I already searching within https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/deep-links and trying some links and use it with bot appsID but always failed.
#Memew You could get the link to the bot conversation by right clicking on the Microsoft Teams channel added in the bot framework where you have created your bot.
To expand on #Gousia-MSFT's answer, to find the link I went to Microsoft Azure > Bot Services > Channels and you will see the "Connect to Channels" page.

How to access the bot deployed from Microsoft Samples (bot-builder-samples)

I have created bots using the azure portal, which auto creates a bot app resource in azure. When I click on this resource via the portal, I can access the bot by opening the chat window and can try out the bot.
I also created bot using visual studio, published it to the azure web and then configured a 'bot channels registration' bot to use this published bot.
All good so far.
Now I am trying to go through the ready made Microsoft examples from: https://learn.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-samples?view=azure-bot-service-3.0
I opened the "Create new conversation" link from the above website (https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-CreateNewConversation). I scroll down and click on "Deploy to Azure" button and the deploy is successful. How do I access the bot now?
I have tried creating the 'bot channels registration' bot and setting the messaging endpoint to the https://DeployedExampleAzureWebsiteLink/api/messages. Now, when I go into this azure resource, and into the test chat window, my message does not get delivered to the bot, and same issue upon retry aswell.
How do I access this bot please?
When you click deploy to Azure you get an option to fill out the Microsoft App Id and Password.
You are supposed to enter the same App Id and Password you gave while registering the Bot in the Bot channel registration

microsoft bot framework - skype for business - error

I am using Microsoft Botframework to publish a bot (Channel Registration). When I try enabling the channels , I see the bot to be working in Slack , Skype, MS Teams & Web chat . However (despite following the steps to enable bot in SFB) I could not get the bot working in Skype for Business. I keep getting the error.
"Sorry, we ran into a problem at our end."
Neither do I see any log to debug.
Waited more than 24 hrs to ensure it is not the sync issue. But issue still remains. Any help appreciated !!
I am not clear with the error as to from which end it is being thrown.
I need you to follow the below steps:
Publish Bot in azure as an app service, through VS if you are coding through c#.
Create a "Bot channel registration" in azure and connect the above app service and Bot channel registration(simple use the URL of the app service append it with /api/messages and insert the same as messaging endpoint in Bot channel registration).
use the app id and app secret in bot solution and republish the app service.
Inside Bot channel registration click on channel and enable it for Skype for business(you will find your BOT in SFB using the credentials you have used to create the bot channel registration).
Finally got it working. What i noticed is the following
I faced the issue when I used the SIP URI as somebot#mydomain.com to register the bot in my tenant.
And i got it working when I used the SIP URI as somebot#mydomain.onmicrosoft.com.
Unsure on the reasoning though :)
And btw thanks #Tanmoy for your answer aswell !!

Creating a chat connector for communicating with the Bot Framework Service

I am trying to implement a bot in my website using the botbuilder framework for node.js. The function builder.ChatConnector() get the parameters appId and appPassword, does any one knows where can i found these appId and appPassword? It isn't clear for me in the microsoft documentation. The function is shown above:
function builder.ChatConnect
BotFramework documentation
You can find this information when you create your bot in Azure Bot Service, or when you proceed to register your bot at the dev portal.
Here's a brief walkthrough for registering through the dev portal with the minimum requirements. You'll need to fill out the name, bot handle and description for the bot as indicated below:
After this, you can scroll down and click on the button that says "Create Microsoft App ID and password".
Once you click on the button you'll be taken to a page with your bot name, your newly-generated App ID, and another button that allows you "Generate a password to continue".
After you click the button a small window will pop up with your password which you need to keep track of as it is only shown once!
NOTE: For developing and testing using the Emulator, you don't need this information just yet. You only need the AppID and password when you are making your bot public facing/deploying it.
You need to register your bot in https://dev.botframework.com/ and there you will get those values. Check this article that explains how to do that.

Resources