Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
page_type description products languages extensions urlFragment
sample
Microsoft Teams meeting extensibility sample for iteracting with Side Panel in-meeting
office-teams
office
office-365
nodejs
contentType createdDate
samples
07-07-2021 13:38:27
officedev-microsoft-teams-samples-meetings-sidepanel-nodejs

Meetings SidePanel

This sample illustrates how to implement Side Panel In-Meeting Experience.

Interaction with app

Preview Image

Prerequisites

  • Node.js version 10.14 or higher

    # determine node version
    node --version
  • Teams Microsoft Teams is installed and you have an account

Setup

  • Register an AAD app in Azure portal and also register a bot with Azure Bot Service, following the instructions here.

  • Ensure that you've enabled the Teams Channel

  • While registering the bot, use https://<your_ngrok_url>/api/messages as the messaging endpoint.

    NOTE: When you create your bot you will create an App ID and App password - make sure you keep these for later.

  1. Run ngrok - point to port 3001 (pointing to ClientApp)

    # ngrok http -host-header=rewrite 3001
  2. Clone the repository

    git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git
  3. Open .env file from this path folder (samples/meetings-sidepanel/nodejs/server) and update MicrosoftAppId, MicrosoftAppPassword information with values generated values while doing AAD App Registration.

  1. Install node modules

    Inside node js folder, navigate to samples/meetings-sidepanel/nodejs/server open your local terminal and run the below command to install node modules. You can do the same in Visual Studio code terminal by opening the project in Visual Studio code.

    • Repeat the same step in folder samples/meetings-sidepanel/nodejs/ClientApp
    npm install
  2. We have two different solutions to run, so follow below steps:

  • In a terminal, navigate to samples/meetings-sidepanel/nodejs/server folder, Open your local terminal and run the below command to install node modules. You can do the same in Visual studio code terminal by opening the project in Visual studio code
npm install
npm start

If you face any dependency error while installing node modules, try using below command

npm install --legacy-peer-deps
  • In a different terminal, navigate to samples/meetings-sidepanel/nodejs/ClientApp folder, Open your local terminal and run the below command to install node modules. You can do the same in Visual studio code terminal by opening the project in Visual studio code
cd client
npm install
npm start

If you face any dependency error while installing node modules, try using below command

npm install --legacy-peer-deps
  1. Run your app, either from Visual Studio code with npm start or using Run in the Terminal.
  1. Setup Manifest for Teams (This step is specific to Teams.)
    • Edit the manifest.json contained in the teamsAppManifest folder and replace your Microsoft App Id (that was created when you registered your app earlier) everywhere you see the place holder string <<YOUR-MICROSOFT-APP-ID>> (depending on the scenario the Microsoft App Id may occur multiple times in the manifest.json)

    • Edit the manifest.json for configurationUrl inside configurableTabs . Replace {{BASE-URL}} with base Url domain. E.g. if you are using ngrok it would be https://1234.ngrok.io then your domain-name will be 1234.ngrok.io.

    • Update the manifest.json for validDomains with base Url domain. E.g. if you are using ngrok it would be https://1234.ngrok.io then your domain-name will be 1234.ngrok.io.

    • Update the manifest.json for <<Manifest-id>> with any GUID or with your MicrosoftAppId, generated during App registration in Azure portal.

    • Zip up the contents of the teamsAppManifest folder to create a manifest.zip (Make sure that zip file does not contains any subfolder otherwise you will get error while uploading your .zip package)

    • Upload the manifest.zip to Teams (In Teams Apps/Manage your apps click "Upload an app". Browse to and Open the .zip file. At the next dialog, click the Add button.)

Running the sample

Interacting with the app in Teams Meeting

Interact with SidePanel by clicking on the App icon present on the top menu beside the "more actions" during a meeting.

  1. Once the app is clicked, sidepanel appears with the default agenda list. Only organizer gets the feasibility to add new agenda points to the list using "Add New Agenda Item" button.

Dashboard

  1. On click of "Add" button, agenda point will be added to the agenda list by organizer.

AddNewAgendaItem

AddedNew

  1. On click of "Publish Agenda", the agenda list will be sent to the meeting chat.

Notification

User interactions(Meeting Organizer)

  • Add New Agenda Item - Gives provision to add new Agenda point.
  • Add - Adds the agenda from Textinput to the SidePanel agenda list.
  • Publish Agenda - Sends the agenda list to the meeting chat.

Deploy the bot to Azure

  • To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.

Further Reading.