Giter VIP home page Giter VIP logo

menuflow's Introduction

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.

menuflow's People

Contributors

bramenn avatar egalvis39 avatar galex39 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

menuflow's Issues

A problem was identified in the user's flow logic

Currently the flows belong to a particular user, but this causes that if a user invites one of the bots to another room, the bot remembers the node where the user was previously in the other room.

To fix this problem, the logic of the flows will be changed to rooms and in this way the conversations will be independent.

Switch node

A switch node, which allows you to validate specific variables, and given its results, redirect the flow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.