I would like to be able to trigger workflows by messages in Matrix. Currently I have to periodically get all messages and remember the last seen message. This adds a lot of complexity and delays the execution. Addittionaly it loads the matrix server by polling all the time.
I implemented a minimal task-managment in a matrix room. Sending a message adds to the list and sending “list” outputs the currently open items. As written above, this is currently implemented by polling once a minute and remebering the time of the previous execution.
invoking Workflows from Chat can often make sense. This would allow simple chatbots to be implemented without writing code specialized for Matrix.
My first idea was to use a webhook from Matrix as a simple solution. I couldn’t find anything that allows sending webhooks from matrix though. The “correct” way to do it, is probably using the Client-Notification API as seen in Matrix - Client-Server-API - 11.15. Push Notifications.
I’m kind of lost where to start, I’d be willing to work on it though if I get some pointers.