Welcome to the Azure AI Workshop! This comprehensive hands-on workshop is designed to help you explore the cutting-edge power of Azure AI services and learn how to build intelligent applications using advanced AI models and custom machine learning solutions.
🎯 Perfect for developers, data scientists, and AI enthusiasts who want to master Azure AI services through practical, real-world challenges!
- 7+ Interactive Challenge Modules with complete implementations
- Advanced AI Techniques including Function Calling, Vision AI, and Predicted Outputs
- Real-world Use Cases with practical applications
- Complete Solution Files and instructor guides
- Progressive Learning Path from basic chat to advanced AI agents
Learn to build AI tools that can execute real functions and provide structured responses.
- What you'll learn: Tool integration, structured API responses, real-world AI automation
- Key concepts: Function schemas, two-step API processes, practical AI tools
- Example: Build a
getCurrentTimehelper that AI can call autonomously
Master latency optimization using Azure OpenAI's prediction capabilities.
- What you'll learn: Performance optimization, token prediction, cost efficiency
- Key concepts: Prediction parameters, acceptance rates, latency reduction
- Examples: FizzBuzz generator, Calculator, TodoList with optimized responses
Create multimodal AI applications that can analyze and understand images.
- What you'll learn: Image processing, base64 encoding, multimodal AI interactions
- Key concepts: Detail levels, token economics for images, visual AI reasoning
- Applications: OCR, scene analysis, accessibility tools, automated image cataloging
Build your first AI-powered conversational interface!
In the Chat module, you'll learn the fundamentals of integrating Azure OpenAI services to create intelligent chatbots. Master the art of handling user inputs, processing responses, and creating engaging conversational experiences.
🎯 Learning Goals:
- Azure OpenAI API integration
- Message handling and conversation flow
- Response formatting and display
- Error handling and user experience
Combine the power of search and generation for accurate, contextual responses!
The RAG module focuses on building intelligent systems that can retrieve relevant information and generate accurate responses. Learn to integrate Azure Search with OpenAI to create knowledge-powered applications.
🎯 Learning Goals:
- Document retrieval strategies
- Vector and semantic search
- Context integration with AI responses
- Building knowledge-based chatbots
⭐ NEW ADVANCED CHALLENGE ⭐
Create AI agents that can execute real functions and automate tasks!
Master the advanced technique of Function Calling, where AI models can intelligently decide when and how to call specific functions to accomplish user requests.
🎯 Learning Goals:
- Function schema definition
- Two-step API process implementation
- Tool integration patterns
- Real-world AI automation
💡 What you'll build:
- AI that can call
getCurrentTime()function - Structured response handling
- Multi-tool AI systems
📁 Files:
- Challenge:
js/function-calling.js - Solution:
solutions/function-calling-solution.js - Docs:
docs/function-calling-challenge.md
⭐ NEW ADVANCED CHALLENGE ⭐
Optimize AI performance and reduce latency with intelligent predictions!
Learn to use Azure OpenAI's predicted outputs feature to dramatically reduce response times and improve user experience through smart token prediction.
🎯 Learning Goals:
- Latency optimization techniques
- Token prediction strategies
- Performance vs. accuracy trade-offs
- Cost-effective AI implementations
💡 Interactive Examples:
- FizzBuzz Generator with prediction
- Smart Calculator responses
- TodoList with optimized completion
📁 Files:
- Challenge:
js/predicted-outputs.js - Solution:
solutions/predicted-outputs-solution.js - Docs:
docs/predicted-outputs-challenge.md
⭐ NEW MULTIMODAL CHALLENGE ⭐
Build AI applications that can see and understand images!
Create cutting-edge multimodal applications using Azure OpenAI's vision-enabled models. Learn to process images, ask questions about visual content, and build interactive vision-powered experiences.
🎯 Learning Goals:
- Multimodal AI model integration
- Base64 image encoding and processing
- Vision-text conversation flows
- Token economics for image processing
💡 Real-world Applications:
- OCR and text extraction
- Scene description and analysis
- Accessibility tools for visually impaired
- Automated image cataloging
🔧 Key Features:
- Drag-and-drop image upload
- Detail level selection (low/high/auto)
- Token usage tracking
- Multi-image analysis support
📁 Files:
- Challenge:
js/vision-chat.js - Solution:
solutions/vision-chat-solution.js - Docs:
docs/vision-chat-challenge.md - Instructor Guide:
docs/vision-chat-instructor-guide.md
Generate stunning images from text descriptions!
Explore the creative possibilities of AI-generated art using Azure OpenAI's DALL-E model. Learn to send text prompts and create beautiful, unique images programmatically.
🎯 Learning Goals:
- Text-to-image generation
- Prompt engineering for better results
- Image handling and display
- Creative AI applications
Convert speech to text with Azure Speech services!
Master speech recognition technology by integrating Azure Cognitive Services. Learn to capture audio, process speech, and convert spoken words into actionable text.
🎯 Learning Goals:
- Speech-to-text integration
- Audio capture and processing
- Real-time transcription
- Voice-controlled applications
Extract text and data from images and documents!
Learn to use Azure Document Intelligence to analyze documents, extract text, and understand document structure with precision and accuracy.
🎯 Learning Goals:
- Document analysis and processing
- Text extraction from images
- Bounding box detection
- Structured data extraction
Analyze and comprehend complex document content!
Use advanced Azure AI services to understand document context, extract key information, and analyze content structure for intelligent document processing.
🎯 Learning Goals:
- Advanced document analysis
- Key information extraction
- Content classification
- Intelligent document workflows
Build comprehensive AI-powered assistants!
Create sophisticated AI agents that combine multiple Azure AI services to assist users with complex, multi-step tasks and intelligent decision-making.
🎯 Learning Goals:
- Multi-service AI integration
- Agent design patterns
- Task orchestration
- Intelligent workflow automation
Before starting this workshop, you'll need to set up the following Azure resources and obtain the necessary credentials. This workshop integrates with multiple Azure AI services to provide a comprehensive learning experience.
- Purpose: Powers chat, function calling, predicted outputs, vision, and agent modules
- Required Models:
gpt-4o-miniorgpt-4(for chat and function calling)gpt-4-vision-previeworgpt-4o(for vision module)text-embedding-ada-002(for RAG module)
- How to create:
# Create resource group az group create --name rg-azure-ai-workshop --location eastus2 # Create Azure OpenAI resource az cognitiveservices account create \ --name your-openai-resource \ --resource-group rg-azure-ai-workshop \ --location eastus2 \ --kind OpenAI \ --sku S0
- Purpose: Enables Retrieval-Augmented Generation (RAG) functionality
- Configuration: Basic tier minimum, Standard recommended
- How to create:
az search service create \ --name your-search-service \ --resource-group rg-azure-ai-workshop \ --location eastus2 \ --sku Basic
- Purpose: Speech-to-text and text-to-speech capabilities
- How to create:
az cognitiveservices account create \ --name your-speech-resource \ --resource-group rg-azure-ai-workshop \ --location eastus2 \ --kind SpeechServices \ --sku S0
- Purpose: Document analysis and OCR capabilities
- How to create:
az cognitiveservices account create \ --name your-document-intelligence \ --resource-group rg-azure-ai-workshop \ --location eastus2 \ --kind FormRecognizer \ --sku S0
- Purpose: Advanced AI agent creation and management
- Prerequisites: Azure OpenAI resource in the same region
- Setup: Create through Azure AI Studio
Before starting, gather the following information from your Azure resources:
- Endpoint URL:
https://your-openai-resource.openai.azure.com/ - API Key: Found in "Keys and Endpoint" section
- Deployment Names:
- Chat/Function Calling model (e.g.,
gpt-4o-mini) - Vision model (e.g.,
gpt-4-vision-preview) - Embedding model (e.g.,
text-embedding-ada-002)
- Chat/Function Calling model (e.g.,
- API Version:
2024-10-21or latest
- Search Endpoint:
https://your-search-service.search.windows.net - Admin Key: Found in "Keys" section
- Index Name: Create an index or use existing
- Semantic Configuration: Set up semantic search configuration
- Endpoint:
https://your-region.api.cognitive.microsoft.com/ - Subscription Key: Found in "Keys and Endpoint" section
- Region: Your Azure region (e.g.,
eastus2)
- Endpoint:
https://your-region.api.cognitive.microsoft.com/ - Subscription Key: Found in "Keys and Endpoint" section
- Endpoint:
https://your-ai-service.services.ai.azure.com/api/projects/your-project-name - Access Token: Get via
az account get-access-token --resource 'https://ai.azure.com' - API Version:
2025-05-01or latest
Estimated costs for running this workshop:
| Service | Tier | Estimated Cost/Hour | Notes |
|---|---|---|---|
| Azure OpenAI | Standard | $0.10-$2.00 | Depends on model and usage |
| Azure AI Search | Basic | $0.36 | Monthly fixed cost |
| Speech Services | Standard | $0.15-$0.50 | Pay-per-transaction |
| Document Intelligence | Standard | $0.10-$1.00 | Pay-per-page |
| Azure AI Foundry | Consumption | $0.20-$1.00 | Based on agent usage |
💡 Cost Optimization Tips:
- Use
gpt-4o-miniinstead ofgpt-4for development- Enable predicted outputs to reduce token usage
- Delete resources after completing the workshop
- Set up budget alerts in Azure Portal
Use this script to create all required resources at once:
#!/bin/bash
# Variables
RESOURCE_GROUP="rg-azure-ai-workshop"
LOCATION="eastus2"
OPENAI_NAME="openai-workshop-$(date +%s)"
SEARCH_NAME="search-workshop-$(date +%s)"
SPEECH_NAME="speech-workshop-$(date +%s)"
DOC_INTEL_NAME="docintel-workshop-$(date +%s)"
# Create resource group
echo "Creating resource group..."
az group create --name $RESOURCE_GROUP --location $LOCATION
# Create Azure OpenAI
echo "Creating Azure OpenAI resource..."
az cognitiveservices account create \
--name $OPENAI_NAME \
--resource-group $RESOURCE_GROUP \
--location $LOCATION \
--kind OpenAI \
--sku S0
# Create Azure Search
echo "Creating Azure Search service..."
az search service create \
--name $SEARCH_NAME \
--resource-group $RESOURCE_GROUP \
--location $LOCATION \
--sku Basic
# Create Speech Services
echo "Creating Speech Services..."
az cognitiveservices account create \
--name $SPEECH_NAME \
--resource-group $RESOURCE_GROUP \
--location $LOCATION \
--kind SpeechServices \
--sku S0
# Create Document Intelligence
echo "Creating Document Intelligence..."
az cognitiveservices account create \
--name $DOC_INTEL_NAME \
--resource-group $RESOURCE_GROUP \
--location $LOCATION \
--kind FormRecognizer \
--sku S0
echo "Resources created successfully!"
echo "Don't forget to:"
echo "1. Deploy models in Azure OpenAI Studio"
echo "2. Create search index in Azure Portal"
echo "3. Configure Azure AI Foundry project"If you want to try just a few modules, here's the minimum required:
- Chat Module Only: Azure OpenAI with GPT model deployment
- RAG Module: Azure OpenAI + Azure AI Search with index
- Vision Module: Azure OpenAI with GPT-4 Vision model
- Function Calling: Azure OpenAI with GPT-4 or GPT-4o-mini
- Agent Module: Azure AI Foundry project + Azure OpenAI
- Basic knowledge of JavaScript and HTML
- Azure subscription with OpenAI service access
- Modern web browser
- Code editor (VS Code recommended)
-
Clone the repository:
git clone <repository-url> cd AzureAIWorkshop
-
Configure your Azure credentials:
- Edit
js/config.jswith your Azure OpenAI details - Add your endpoint, API key, and deployment names
- Edit
-
Start the local server:
python3 -m http.server 8000
-
Open in browser: Navigate to
http://localhost:8000 -
Start learning: Select any module from the sidebar and begin your Azure AI journey!
├── js/ # Challenge files for students
│ ├── config.js # Azure service configuration
│ ├── chat.js # Basic chat implementation
│ ├── rag.js # RAG challenge
│ ├── function-calling.js # Function calling challenge
│ ├── predicted-outputs.js # Predicted outputs challenge
│ └── vision-chat.js # Vision chat challenge
├── solutions/ # Complete implementations for instructors
│ ├── function-calling-solution.js
│ ├── predicted-outputs-solution.js
│ └── vision-chat-solution.js
├── docs/ # Comprehensive documentation
│ ├── function-calling-challenge.md
│ ├── predicted-outputs-challenge.md
│ ├── vision-chat-challenge.md
│ └── vision-chat-instructor-guide.md
└── index.html # Main workshop interface
- 💬 Chat - Learn the basics
- 🔍 RAG - Add knowledge retrieval
- 🎨 DALL-E - Explore creativity
- 🛠️ Function Calling - Add tool integration
- 👁️ Vision Chat - Explore multimodal AI
- 🎤 Voice - Add speech capabilities
- ⚡ Predicted Outputs - Optimize performance
- 🧠 Content Understanding - Advanced analysis
- 🤖 Agent - Build comprehensive systems
- Azure AI Services - Complete overview of Azure AI capabilities
- Azure OpenAI Documentation - Comprehensive guides and API references
- Azure AI Blog - Latest updates and best practices
- Function Calling Guide - Master AI tool integration
- Vision Models Documentation - Multimodal AI implementation
- RAG Implementation Guide - Knowledge-enhanced AI
- Azure AI Studio - Experiment with AI models
- OpenAI Cookbook - Code examples and recipes
- Postman Collection - API testing tools
- Token Optimization Strategies - Cost and performance optimization
- Responsible AI Guidelines - Ethical AI development
- Azure AI Security Best Practices - Secure AI implementations
This workshop provides everything you need to master Azure AI services:
✅ Progressive Learning - Start with basics, advance to cutting-edge techniques
✅ Hands-on Practice - Real code, real implementations, real results
✅ Complete Documentation - Comprehensive guides for every challenge
✅ Instructor Support - Detailed teaching materials and solutions
✅ Real-world Applications - Build skills you'll use in production
Whether you're building chatbots, analyzing images, optimizing performance, or creating comprehensive AI agents, this workshop gives you the tools and knowledge to succeed in the rapidly evolving world of artificial intelligence.
Start your AI journey today - select a module from the sidebar and begin exploring the incredible possibilities of Azure AI!
💪 Challenge yourself, 🧠 expand your knowledge, and 🏗️ build amazing AI-powered applications with Azure!
Happy Learning! 🎓✨
