Intergrate rasa with mattermost

Hi everyone. I have some issue when trying to connect my rasa chatbot with mattermost.
I build both mattermost and rasa in local. But when i follow the tutorial Mattermost it’s not clear. Can you help me to do this.
thank you.
This is my setting

What exactly is not clear? Are you running the rasa server? Try running it with --debug and check the output.

Have you figured it out?

Yes. I relize the ip of mattermost deploy to docker is wrong. I have to go deeper to find the ip and then everything is ok

Can you explain to me your credentials.yml file setting… the

mattermost:
  url: is mattemost api url right?
  username: is bot username not email?
  pw: is bot token? or i need to make fake user account to use here?
  webhook_url: is rasa url? like if im using rasa x then i put rasa x ip and port?

rasa:
  url: why is this port different than the one from webhook??

Also the rasa documentation says that i need to configure mattermost outgoing webhook with rasa x api url? but cant i use just bot token?

EDIT: I finally made it work… Needed to ufw allow 5005 and then do this

mattermost:
  url: "http://mattermost server/api/v4"
  token: "bot token not token ID"
  webhook_url: "http://rasa x server:5005/webhooks/mattermost/webhook" # and this has to be set up in mattermost integrations as outgoing webhook and (Callback URLs (One Per Line)) must match the rasa x ip but the port has to be for some unknown reason 5005 not 5002

EDIT 2: if i turn off debug for rasa x server then i get this every time i message my bot

2021-05-07 17:29:51 ERROR    rasa.core.channels.mattermost  - Failed to send message to mattermost channel gh4n76cda3bg8gmryi5ihr6b9y. Response: <Response [201]>
2021-05-07 17:30:06 ERROR    rasa.core.channels.mattermost  - Failed to send message to mattermost channel gh4n76cda3bg8gmryi5ihr6b9y. Response: <Response [201]>
2021-05-07 17:30:06 ERROR    rasa.core.channels.mattermost  - Failed to send message to mattermost channel gh4n76cda3bg8gmryi5ihr6b9y. Response: <Response [201]>
2021-05-07 17:30:06 ERROR    rasa.core.channels.mattermost  - Failed to send message to mattermost channel gh4n76cda3bg8gmryi5ihr6b9y. Response: <Response [201]>
2021-05-07 17:30:23 ERROR    rasa.core.channels.mattermost  - Failed to send message to mattermost channel gh4n76cda3bg8gmryi5ihr6b9y. Response: <Response [201]>

Bot responds to my querries but im not sure why im getting this error

Can anyone help me to intenerate mattermost with rasa

tried

  1. added this to my crediantials.yaml file mattermost: url: “http://localhost:8065/api/v4” token: “dajx3cuyp7bwf8648d1zatzpm” “this is the access token of bot” webhook_url: “http://localhost:5005/webhooks/rest/webhook

but while mentioning the bot in my mattermost , it does not trigger to the rasa server.

Resolved it. Successfully connected my rasa AI with the Mattermost Bot.