Mattermost ################# Robusta can send playbook results to Mattermost. To configure the Mattermost sink we will need the Mattermost bot settings .. note:: 2-way interactivity (``CallbackBlock``) isn't implemented yet. Get your mattermost webhook url ------------------------------------------------ 1. First, go to **Main Menu > Integrations > Bot Accounts**. .. image:: /images/add_mattermost_bot.png :width: 400 :align: center 2. If you don’t have the Integrations option in your Main Menu, bot accounts may not be enabled on your Mattermost server or may be disabled for non-admins. They can be enabled by a System Admin from System Console > Integrations > Integration Management. Then continue with the steps below. 3. Select **Add Bot Account** and add name and description for the bot. Those will be overridden by robusta when the sink is initialised, but we need to provide some values to create the bot. .. image:: /images/add_mattermost_bot_2.png :width: 600 :align: center .. image:: /images/add_mattermost_bot_3.png :width: 600 :align: center .. image:: /images/add_mattermost_bot_4.png :width: 600 :align: center 4. Copy the token value of the bot - it will be used to send all the messages to the channel. .. image:: /images/add_mattermost_bot_5.png :width: 600 :align: center 5. Copy the token id as well - it should be provided in sink variables. .. image:: /images/add_mattermost_bot_6.png :width: 600 :align: center Configuring the Mattermost sink ------------------------------------------------ Now we're ready to configure the Mattermost sink. .. admonition:: Add this to your generated_values.yaml .. code-block:: yaml sinksConfig: - mattermost_sink: name: personal_mattermost_sink url: (can be find out from url bar in browser, e.g. https://namespace.cloud.mattermost.com) token: (the token we copied the first after bot creation) token_id: (the token id visible in bot panel) channel: (the channel name you want to send messages to - either display name or channel name divided by hyphen (e.g. channel-name)) Save the file and run .. code-block:: bash :name: cb-add-mattermost-sink helm upgrade robusta robusta/robusta --values=generated_values.yaml You should now get playbooks results in Mattermost! Example is shown below: .. image:: /images/mattermost_sink_example.png :width: 1000 :align: center Mattermost configuration tutorial --------------------------------- See video below: .. raw:: html