Widget structure and components
The JSON for rich media has the following components:
-
Widget properties—A set of required and optional properties that define how the widget should appear and behave. For details, see Widget properties.
-
Nodes—One or more "pages" of widget types. Each node contains one or more Controls, which are individual rich-media items. For details, see Nodes and controls.
-
Transitions—Defines the behavior to pass from node to node and the output to be sent when the user interacts with rich media. These are optional for non-interactive widgets. For details, see Transitions.
In the following JSON sample, each component for a Quick Reply button is labeled. The button enables a user to make a selection by pushing a button.