How to modify the Main menu of the chatbot
Modifying the 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.
Click on the Main menu icon to open the menu items.
To change the menu items:
Open Experience Designer and go to Chatbot Flow Tab.
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.
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.
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;