Skip to content

Request Dynamic Menu with Info

Element Name: Request Dynamic Menu with Info

Category: Variable manipulation

Description: Extension module that invokes the request for a menu-type entity. Pre-configured list values are used. Each value contains additional information displayed once an option is selected. Pauses Lynn's control flow until the user enters the required value.

Functionality: Allows evaluating additional information configured within the flow based on user selection. For example, use it to display "pre-evaluated credit" options if the client has a good credit history or display a new menu if the client is a foreigner.

For its configuration, the following parameters must be taken into account:

Request Dynamic Menu with Info Configuration (Required)

Name: Unique descriptor for configuration box identification in the flow.

[Entity name obtained from an expression]: Mandatory string type field. Expression where an entity (previously created) should be defined, configured for information collection.

[Available values of the menu entity]: Key and value fields where you should enter the data you want to evaluate and the values to be displayed based on the evaluation configuration.

[Maximum failed attempts obtained from an expression]: Defines the quantity of failed customer attempts. For instance, if configured as 3 failed attempts, the client will have three opportunities to enter the correct requested data.

[Invalid value message obtained from an expression]: Defines an expression within single quotes. The message will be related to the erroneous input of data by the client.

[If the maximum failed attempts are reached, the action flow will be interrupted, and the error description will be passed to the selected intention named 'Request_Dynamic_Menu_Error'.] Dropdown selection identifying the intention that will be activated in case of an error.

[Overwrite channel settings to present the menu]: Select 'Yes' to confirm overwriting the defined channel configuration or select 'No' to keep the current configuration.

[Present Menu as Text (Text), Button, or List (List).] Dropdown list with options to present the menu. These can be text type with the Text option, button type with the Button option, or a list with the List option.

[Language to present default elements of the interactive menu]: Dropdown list with languages configured in the Lynn application.

Configuration required for Enriched Menu (Optional)

[Header type]: Dropdown list with header options for the menu to be displayed. It can be as text, video, image, document, or none of the above.

[Expression to get the Footer code]: Optional string expression where you can input a footer.

If the user selects the text, video, image, or document option, the corresponding tab is displayed for configuring the Header:

  • Text Option:

    [Expression to get the text Header code]: String expression where you should input the expression you want to evaluate.

  • Video Option:

    [Expression to get the Video Header URL]: String expression where you should input the URL associated with the video you want to incorporate.

    [Expression to get the Video Header Content Type]: String expression where you should input the content type related to the video.

    [Expression to get the Video Header File Name]: String expression where you should input the file name of the video.

  • Image Option:

    [Expression to get the Image Header URL]: String expression where you should input the URL associated with the image you want to incorporate.

  • Document Option:

    [Expression to get the Document Header URL]: String expression where you should input the URL associated with the document you want to incorporate.

    [Expression to get the Document Header Content Type]: String expression where you should input the content type related to the document.

    [Expression to get the Footer code]: In this optional tag, an expression that you want to be displayed as a footer in the menu header must be defined within single quotes ('). If left blank, the footer won't appear. It can contain Emojis, markdown code, and links. Allows a maximum of 60 characters.

Example Implementation Request Dynamic Menu with Info

-- Requirements:

Preceding the setup, create the menu-type entity: prueba_menu <--- Select one of the following options:

--- Inscriptions

--- Support

-- Input:

  • Name: Pruebamenuinfo

  • [Entity name obtained from an expression]: prueba_menu

  • [Available values of the menu entity:]

Key Value
Inscriptions Inscriptions start from xxxx
Support To request help, call 555555555
  • [Maximum failed attempts obtained from an expression:] 5

  • [Invalid value message obtained from an expression:] 'Select a valid option'

  • [If the maximum failed attempts are reached, the action flow will be interrupted, and the error description will be passed to the selected intention named 'Request_Dynamic_Menu_Error'.] Error_Handler

-- Result:

Upon the user selecting one of the options entered in the "Available values of the menu entity" field, the extension module will initiate the configured flow.