Menu

1. Description

The component generates a navigation menu, storing the selection in a variable.

This component is present in flow types like:

  • Chat.

The block (Fig.1(1)) is used in space to build the Flow. The settings panel for this component opens (Fig.1(2)) when you click on the block.

Fig.1. Menu component

The block consists of the following elements:

  1. The name of the component;
  2. in branch — receiving (connecting with the previous block) branch;
  3. out branch — outgoing (connecting with the following block) branch.

It consists of the following elements:

  1. Text;
  2. Set;
  3. Type;
  4. Rows of buttons;

  5. Break;
  6. Limit.

Here, enters the text that will be displayed along with the navigation menu.

Here enters the variable's name in which the result of the subscriber's selection is written.

The field is automatically populated with ${onClick.Menu} value.

Here, chooses the type of button placement. There are such options:

  • message — buttons are displayed in the message;
  • chat — buttons are displayed under the chat;
  • clear — no buttons.

It is designed to create rows of buttons in the navigation menu. 

The No input switch becomes available when at least one row is present.

 — indicates that you should disable input options (text, media, video, files, location, etc.), and allow only a response using one of the buttons.

Only for portals!

When you click on the Add row button, the following options are displayed (Fig.2):

  1. Button;
  2. Add button;
  3. Delete row.

Fig. 2. Add row

It is designed to create a button. Consists of:

  1. Remove button;
  2. Type;
  3. Text.

It is intended for removing the button. Clicking the  button removes the button.

The button type.

For the message button placement type, the following options are available:

  • reply;
  • url.

For the chat button placement type, the following options are available:

  • postback;
  • contact;
  • email;
  • location.

The name of the button that is displayed in the messenger.

 You can create branches along which the Flow scheme will pass, according to the selected button, by using the Switch component.

To do this, in the Cases field of the Switch component, you have to enter the button code created in the Menu component. In the Variable field of the Switch component — a variable whose name is entered in the Set field of the Menu component.

When this button is clicked, the Button element is added to the row to which the Add button button belongs.

Clicking this button removes the row and all buttons from that row.

Responsible for the completion of the flow execution.

- initiates the end of the flow execution after the given component.

- the switch is in the off position.

It is intended to determine the maximum number of passes through this component.

The failover branch appears in the edited component when the limit is set .

The failover branch will be used if more passes are passed through the component than entered in the Max field.

Clicking on the Add Limit button adds a Max field and a Delete limit button.

The number of possible passes is indicated in the Max field.

Clicking on the Delete limit button removes the limit and returns the Add limit button.

Fig. 3. Setting a limit