After deployment completes, you'll see "Your deployment is complete" ✅
- Click the "Outputs" tab on the left sidebar (see screenshots below)
- Find and copy the entire script value:
- Windows users: Copy windowsSetupScript
- Mac/Linux users: Copy macLinuxSetupScript
- Save it as a file and run:
First, click on "Outputs" in the left sidebar
Then copy your platform's setup script
Windows (PowerShell):
If you get a security error, first run: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Mac/Linux (Terminal):
That's it! Your AI assistant is now running both in Azure and locally with all settings automatically configured. 🎉
- 🧠 GPT-4 Powered - Latest Azure OpenAI models
- 💾 Persistent Memory - Remembers conversations across sessions
- 🔐 Enterprise Security - Function-level authentication
- ⚡ Auto-scaling - Serverless Azure Functions
- 🎨 Web Chat Interface - Beautiful UI included
- 🔧 Zero Configuration - All Azure settings automatically configured
- 💼 Microsoft 365 Integration - Optional deployment to Teams & M365 Copilot (via Power Platform)
- 🤖 Multi-Channel Support - Web, Teams, M365 Copilot, or direct API access
- Auto-installs Python 3.11 if not found (required for Azure Functions v4)
- Handles all path issues including spaces in "Program Files"
- Configures all Azure settings automatically from your deployment
- No manual editing required - everything just works!
- Stores conversation context per user
- Maintains shared knowledge base
- Persistent across sessions
- Modular agent architecture
- Easy to add custom agents
- Built-in memory management agents
The setup script will automatically install missing components, but you'll need:
- Azure Account - Get free trial
- PowerShell - Already installed on Windows
- Everything else auto-installs! ✨
- Azure Account - Get free trial
- Python 3.9-3.11 - brew install [email protected] (Mac) or apt-get install python3.11 (Linux)
- Git - brew install git (Mac) or apt-get install git (Linux)
- Node.js - brew install node (Mac) or from nodejs.org
Then install Azure Functions Core Tools:
Once setup is complete, you can start your bot anytime with:
Then:
- Local API: http://localhost:7071/api/businessinsightbot_function
- Web Chat: Open client/index.html in your browser
- Azure URL: Automatically shown after setup (includes auth key)
Your bot can run in two modes:
- Standalone Mode (what you just set up): Direct REST API access via Azure Functions
- Power Platform Mode: Full Microsoft 365 integration with Teams chat and M365 Copilot
Deploy your AI assistant where your users already work:
- 💬 Microsoft Teams - Chat directly in Teams channels or personal chats
- 🤖 M365 Copilot - Deploy as a declarative agent in Microsoft 365 Copilot
- 👤 User Context - Automatically access user profile info (name, email, department)
- 🔐 SSO Authentication - Users authenticated via Azure AD/Entra ID
- 📊 Enterprise Analytics - Built-in usage tracking and compliance
Required Licenses (per user):
- Microsoft 365 E3/E5 or Business Premium
- Power Automate Premium (if using premium connectors)
- Microsoft Teams (included in M365)
- Optional: Microsoft 365 Copilot license (for M365 Copilot deployment)
Technical Requirements:
- Admin access to Power Platform Admin Center
- Permissions to create Power Automate flows
- Copilot Studio access (included in Power Automate Premium)
- Your Azure Function URL + Function Key (from Step 2 above)
- Go to Copilot-Agent-365 Releases
- Download Copilot365_PowerPlatform_Solution.zip
- Open Power Apps
- Navigate to Solutions → Import Solution
- Upload the ZIP file and follow the wizard
- Open Power Automate: flow.microsoft.com
- Go to My flows → Find "Copilot365-Backend-Connector"
- Edit the flow and update the HTTP action:
- URI: https://your-function-app.azurewebsites.net/api/businessinsightbot_function
- Headers:
- Content-Type: application/json
- x-functions-key: YOUR_FUNCTION_KEY (from Azure setup)
- Save and test the flow
The flow automatically:
- Captures user message from Copilot Studio
- Enriches with Office 365 user profile (name, email, ID)
- Calls your Azure Function backend
- Returns formatted response
- Open Copilot Studio
- Create a new copilot or edit existing one
- Go to Topics → Add a topic → From blank
- Create trigger phrases (e.g., "help me", "I need assistance")
- Add action: Call an action → Select your Power Automate flow
- Map variables:
- Input: Activity.Text (user message)
- Output: Display the response from Power Automate
- Publish your copilot
For Microsoft Teams:
- In Copilot Studio, go to Channels → Microsoft Teams
- Click Turn on Teams
- Follow prompts to publish to your organization
- Users can find your bot in Teams app store (internal apps)
For Microsoft 365 Copilot:
- Create a declarative agent manifest (JSON)
- Include your Copilot Studio bot ID
- Deploy via Teams Admin Center or App Catalog
- Users will see your agent in M365 Copilot sidebar
Update your agent code to use Office 365 user information:
Data Flow:
- User sends message in Teams or M365 Copilot
- Copilot Studio processes natural language and intent
- Power Automate enriches request with Office 365 user profile
- HTTP POST to your Azure Function with user context
- Azure Function routes to appropriate agents
- Response flows back through Power Automate → Copilot Studio → User
Additional costs for Power Platform integration:
- Power Automate Premium: ~$15/user/month (or $100/month for unlimited flows)
- Copilot Studio: Included in Power Automate Premium
- Microsoft 365 Copilot: ~$30/user/month (optional, only for M365 Copilot deployment)
Total monthly cost estimate:
- Standalone mode: ~$5/month + OpenAI usage
- With Power Platform: ~$25-40/user/month + OpenAI usage
"Unauthorized" error in Power Automate | Check Function Key is correct in HTTP headers |
User context not passed | Verify Office 365 Users connector in Power Automate has permissions |
Copilot doesn't trigger | Check trigger phrases in Copilot Studio topics |
Slow response times | Optimize Azure Function (enable Always On, or use Premium plan) |
Teams app not found | Ensure copilot is published and approved by Teams admin |
When integrating with Power Platform:
- Use managed identities where possible instead of function keys
- Enable data loss prevention (DLP) policies in Power Platform Admin Center
- Restrict access to specific Azure AD security groups
- Audit logs - Enable logging in both Azure and Power Platform
- Test in dev environment before rolling out to production
- Monitor API usage to prevent quota exhaustion
Edit these in Azure Portal → Function App → Configuration:
- ASSISTANT_NAME - Your bot's name
- CHARACTERISTIC_DESCRIPTION - Your bot's personality
Create new file in agents/ folder:
- Azure deploys all resources (OpenAI, Storage, Function App)
- Setup script is generated with YOUR credentials embedded
- Running the script:
- Installs Python 3.11 if needed
- Clones the repository
- Creates local.settings.json with your Azure values
- Sets up Python environment
- Installs all dependencies
- Creates run scripts
The setup script automatically includes:
- ✅ Your Azure Storage connection string
- ✅ Your OpenAI API key and endpoint
- ✅ Your Function App details
- ✅ All other required settings
"Python 3.11 not found" | Script auto-installs it! Just wait 2-3 minutes |
"C:\Program Files" error | Fixed! Script handles spaces in paths |
"func: command not found" | Run: npm install -g azure-functions-core-tools@4 |
Port already in use | Edit run.ps1 or run.sh and change to func start --port 7072 |
"az login" needed | Run az login to deploy code to Azure (optional) |
- Use Python 3.11 (automatically installed by script)
- Don't use Python 3.13+ (causes compatibility issues with Azure Functions)
- Script specifically installs and uses Python 3.11 to avoid issues
- Function App: ~$0 (free tier covers most usage)
- Storage: ~$5/month
- OpenAI: Pay per token used (~$0.01 per 1K tokens)
Total: ~$5/month + OpenAI usage
- Function App + Storage + OpenAI: ~$5/month + usage (same as above)
- Power Automate Premium: ~$15/user/month
- Microsoft 365 Copilot: ~$30/user/month (optional)
Total: ~$25-40/user/month + OpenAI usage
💡 Tip: Start with standalone mode to test, then upgrade to Power Platform when you're ready to deploy to your organization.
- API keys are embedded securely in the generated setup script
- Never commit local.settings.json to Git (contains secrets)
- Function requires authentication key for API access
- All traffic uses HTTPS
- Keys are unique to your deployment
- 🚀 Microsoft 365 Integration - Deploy to Teams and M365 Copilot
- 🤖 Dual-mode support - Run standalone or with Power Platform
- 👤 User context enrichment - Automatic Office 365 profile integration
- 📚 Comprehensive guides - Full setup documentation for both modes
- ✨ Auto-configuration - No manual editing of settings
- 🔧 Python path fix - Handles "Program Files" spaces
- 🐍 Python 3.11 auto-install - Windows script installs if missing
- 📦 Fixed package versions - Prevents compatibility issues
- 🚀 True one-click deploy - Everything configured automatically
Focus: Stability, Performance & Core Features • Oct-Dec 2025
-
Enhanced Memory Management
- Advanced context search with semantic similarity
- Memory compression for long-running conversations
- Automated memory cleanup and archiving
- Memory analytics dashboard
-
Agent Marketplace
- Web-based agent upload interface
- Agent versioning and rollback capabilities
- Community agent sharing and discovery
- Agent performance metrics
-
Performance Optimization
- Response caching layer
- Parallel agent execution
- Connection pooling for Azure services
- Reduced cold start times (<1s)
Focus: Enterprise Productivity Suite • Jan-Mar 2026
-
M365 Agents
- Outlook email management (read, send, search, categorize)
- Teams messaging and channel integration
- SharePoint document search and retrieval
- OneDrive file operations
- Calendar management and scheduling
-
Authentication & Security
- Azure AD/Entra ID integration
- Microsoft Graph API authentication
- Role-based access control (RBAC)
- Audit logging for compliance
-
Workflow Automation
- Automated email responses based on rules
- Meeting summary generation from Teams
- Document classification and tagging
- Cross-app data synchronization
Focus: Intelligence & Automation • Apr-Jun 2026
-
Multi-Agent Orchestration
- Agent chaining for complex workflows
- Parallel agent execution with result aggregation
- Conditional agent routing based on context
- Agent team collaboration patterns
-
Advanced Analytics
- Business intelligence agent (data analysis, visualization)
- Predictive insights from conversation patterns
- Sentiment analysis and user satisfaction tracking
- Custom reporting and dashboards
-
Document Intelligence
- PDF/Word/PowerPoint content extraction
- Document summarization
- Question-answering over documents
- Citation and reference tracking
-
Voice & Multimodal
- Real-time voice conversation support
- Image analysis and description
- Audio transcription and summarization
- Video content understanding
Focus: Enterprise-Ready Platform • Jul-Sep 2026
-
Multi-Tenancy
- Organization-level isolation
- Department/team-specific agents
- Cross-tenant security boundaries
- Centralized admin console
-
Compliance & Governance
- Data residency controls
- PII detection and masking
- Retention policies and legal hold
- SOC 2 Type II certification prep
-
Advanced Deployment Options
- Kubernetes/container deployment
- Private endpoint support
- Hybrid cloud deployment
- High availability (HA) configuration
-
Enterprise Features
- SSO with multiple identity providers
- Custom branding and white-labeling
- Usage quota and billing per user/team
- SLA monitoring and alerting
Focus: Platform Expansion • Oct-Dec 2026
-
Industry-Specific Agents
- Healthcare compliance (HIPAA)
- Financial services (SOX, PCI-DSS)
- Legal document analysis
- Manufacturing process optimization
-
Third-Party Integrations
- Salesforce CRM integration
- ServiceNow ticketing
- Slack and Discord support
- Custom webhook connectors
-
AI Model Flexibility
- Multi-model support (GPT, Claude, Gemini)
- Cost optimization through model routing
- On-premises model deployment
- Fine-tuning on organization data
Focus: Innovation & AI-Driven Automation
-
Advanced Automation
- Autonomous task execution
- Proactive insights and recommendations
- Self-healing workflows
- Predictive business intelligence
-
Developer Platform
- SDK for custom integrations
- GraphQL API
- Event-driven architecture
- Comprehensive API documentation
- Low-code agent builder
-
Global Scale
- Multi-region deployment
- Edge computing support
- Real-time collaboration features
- Advanced caching and CDN
✅ Backward Compatibility - All updates maintain existing functionality ✅ Security First - Every feature designed with enterprise security in mind ✅ User-Centric - Features driven by real user feedback and needs ✅ Open Source - Core platform remains free and community-driven ✅ Scalable - Architecture supports growth from individual to enterprise
Have an idea? Submit a feature request or join our discussions to shape the future of Copilot Agent 365!
- Fork the repo
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit changes (git commit -m 'Add some AmazingFeature')
- Push to branch (git push origin feature/AmazingFeature)
- Open a Pull Request
MIT License - See LICENSE
- Issues: GitHub Issues
- Discussions: GitHub Discussions
This project makes enterprise AI accessible to everyone by:
- Removing complexity - One-click deployment with zero configuration
- Handling all setup - Automatically installs and configures everything
- Providing memory - Your AI remembers context across conversations
- Enabling customization - Easy to add your own agents and features
Deploy your own AI assistant in under 3 minutes!
⭐ Star this repo if it helped you!
Made with ❤️ for the community