Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

The Input Controls module adds custom user input controls that are useable in flow studio flows via hooks.

Dependencies

The Input Controls module is dependent on the following modules:

Controls

Star Rating

The star rating control presents a series of stars with optional labels, which when clicked will submit a corresponding number input.

The following is an example of the control when rendered in the chatbot:

The above example was produced with the following nodes in flow studio:

The star rating control is used by invoking the “starRating” hook which takes in the following parameters (see Flow Manager → Execution of Hooks → Parameters for an explanation of how to specify hook parameters)

  • max (number, optional, default: 5): The number of stars to show.

  • minLabel (string, optional): A label to display beneath the lower end of the rating control.

  • maxLabel (string, optional): A label to display beneath the higher end of the rating control.

If only one of the two label parameters is specified, it will be treated as a single label centered beneath the rating control, as shown below:

  • No labels