This MS Teams app allows users to view their emails and analyze their sentiments using Azure Open AI Text Analytics. It also provides the ability to summarize the emails using Azure Open AI Completion model.
- View Emails: Display a list of user's emails from their Outlook inbox.
- Sentiment Analysis: Analyze the sentiment (positive, negative, neutral) of each email.
- Email Summarization: Generate a summary of the email content using the completion model.
- Filter by Sentiment: Filter the emails based on sentiment (positive, negative, neutral).
- Create an Azure Text Analytics resource and obtain the API endpoint and access key.
- Create an Azure Open AI resource and obtain the API endpoint and access key for the Completion model.
- Update the following variables with your Azure API and Open AI credentials:
textAnalyticsEndpoint
: Azure Text Analytics API endpointtextAnalyticsApiKey
: Azure Text Analytics access keysummaryEndpoint
: Open AI Completion API endpoint
- Node.js, supported versions: 16, 18
- An M365 account. If you do not have M365 account, apply one from M365 developer program
- Set up your dev environment for extending Teams apps across Microsoft 365
Please note that after you enrolled your developer tenant in Office 365 Target Release, it may take couple days for the enrollment to take effect.
- Teams Toolkit Visual Studio Code Extension version 5.0.0 and higher or TeamsFx CLI
Follow below instructions to get started with this application template for local debugging.
- Press
F5
or use theRun and Debug Activity Panel
in Visual Studio Code. - Select a target Microsoft 365 application where the personal tabs can run:
Debug in Teams
,Debug in Outlook
orDebug in the Microsoft 365 app
and click theRun and Debug
green arrow button.
- Executing the command
teamsfx provision --env local
in your project directory. - Executing the command
teamsfx deploy --env local
in your project directory. - Executing the command
teamsfx preview --env local --m365-host <m365-host>
in your project directory, where options form365-host
areteams
,outlook
oroffice
.