Parameters required

For MS helper to work, there are some parameters that need to be passed along with the chat info. The following are the parameters that are accepted:

  • mshelper(required): Accepts true or false. If true, the MS Helper results will be shown, otherwise only the fallback message will be presented.
  • lang(optional): This is the context variable that must be passed to specify the language in which the search must be retrieved. Defaults to en-us.
  • result_count(optional): This specifies the number of search results to be shown to the user. If not provided, defaults to 5 results.
  • result_message(optional): This specifies the message that must be shown along with the search results. If not provided, defaults to ‘You may try these other sources by Microsoft’.