Skip to content

RandomSuggest

Description

Select a random entry based on configure actions items.

Attributes

  • tile : randomSuggest
  • title: suggest button text
  • actions: [Array of objects]
    • weight: Used to calculate the random item lists
    • activity: Suggested text for the dispatches
  • dispatch: [Object]
    • tracker: Provide a tracker Id

Example

 {
  "tile": "randomSuggest",
  "title": "Generate",
  "dispatch": {
    "tracker": "f60193d0-2545-4e08-bf6d-8425de17a010"
  },
  "actions": [
    {
      "weight": 50,
      "activity": "Weight 50"
    },
    {
      "weight": 45,
      "activity": "Weight 45"
    },
    {
      "weight": 35,
      "activity": "Weight 35"
    }
  ]
}