Skip to main content

Mattermost

Mattermost is a messenger that is used as an internal chat in organizations and companies. It lets you create groups and channels, exchange files, and configure various integrations.

To publish your bot to Mattermost:

  1. Add a bot to Mattermost.
  2. Connect the bot to Tovie Platform.
  3. Test the bot.

Add bot to Mattermost

  1. Create a bot account in Mattermost.
  2. During the account creation, you will get a bot token. Save the token, it is needed to connect the bot to Tovie Platform.
  3. Add the bot to your team.

Connect bot to Tovie Platform

  1. Go to Tovie Platform.

  2. In the control panel, select ChannelsInboundConnect channel.

  3. In the Messengers and social networks section, select Mattermost.

  4. Fill in the channel settings:

    • Name: enter a name for the inbound channel.

    • Access token: paste the token you received when adding the bot to Mattermost.

    • Host: enter the hostname where Mattermost is installed. For example: mattermost.example.com.

    • Branch: specify a project branch you want to deploy into the channel. Default: master. You can also select a Git tag or enter a commit hash.

    • Agent: choose a customer engagement platform or leave the field empty.

    • Deploy: select a way to publish the project.

      • Automatically, after you save the changes into the project.

      • Manually, with the Publish button in the channel description line.

        caution

        Deploy the script before starting the chatbot. At this stage, the system builds the chatbot, checks the syntax of scripts, and performs tests.

  5. Click Create.

  6. Wait for the bot to be deployed or deploy it manually.

Test bot

  1. Add the bot to a channel or group. You can also chat with the bot in private messages.
  2. Send a welcome phrase stated in your script to the bot. After that, your dialog with the bot starts.