Versions Compared

Key

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

...

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,
    mapKey: "Google maps api key",
    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" )