Articles → MICROSOFT BOT FRAMEWORK → Hosting The Bot On Microsoft Teams

Hosting The Bot On Microsoft Teams






Steps




  1. Open Microsoft Teams and click on the "apps" icon.
  2. Picture showing the apps icon in Microsoft teams
    Click to Enlarge

  3. In the apps window, search "App Studio" and install it.
  4. Picture showing searching the App Studio in the apps screen
    Click to Enlarge

  5. In the "App Studio", click on the "Manifest Editor" tab.
  6. Picture showing the Manifest Editor tab of the App Studio
    Click to Enlarge

  7. Click on the button "Create a new app".
  8. A window will appear to enter the details about the application. First, enter the "Short Name", "Full Name", "App ID", "Package Name" and "Version" field.
  9. Picture showing the screen to create a new app
    Click to Enlarge

  10. Post that scroll down and fill in the following information - "Short Description", "Full Description", "Developer/ Company Name" and "Website".
  11. Picture showing the screen to create a new app
    Click to Enlarge

  12. Finally, add the "Privacy Statement" and "Terms of use" fields.
  13. Picture showing the screen to create a new app
    Click to Enlarge

  14. Once the information is filled in the form, click on the "Bot"option on the left-hand side menu.
  15. Picture showing the Bot option after the app is created
    Click to Enlarge

  16. Click on the "Set up"button.
  17. A window will appear where you can specify the bot name and other bot settings.
  18. Picture showing the Set up a bot screen
    Click to Enlarge

  19. Click on the "Create bot" button.
  20. Another screen will appear where you can enter the messaging endpoint. Please note that App Id and password are already generated. You can note it down.
  21. Picture showing a screen to enter the message endpoint
    Click to Enlarge

  22. In the messaging endpoint field, press the enter key after entering the endpoint. A tick mark will appear in the textbox.
  23. Picture showing the tick mark icon besides the messaging endpoint field
    Click to Enlarge

  24. On the left-hand side menu, click on the option "Domains and Permissions".
  25. Picture showing the Domains and Permissions menu
    Click to Enlarge

  26. Inside the "Domains and permissions" tab, enter the ngrok URL in "Valid Domains" section and click on the "Add" button.
  27. Picture showing a field to enter ngrok URL
    Click to Enlarge

  28. Finally, in the "Test and distribute" tab, click on the "Download" button.
  29. Picture showing the Download button in Test and distribute tab
    Click to Enlarge

  30. Now, go to the "Apps" tab again and click on the "Upload a custom app" → "Upload for Default Directory".
  31. Picture showing the Upload for Default Directory option
    Click to Enlarge

  32. A window will appear to select the ZIP file. The zip file contains the manifest file and icon images.
  33. Picture showing the content of the ZIP file
    Click to Enlarge

  34. An application gets added in the default directory.
  35. Picture showing the application uploaded in the default directory
    Click to Enlarge

  36. Click on the app and then click on the "Add" button to add the application.
  37. Picture showing the Add button for adding the application
    Click to Enlarge



Output




Picture showing the username and password in the appsettings.json file
Click to Enlarge





Picture showing the output of bot in microsoft teams
Click to Enlarge


App Manifest




Picture showing the content of manifest.json file
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, January 13, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250