Create a bot account in Mattermost.
Log in to Mattermost with your administrator account.
Click Main Menu icon and then click System Console.
Scroll down to INTEGRATIONS section and click Bot Accounts.
Select true for Enable Bot Account Creation, and click Save.
Click the Main Menu icon on the System Console, then click Switch to your team.
Click the Main Menu icon from the main screen of Mattermost, and click Integrations.
The following dialog opens.
Add a new bot account.
Click Bot Accounts > Add Bot Account.
Specify bnz for Username and System Admin for Role.
Click Create Bot Account. A successful notification dialog displays. On this dialog you can find a Token.
Copy this Token.
You will need this token for integration steps later. Save it well since you will not be able to retrieve it again.
For more information about Bot accounts, see Mattermost Integration Guide - Bot Accounts.
Now you can invite the created bot to your Mattermost team.