Versions Compared

Key

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

...

Modifying the Main menu

The main Main menu can be accessed anytime during the conversation in the chatbot . You can customize the button text, but the function of the buttons remain the same.

...

by clicking on the Main menu icon on the chat input box.

...

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

...

To change the button textmenu 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.

Below given is the sample code for the appsettings function node that includes the Main menu.

Code Block
msg.payload = { 
    speechToText: "Native", 
    headerLogo: "",
    micInput: true,
    directive:[
        {
        "type": "mainmenu",
        "title":"Menu options",
        "html":``,
        "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" : "Find a Location",
                          "value" : "Find a Location"
                      },
                      {
                       "text": "Frequently Asked Questions",
                       "value": "help"
                      }
                  ]
        }
    ]
};
return msg;

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel = in ( "experience-managerdesigner" , "chatbot" )