Search code examples
azuresharepoint-2010sharepoint-2013botsazure-qna-maker

How to link Azure Bot with SharePoint?


I'm working on a bot service where we need to place the Bot in SharePoint Site. I have created a QnA Bot in Azure with sample KB and is working fine. Now i need the integration, can someone put some light on how I can achieve this ? Any links or documentation or tips will be helpful.


Solution

  • I managed to embed chatbot on SharePoint using iFrame. We can get the embed code by navigating to

    1. Bot channel registration in Azure.
    2. Channels
    3. Choose the channel you need embed code for. (In my case I chose webchat)

    You can will get code like below

    <iframe src='https://webchat.botframework.com/embed/MyBotChannelReg?s=YOUR_SECRET_HERE'></iframe>
    
    1. Copy any of the secret-key from above boxes and place the code in embed web part in SharePoint online.

    you can adjust width and height of the chat box by adding width and height with iFrame code.