# Microsoft Bot Framework

Make sure you have a successfully published Microsoft Bot in Azure Cloud. If you do head out to [#publish-your-bot](#publish-your-bot "mention") section. If you don't continue reading.&#x20;

### Create your bot

Use Botframework Composer to create and manage your chatbot.

<figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FHiD47NQQvbBWytm3gB8z%2Fimage.png?alt=media&#x26;token=0522afb5-bfc5-4d3c-bee4-7ee1ef80d668" alt=""><figcaption></figcaption></figure>

**QuickStart**: Use this tutorial: <https://learn.microsoft.com/en-us/composer/quickstart-create-bot> .

{% hint style="warning" %}
If you're using LUIS and/or QnA (eg. when you use Core Assistant template) make sure to also enable and configure their credentials in the 'Configure' tab.
{% endhint %}

<figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FTYXyvHserafTVwGJSSa5%2Fimage.png?alt=media&#x26;token=cb10753e-9a39-4c56-8c49-18a3b824ad0b" alt=""><figcaption><p>Azure QnA Maker configuration</p></figcaption></figure>

<figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FIFOl5N474A2tVH9y4skx%2Fimage.png?alt=media&#x26;token=f8626431-dc6d-4731-b70a-205ec15b5323" alt=""><figcaption><p>Azure Language Understanding (LUIS) configuration</p></figcaption></figure>

### Publish your bot

* In Botframework Compose, make sure to create Publish Target and publish created bot to your Azure Cloud.

<figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FRl6RzkWn0RT2erKwmqeS%2Fimage.png?alt=media&#x26;token=bc6f5578-fde5-4ccd-adf4-ba56237078b9" alt=""><figcaption></figcaption></figure>

* Once your Bot is published, head to your [Azure Console Bot Services](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/AppliedAIHub/~/BotServices), select your deployed Bot, and Enable "Direct line" channel.

<figure><img src="https://mail.google.com/mail/u/0?ui=2&#x26;ik=da30a81594&#x26;attid=0.1&#x26;permmsgid=msg-a:r-8345254315710113832&#x26;th=18337d8e39b93a49&#x26;view=fimg&#x26;fur=ip&#x26;sz=s0-l75-ft&#x26;attbid=ANGjdJ8pi506bQWuI5o8z48eOL0_brm3zsWchZClX2twi3DVzv9D377K4OIeKNpZI_fFCgj2CLiFaR5wlXJD_NXF2wqktqC8OgbkRt3cwOuQsbQ5vbbyVPYC_OEhd_E&#x26;disp=emb&#x26;realattid=ii_l80gbove0" alt=""><figcaption></figcaption></figure>

* Use "Default site" or create a dedicated "New Site" (version 3.0) and copy one of the generated 'Secret Keys' in your Being Dashboard

<figure><img src="https://mail.google.com/mail/u/0?ui=2&#x26;ik=da30a81594&#x26;attid=0.2&#x26;permmsgid=msg-a:r-8345254315710113832&#x26;th=18337d8e39b93a49&#x26;view=fimg&#x26;fur=ip&#x26;sz=s0-l75-ft&#x26;attbid=ANGjdJ_ejc3oiXhVqtAohwuBoIdYxuX8sQyQyhYKbvLFhs1ovtj4yf0eapygnLkizQfEOXmq7aCrORgwwSCRJgfTIgGlb_1DNGRCTtDLJ3i-QiNeTCYU1EZPx4Bfbsc&#x26;disp=emb&#x26;realattid=ii_l80gefqr1" alt=""><figcaption></figcaption></figure>

### Configure your engine in Virbe Dashboard

* Head out to your dashboard, select "Free flow engine" and select "Change Conversation Engine" : <https://your-url.virbe.app/dashboard/conversation-engine/edit>

  <figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2FqtnxZz0uCvqVSNmre1zH%2Fimage.png?alt=media&#x26;token=e3c3e012-6f5a-49af-97a1-32ab28ca0aa1" alt=""><figcaption></figcaption></figure>
* Paste copied Secret key to Microsoft Bot Framework configuration view<br>

  <figure><img src="https://1213579860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MaU7JJyoXT5PfhTD9dJ%2Fuploads%2Fgs6vh461axCPLaLPEWpC%2Fimage.png?alt=media&#x26;token=57d09496-875b-445e-bf46-ad6b192d1c29" alt=""><figcaption></figcaption></figure>

Your being will from now on use your Microsoft Bot as conversational AI. Test it out in Web widget, Virbe Beings Mobile App or in Virbe Digital Signage app.
