Skip to content

Streamlit chat interface for Microsoft Copilot Studio using M365 Agents SDK

Notifications You must be signed in to change notification settings

Roelzz/streamlit-copilot-studio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit Copilot Studio Client

Web chat interface for Microsoft Copilot Studio agents.

Prerequisites

  • Python 3.9+
  • A published Agent in Copilot Studio
  • An Azure Entra ID app registration

Azure App Setup

  1. Create an app registration in Azure Portal
  2. Add a Single-page application (SPA) redirect URI: http://localhost:8501
  3. Add API permission: Power Platform API > CopilotStudio.Copilots.Invoke

Configuration

cp .env.example .env

Edit .env with your values:

  • COPILOT_ENVIRONMENT_ID - From Copilot Studio > Settings > Advanced > Metadata
  • COPILOT_AGENT_IDENTIFIER - Agent schema name from the same location
  • AZURE_TENANT_ID - Your Azure tenant ID
  • AZURE_APP_CLIENT_ID - Your app registration client ID

Run

pip install -r requirements.txt
streamlit run app.py

Open http://localhost:8501 and sign in with Microsoft.

About

Streamlit chat interface for Microsoft Copilot Studio using M365 Agents SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%