How to Connect the Enji.ai Bot in MS Teams
This guide helps users create and register the stand-up bot in MS Teams for quick and easy stand-up submission.
How to set up the bot
Copy link
Create an application
Copy link
- Go to Apps.
- Click Import app and upload the Enji.zip. The file contains the application manifest and bot icons.
Create a bot
Copy link
- Go to Bot management.
- In Configure, specify the bot webhook (https://
/api/webhook), which the Microsoft Teams API will use to send incoming events. - In Channels, ensure that the Microsoft Teams checkbox is selected.
Link the bot to the application
Copy link
- Return to the application in Apps.
- Inside the app, navigate to App features → Bot → Identify the bot → Select an existing bot, and choose the bot that was previously created.
Find, copy, and provide the following environment variables to the DevOps team (responsible for setting up Enji):
Copy link
MICROSOFT_TENANT_ID
– Go to Microsoft Entra ID of the organization → Basic information → Tenant ID.
This is required to get a user's personal chat ID so that the bot can send autonomous messages (e.g., alerts).MICROSOFT_APP_ID
– Go to Bot management → Bot ID.MICROSOFT_APP_PASSWORD
– Go to Bot management → Client secrets → Add a secret.
This is required to authenticate requests between the bot and the Bot Connector service.BACKEND_API_URL
– The root URL of the backend API.
The default value in a local development environment is http://localhost:5000/api/v1.MICROSOFT_BOT_BASE_URL
– The bot's base URL.
The default value in a local development environment is http://localhost:3978.
How to deploy the bot in an organization
Copy link
If any changes have been made to the bot's app information in Apps, a new version of the bot will need to be deployed in the organization:
- Go to the bot in Apps.
- Update the bot version in Basic information → Version.
- Go to Publish to org → Submit app update.
How to add the bot to a team
Copy link
The bot cannot be used in private channels, as Microsoft Teams does not support this feature.
Adding an MS Teams Enji bot to a project
Copy link
1. Open Enji -> Settings -> Project List and click ID of the desired project.
2. In Chat Workspace, select Microsoft Teams. Click Save.
3. In Team Channel, select a corresponding MS Teams channel. The one the team will use to communicate within the project. Click Save.