Version: 3.x
rasa.core.channels.mattermost
MattermostBot Objects
class MattermostBot(OutputChannel)
A Mattermost communication channel.
token_from_login
@classmethod
def token_from_login(cls, url: Text, user: Text,
password: Text) -> Optional[Text]
Retrieve access token for mattermost user.
send_image_url
async def send_image_url(recipient_id: Text, image: Text,
**kwargs: Any) -> None
Sends an image.
send_text_with_buttons
async def send_text_with_buttons(recipient_id: Text, text: Text,
buttons: List[Dict[Text, Any]],
**kwargs: Any) -> None
Sends buttons to the output.
MattermostInput Objects
class MattermostInput(InputChannel)
Mattermost input channel implemenation.
__init__
def __init__(url: Text, token: Text, webhook_url: Text) -> None
Create a Mattermost input channel. Needs a couple of settings to properly authenticate and validate messages.
Arguments:
url
- Your Mattermost team url including /v4 example https://mysite.example.com/api/v4token
- Your mattermost bot tokenwebhook_url
- The mattermost callback url as specified in the outgoing webhooks in mattermost example https://mysite.example.com/webhooks/mattermost/webhook