Build an AI-Powered Chat App in Minutes with AI Toolkit VS Code Extension
kevinguo explains how developers can use the AI Toolkit VS Code extension to scaffold and deploy real-time AI chat apps, leveraging GitHub models and Azure Web PubSub for scalable, production-ready solutions.
Build an AI-Powered Chat App in Minutes with AI Toolkit VS Code Extension
The AI Toolkit VS Code extension offers developers a quick path from AI experimentation to functional applications.
Project Scaffold: Rapid App Creation
With the latest AI Toolkit update, you can instantly scaffold a full-featured chat application powered by AI in just a few clicks:
- Start in Model Playground to test models and prompts
- Click View Code, then choose the new scaffold option for a chat app using the OpenAI SDK (additional SDK support coming)
- Select a local folder, and the toolkit generates frontend and backend code
Chat App Features
The generated project, AI Chat, includes:
- Multi-room, real-time chat
- AI bot replies via GitHub LLM models (using your GitHub token)
- Unified React frontend and Python backend (runs locally or cloud)
- Optional Azure Web PubSub integration for scalable, broadcast messaging
Local Development
Get started quickly:
- Prerequisites: Python 3.12+, Node.js 18+, GitHub Personal Access Token with model read permissions
-
Setup Steps:
pip install -r requirements.txt export GITHUB_TOKEN=<your_pat> python start_dev.py - Open http://localhost:5173 to chat and see real-time streaming
- Experiment with features using browser split-screen or multiple windows
Scaling with Azure (No Code Changes Needed)
When ready for production or larger audiences, deploy to Azure without modifying any code:
- One-command cloud deployment:
azd up - Managed services provisioned automatically: Azure App Service, Azure Web PubSub, Azure Storage
- Benefits:
- Scalability for thousands of concurrent users
- Managed infrastructure: no server maintenance
- Security via Azure identity integration
- Automated provisioning with Azure Developer CLI
Real-Time Architecture: Azure Web PubSub
Azure Web PubSub manages real-time, bi-directional communication:
- Message broadcasting across rooms
- Room/group management
- Flexible event handling with CloudEvents
- Secure client negotiation using tokens
This enables scalable global chat without infrastructure overhead.
Next Steps
- Try the AI Toolkit project scaffold in VS Code
- Explore advanced configuration in docs/ADVANCED.md
- Deploy to Azure using
azd up - Learn more about Azure Web PubSub
Start experimenting today. The new AI Toolkit and Azure Web PubSub workflow helps you build real-time, intelligent applications with minimal setup.
This post appeared first on “Microsoft Tech Community”. Read the entire article here