Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Prerequisites

...

To render the carousel and card list, you should switch to chatbot version - v2 in Bot view template node.

...

excludeRelated Articles

Main menu

The Main

...

Menu can be accessed anytime during the conversation in the chatbot by clicking on the Main menu icon on the chat input box.

...

Chatbot V3

Image Added

Chatbot V2

Image Added

Click on the Main menu icon to open the menu items.

...

Chatbot V3

Image Added

Chatbot v2

Image Added

To change the menu items

...

  1. Open Experience Designer and go to Chatbot Flow Tab.

  2. In the function node named App Settings, scroll down to find the type - mainmenu. You can customize the contents of the property named text and value in the object - buttons.

...

Note

There should be only one app settings node in the environment.

Sample app settings code that contains the Main menu directive.

...

, navigate to the Project side menu > Develop > Chatbot settings > Settings tab.

Image Added

Add the below code in the appSettings property.

Code Block
"directive": [
      

...

 

...

     

...

{
       

...

         "type": "mainmenu",

...


      

...

 

...

         "

...

title":

...

 "Menu options",
                "buttons": [
                    

...

{
                    

...

    

...

"text": "Schedule an Appointment",
                        "value": "Schedule an Appointment"

...


                    },
                    

...

{

...

                        "text": "Access Same-Day Care",
                        "value": "Access Same-Day Care"

...


                    },

...


                    {

...


                        "text"

...

: "Find a Provider",

...


                        "value"

...

: "find a provider"

...


                    },
                    

...

{

...

                        "text": "Frequently Asked Questions",
                        "value": "help"
                    }
 

...

               ]
   

...

         }

...


  ]

...

Image Added

Property

Description

"type": "mainmenu"

The type property should be set “

...

mainmenu

"title": "Menu options"

The Title for the directive. Not displayed in the UI.

"html": "<img src=https://<URL> width=50px height=50px><p>Hi ! I'm Assista, your virtual assistant.You can select from the below options</p>"

You can give custom html content here to be displayed on the top of the main menu screen such as the icon and custom text in the

...

screenshots below.

...

"buttons": [{
"text": "Schedule an Appointment",
"value": "Schedule an Appointment", "type": "link"
}]

Each button in the buttons object contains the text and value properties of the button.

  • text - The name of the button

  • value - The value or the backend name of the button. You can also give a URL link here. You have to set the optional property "type": "link"to open the URL link in a new tab.

  • type - (optional) The type property should be set as “link” if you want to use a URL in the value property.

Chatbot v1

Image Added

Chatbot v2

Image Added

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel

...

in ( "chatbot" , "directive" )