# 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.

![Edit window of the Tekos In node](/files/-MRVIemPqR-tXHDrqXjU)

### Msg object **response**

```javascript
{
   "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"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tekos.gitbook.io/doc/building-apps-1/chat-surfaces/messages/messages-webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
