This guide will help you deploy and run your AI assistant in under 5 minutes.
By the end of this guide, you’ll have:
Windows:
Mac/Linux:
brew install python@3.11 (Mac) or apt-get install python3.11 (Linux)brew install git (Mac) or apt-get install git (Linux)brew install node (Mac) or from nodejs.orgnpm install -g azure-functions-core-tools@4Click the button below to deploy all Azure resources:
The deployment creates these resources:
⏱️ Deployment takes 3-5 minutes. You’ll see “Your deployment is complete” when finished.
After deployment completes:
Click the “Outputs” tab on the left sidebar

windowsSetupScriptmacLinuxSetupScript
setup.ps1setup.sh# Navigate to where you saved the script
cd C:\Users\YourName\Downloads
# If you get a security error, run this first:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Run the setup script
.\setup.ps1
# Navigate to where you saved the script
cd ~/Downloads
# Make it executable
chmod +x setup.sh
# Run the setup script
./setup.sh
The script automatically:
local.settings.json with YOUR Azure credentialsrun.ps1, run.bat, run.sh)Note: The script includes your Azure credentials embedded securely - no manual configuration needed!
cd CommunityRAPP
.\run.ps1
Or double-click run.bat in the folder.
cd CommunityRAPP
./run.sh
You’ll see output like:
Azure Functions Core Tools
Core Tools Version: 4.x.x
Function Runtime Version: 4.x.x
Functions:
businessinsightbot_function: [POST] http://localhost:7071/api/businessinsightbot_function
client/index.html in your browserPowerShell (Windows):
Invoke-RestMethod -Uri "http://localhost:7071/api/businessinsightbot_function" `
-Method Post `
-Body '{"user_input": "Hello", "conversation_history": []}' `
-ContentType "application/json"
curl (Mac/Linux):
curl -X POST http://localhost:7071/api/businessinsightbot_function \
-H "Content-Type: application/json" \
-d '{"user_input": "Hello", "conversation_history": []}'
The setup script outputs your Azure URL. Use it to test the deployed version:
# Your Azure URL looks like:
https://your-function-app.azurewebsites.net/api/businessinsightbot_function?code=YOUR_KEY
Test with curl or PowerShell (replace YOUR_URL):
curl -X POST "YOUR_URL" \
-H "Content-Type: application/json" \
-d '{"user_input": "Hello", "conversation_history": []}'
You should see a JSON response like:
{
"assistant_response": "Hello! I'm your AI assistant. I can help you with...",
"voice_response": "Hello! I'm here to help.",
"agent_logs": "Session initialized...",
"user_guid": "c0p110t0-aaaa-bbbb-cccc-123456789abc"
}
Your AI assistant is now running! Here are your next steps:
Edit personality in Azure Portal → Function App → Configuration:
ASSISTANT_NAME - Change from “CommunityRAPP” to your preferred nameCHARACTERISTIC_DESCRIPTION - Modify the assistant’s personality and capabilitiesWant your team to use the assistant in Teams? Follow the Power Platform Integration Guide.
Add specialized capabilities by creating custom agents. See Agent Development Guide.
Check Application Insights in Azure Portal for:
# Windows
.\run.ps1
# Mac/Linux
./run.sh
Press Ctrl+C in the terminal
# Activate virtual environment first
# Windows
.venv\Scripts\activate
# Mac/Linux
source .venv/bin/activate
# Install/update packages
pip install -r requirements.txt
# Login to Azure (first time only)
az login
# Deploy to Azure
func azure functionapp publish YOUR-FUNCTION-APP-NAME
Wait 2-3 minutes - the script auto-installs it! If it still fails, manually install from python.org.
Install Azure Functions Core Tools:
npm install -g azure-functions-core-tools@4
Another process is using the port. Either stop it or change the port:
func start --port 7072
Reinstall dependencies:
# Activate virtual environment first
pip install -r requirements.txt --force-reinstall
Windows: Allow script execution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Mac/Linux: Make script executable:
chmod +x setup.sh
For more issues, see the Complete Troubleshooting Guide.
After free trial credits:
Total: ~$5/month + OpenAI usage
For typical usage (100 conversations/day), expect ~$10-20/month total.
Congratulations! 🎉 You’ve successfully deployed your AI assistant. Enjoy building with CommunityRAPP!