Tekos
  • General overview
  • Tekos Chat Workspace
    • Tekos Chat
      • Design and Interface of chat
      • Apps
    • Tekos Chat FAQ
      • How to create a workspace for my team?
      • How to invite members to my workspace?
      • What is a room and to create it?
      • Public or private room? What is the difference?
      • What is Roles & Permissions?
      • What is power level and how does it work?
      • How do I know if my message was read?
      • How can I share a file?
      • How to search messages and/or files.
      • How do I make video calls?
      • How do I change my profile settings?
      • Notifications settings.
      • Room settings.
      • How to leave a room?
      • Lab features
  • Flow Builder
    • Tekos Flow
      • Editor UI
      • Building your first flow
        • Import / Export Flow
      • Flow.tekos library
      • Subflows
  • Omnichannel Live Chat
    • Overview
    • Channels
      • WhatsApp
  • Building Apps
    • Building Apps
      • Connecting flow with the chat
      • HTTP Requests
        • Handle query parameters passed to an HTTP endpoint
        • Handle url parameters in an HTTP endpoint
    • Chat Surfaces
      • Modals - Adaptive Cards
        • Building An Adaptive Card
        • Basic usage of Cards
        • Variables in the Cards
        • Action Buttons
      • Messages
        • Instant Messaging
          • Message types
        • Getting the Messages
        • Getting events for a room
        • Messages webhook
    • Interactivity in the Chat
      • Shortcuts
      • Slash Commands
      • Buttons
Powered by GitBook
On this page
  • How to configure Tekos In
  • Msg object response

Was this helpful?

  1. Building Apps
  2. Chat Surfaces
  3. Messages

Messages webhook

PreviousGetting events for a roomNextInteractivity in the Chat

Last updated 4 years ago

Was this helpful?

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"
}
Edit window of the Tekos In node