Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modifying the Main menu

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

...

Note

There should be only one app settings node in the project.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-designer" , "chatbot" )