Skip to content

rajvirtual/email-trackr-open-ai

Repository files navigation

MS Teams Email Sentiment Analyzer & Summarizer

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.

Features

  • 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).

MS Teams App Demo

Configuration

  1. Create an Azure Text Analytics resource and obtain the API endpoint and access key.
  2. Create an Azure Open AI resource and obtain the API endpoint and access key for the Completion model.
  3. Update the following variables with your Azure API and Open AI credentials:
    • textAnalyticsEndpoint: Azure Text Analytics API endpoint
    • textAnalyticsApiKey: Azure Text Analytics access key
    • summaryEndpoint: Open AI Completion API endpoint

Prerequisites

Getting Started

Follow below instructions to get started with this application template for local debugging.

Test your application with Visual Studio Code

  1. Press F5 or use the Run and Debug Activity Panel in Visual Studio Code.
  2. Select a target Microsoft 365 application where the personal tabs can run: Debug in Teams, Debug in Outlook or Debug in the Microsoft 365 app and click the Run and Debug green arrow button.

Test your application with TeamsFx CLI

  1. Executing the command teamsfx provision --env local in your project directory.
  2. Executing the command teamsfx deploy --env local in your project directory.
  3. Executing the command teamsfx preview --env local --m365-host <m365-host> in your project directory, where options for m365-host are teams, outlook or office.

References

About

MS Teams App to analyze email sentiments and summarize emails using Open AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published