Asking questions. Mention @Helios in a channel, or message it in a chat, with a question in English or French. The bot shows "typing", then replies under your message with an Adaptive Card:
- the answer and its review status (a draft until a qualified person reviews it);
- the sources, and the sources withheld for licence reasons;
- buttons to the PDF memo, the page, Excel and GeoJSON.
Each answer is stored as a run of your organisation's tenant (teams-<Entra tenant id>), exactly
like a chat answer.
Finding parcels. In the compose box, the Find a parcel message extension searches a Toronto or Montréal address and inserts a card that links to the site's screening memo.
Decision: DM-131.
Set up (Azure Bot on the free F0 tier; nothing billed)#
- Entra app for the bot. Go to Azure portal → Microsoft Entra ID → App registrations → New registration (single tenant). Note the Application (client) ID, then create a client secret under Certificates & secrets. You can reuse the SharePoint app registration.
- Azure Bot. Go to Azure portal → Create a resource → Azure Bot:
- Pricing tier F0 (free), type Single Tenant.
- Use existing app registration, with the ID from step 1.
- Messaging endpoint:
https://<HELIOS_PUBLIC_URL host>/integrations/teams/messages. - Under Channels, add Microsoft Teams.
For a demo on your computer, a tunnel to the local API gives a public HTTPS address.
3. Secrets. In .env.local (never committed):
TEAMS_APP_ID=<application id>
TEAMS_APP_PASSWORD=<client secret>
MS_TENANT_ID=<directory id>
HELIOS_PUBLIC_URL=https://<public address>
Restart the API. GET /integrations then shows "teams": true.
4. App package. Copy teams/manifest.json, replacing TEAMS_APP_ID with
the application id and HELIOS_PUBLIC_HOST with the public host. Zip it with color.png and
outline.png. In Teams, go to Apps → Manage your apps → Upload an app → Upload a custom app.
Sideloading may need to be allowed by your Teams administrator.
Check the setup#
python -m helios integrations check tests each configured integration against its real service and
says what is wrong (for example a page that is not shared with the integration, or a missing admin
consent). It prints no secret and writes nothing.
How it behaves#
- Token check. Every request carries a Bot Framework token, verified against Microsoft's published signing keys:
- RS256 signature;
- issuer
https://api.botframework.com; - audience = your app id;
- the token's service URL = the message's.
A failed check gets 401. Without the secrets, the endpoint returns 503.
- Reply timing. Teams gets an immediate 200. The answer is computed in the background and posted with
the bot's own token. A failure is posted as a message, never dropped.
- Licence filter. Teams is outside Helios, so results pass the licence filter: CMHC, CREA and TRCA
parts are withheld and the card lists them.
- Help. help (or aide) shows example questions.
Not yet#
- Sign-in with Entra ID inside Helios (single sign-on), and reviews from a Teams card. Reviews are done in Helios for now.
- Proactive alerts (monitor changes) posted to a channel.
