Giter Club home page Giter Club logo

bots-workflow-designer's Introduction

Automaton Dashboard

This is a graphical and easy to use automation flow designer. This is especially helpful for bot platforms that need to be orchestrated. This is based on a finite state machine approach in which the modules are connected between them and are able to actuate others. It is perfect to use in asynchronous environments where events happen suddenly and there is not a linear path. The main advantage of this approach is that there are no listeners turned on and listening all the time, in this approach all the modules are turned off and are only turned on when they are called and their pre-requisites have been fulfilled.

Example: The following image shows an automated human resources system on Linkedin. It is able to find relevant candidates, add them to contacts and contact them by sending them a message. All the actions happen asynchronously because we don´t know if a candidate will accept us as a contact and we don't know when it can happen.

alt text

Running User Interface

cd ui

./run.sh

Open your browser and go to the given URL when the platform is up.

Running Back End

  • Pre-requisites

    • Python 2.x or 3.x
    • Selenium
      • install using pip-

      pip install selenium

    • PhantomJS
    • MongoDB
  • Steps

    • Go to /automation folder in your command line.
    • Run the run.sh file

cd automation

./run.sh

Getting started

  • Steps
    • Go to your user interface(by default: http://localhost:9000)
    • Click on Diagram on the left-side menu
    • Click on execute

If you are using firefox web browser you may encounter an error like

"WebDriverException: Message: 'geckodriver' executable needs to be in PATH"

In such a case, download the latest version of geckodriver from here

  • If you are using ubuntu just do the following after the download:

export PATH=$PATH:/path/to/directory/of/executable/downloaded/in/previous/step

  • If using windows, then you can check this to know how to set path in Windows command prompt.

Guide to creating your own bot

In order to automate any of your own desired task you need to create a logic.json file and corresponding modules.

  • The logic.json gives the bot all related inputs and also specifies the order of running modules. You can have a look at the present logic.json present in the automation folder.

  • Each module must have imported the Module.py file present in the core folder and must have the functions run() and run_queue(). The run_queue() function is responsible for performing operations over the data and for calling the next module. You can have a look at the modules present in the modules folder for reference.

bots-workflow-designer's People

Contributors

ayush9398 avatar toxtli avatar

Watchers

 avatar  avatar

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.