-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mattermost_botacct' of https://github.com/btotharye/rasa …
…into btotharye-mattermost_botacct
- Loading branch information
Showing
5 changed files
with
22 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added support for mattermost connector to use bot accounts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,14 @@ Once you have them you can add these to your ``credentials.yml``. | |
|
||
Getting Credentials | ||
^^^^^^^^^^^^^^^^^^^ | ||
Mattermost now uses bot accounts for better security. So you can use their guide to create | ||
your bot to get your token required for the `credentials.yml` file. | ||
|
||
For more information on creating a bot account please see | ||
`Bot Creation <https://docs.mattermost.com/developer/bot-accounts.html#bot-account-creation>`_. | ||
|
||
For information on converting existing user account into bot account please see | ||
`User Conversion <https://docs.mattermost.com/developer/bot-accounts.html#how-do-i-convert-an-existing-account-to-a-bot-account>`_. | ||
|
||
**How to set up the outgoing webhook:** | ||
|
||
|
@@ -50,8 +58,7 @@ you need to supply a ``credentials.yml`` with the following content: | |
mattermost: | ||
url: "https://chat.example.com/api/v4" | ||
team: "community" | ||
user: "[email protected]" # actual username of your bot user, not displayname | ||
pw: "password" | ||
token: "xxxxx" # the token for the bot account from creating the bot step. | ||
webhook_url: "https://server.example.com/webhooks/mattermost/webhook" | ||
The endpoint for receiving Mattermost channel messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,10 +211,9 @@ def test_mattermost_channel(): | |
url="http://chat.example.com/api/v4", | ||
# the name of your team for mattermost | ||
team="community", | ||
# the username of your bot user that will post messages | ||
user="[email protected]", | ||
# the bot token of the bot account that will post messages | ||
token="xxxxx", | ||
# the password of your bot user that will post messages | ||
pw="password", | ||
# the webhook-url your bot should listen for messages | ||
webhook_url="YOUR_WEBHOOK_URL", | ||
) | ||
|