...
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.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) |
---|
showLabels | false |
---|
max | 5 |
---|
showSpace | false |
---|
cql | label in ( "experience-designer" , "chatbot" ) |
---|
|