Messages webhook

Matrix doesn't allow for creating webhook for the events in the room, but we have created our own flow called Tekos In which is a configuration node that handles the User Id & Access Token, also you can set the Room Id.

How to configure Tekos In

Add the Tekos In node in the flow builder double click on it, and edit the values. If you leave the Room Id empty the webhook will fetch all messages in every room, but you can limit it to the defined one.

Msg object response

{
   "event":{
      "type":"m.room.message",
      "sender":"@wiktoria:m.tekos.co",
      "content":{
         "msgtype":"m.text",
         "body":"hello"
      },
      "event_id":"$du_rjd8xi7oaIpiP3pAVcvW9IuDcbaEE5Q_DOTGTO9A",
      "origin_server_ts":1611154086716,
      "unsigned":{
         "age":675
      },
      "room_id":"!OEHMBnKiGIHzcmnLZu:m.tekos.co"
   },
   "id":"$du_rjd8xi7oaIpiP3pAVcvW9IuDcbaEE5Q_DOTGTO9A",
   "payload":"hello",
   "messageContent":"hello",
   "senderId":"@wiktoria:m.tekos.co",
   "channelId":"",
   "roomId":"!OEHMBnKiGIHzcmnLZu:m.tekos.co",
   "imagesrc":null,
   "participants":"",
   "createdAt":"Wed, 20 Jan 2021 14:48:06 GMT",
   "_msgid":"82a96563.b3c3c8"
}

Last updated