Web chat interface for Microsoft Copilot Studio agents.
- Python 3.9+
- A published Agent in Copilot Studio
- An Azure Entra ID app registration
- Create an app registration in Azure Portal
- Add a Single-page application (SPA) redirect URI:
http://localhost:8501 - Add API permission: Power Platform API > CopilotStudio.Copilots.Invoke
cp .env.example .envEdit .env with your values:
COPILOT_ENVIRONMENT_ID- From Copilot Studio > Settings > Advanced > MetadataCOPILOT_AGENT_IDENTIFIER- Agent schema name from the same locationAZURE_TENANT_ID- Your Azure tenant IDAZURE_APP_CLIENT_ID- Your app registration client ID
pip install -r requirements.txt
streamlit run app.pyOpen http://localhost:8501 and sign in with Microsoft.