A Llama bot in Teams allows you to chat directly with your Llama instance (or other Ollama models) and can also be added to an existing channel to interact with team members.
This bot has been build upon the work of rvinothrajendran, 01EchoBot sample.
- Docker and Docker Compose
- Domain name with SSL certificate
- Company admin Azure (Microsoft) account, with an App registration with a Secret key, Chat permissions and an Azure Bot with the teams channel enabled and the https://your_domain/api/messages messaging endpoint
- Nvidia GPU (for AMD change docker-compose file to AMD device)
-
Run
git clone https://github.com/victornemeth/teamsllama.git && cd teamsllama -
Run
nano config.pyand put in your APP ID and SECRET KEY -
Run
docker compose up -d -
Run
docker exec -it ollama ollama pull llama3.1:8b -
Go to localhost:81 in browser or to your_local_ip:81 if you are on another machine
-
Login (Default Proxy Manager username: admin@example.com. Default Proxy Manager password: changeme)
-
Add proxy host
-
Put in Domain Name
-
Forward Hostname: teams-bot; Forward Port: 3978
-
Force SSL
-
Go to your Azure Portal, in the Azure Bot Channels, click Open in Teams
-
Chat with your model