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 environment.

Sample app settings code that contains the Main menu directive code.

Code Block
msg.payload = { 
    speechToText: "Native", 
    headerLogo: "",
    micInput: true,
    directive:[
        {
        "type": "mainmenu",
        "title":"Menu options",
        "html":`<img src=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQgeBYLy8tTqd17LX3LOmihotvcxdyTh4Rxw05ayapfaqlnbPmXGQ width=50px height=50px>
                 <p>Hi ! I'm Assista, your virtual assistant.You can select from the below options</p>`,
        "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": "Frequently Asked Questions",
                       "value": "help"
                      }
                  ]
        },
    ]
};
return msg;

...