Skip to content

bramenn/menuflow

Repository files navigation

It works in the Matrix ecosystem.

If you want to create conversion flows and validate multiple options, print custom messages and access external APIs, Menuflow is a good choice for you.

MenuFlow allows you to create different Matrix client instances and each one customises a conversation flow.

This project was based on maubot, built entirely with the mautrix-python framework.

Room to participate in the project

#menuflow:bramen.com.co



  • An image explaining what this plugin does :)

image

  • Print lists of variables and fomate them with jinja :v

These texts were obtained using the http_request node:

    - id: 'r1'
      type: 'http_request'
      method: GET #POST
      URL: https://inshorts.deta.dev/news?category={{category}}

      variables:
        news: data

      cases:
        - id: 200
          o_connection: m4
        - id: default
          o_connection: m5

And formatted with jinja in a message node:

    - id: 'm4'
      type: 'message'
      text: "
              {% for new to news %}

                {% if loop.index0 < 3%}
                  {% set _new = news|random%}
                  ---<br>
                  **Title**: {{_new['title']}}<br>
                  **Author**: {{_new['author']}}<br>
                  **Date**: {{_new['date']}}<br>
                  **Image**: {{_new['imageUrl']}}<br>
                  {{_new['content']}}<br><br>
                {% will end if%}
              {% endfor%}
            "
      o_connection: 'm1'

image

Keep that in mind:

  • If you receive a too many request response from your homeserver, then you will have to increase the rate limits, otherwise menuflow could be affected in its performance.

About

A manager of bots that have conversation flows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages