Agent: Echo

May 27, 2026 ยท View on GitHub

A bot that echos back what the user said to it.

Teams CLI

Use the official Teams CLI (@microsoft/teams.cli) to create and manage the Teams app for this sample:

npm install -g @microsoft/teams.cli
teams --version
teams login

Expose this sample's local /api/messages endpoint with a tunnel, then create the Teams app:

teams app create --name "echo" --endpoint "https://<your-tunnel>/api/messages" --env .env --json

The CLI writes CLIENT_ID, CLIENT_SECRET, and TENANT_ID to your .env file and prints an install link for Teams.

Run

$: npm run dev