node-red-contrib-viseo-random 0.4.0

VISEO Bot Maker - Random call between outputs

npm install node-red-contrib-viseo-random

Node-RED

Performs random calls according to outputs.

This node is part of project node-red-contrib-viseo powered by VISEO Technologies. Please find the node documentation in the Node-RED info tab.

Here is a French Article on Bot Ecosystem and more.

Quick Start

npm install node-red-contrib-viseo-random

Build the Node-RED Flow

The random node

  • First call: creates an array containing all the possible output values in a field according to the chosen scope.
  • Randomly shuffles the array.
  • All calls: retrieve the array,
  • Gets the value of the last element of the array,
  • Deletes this element from the array,
  • Sends the message to the output corresponding to the value.

When all the outputs were used, the array is reset and shuffled.

The scope can be set to:

  • msg - The current message in the flow ;
  • user - The msg.user field in the flow (can be stored in a database) ;
  • global - The node context (could be not working on multi-server networks) ;

Getting Help

A documentation is available on this Wiki.

For further help, or general discussion, please use the github issue tracker and in order to be labeled with question tag please specify :

  • Your message is a question / discussion
  • The module or node name

Contributing

This project adheres to the Contributor Covenant 1.4. By participating, you are expected to uphold this code. Please report unacceptable behavior to any of the project's core team.

Authors

This project is a creation of VISEO Technology.

Copyright and license

Copyright 2016-2019 VISEO under the Apache 2.0 license. Copyright 2012-2019 SARAH under the Apache 2.0 license.

Node Info

Version: 0.4.0
Updated 5 years, 9 months ago
License: Apache-2.0
Rating: not yet rated

Categories

Actions

Rate:

Downloads

1 in the last week

Nodes

  • random

Keywords

  • viseo
  • sarah
  • node-red
  • random
  • outputs