VermontDepartmentOfHealth / covid-bot

A knowledge base & automated chatbot from the Vermont Department of Health with info for the COVID-19 response
https://vermontdepartmentofhealth.github.io/covid-bot/
MIT License
3 stars 2 forks source link

Update Default Message #1

Closed KyleMit closed 4 years ago

KyleMit commented 4 years ago

See this Stack Overflow Question:

How can i set default answer in Q&A Azure bot

jocooler commented 4 years ago

Triggerword: balderdash More details:

Consider this message:

No good answer for your question was found. You can try

  • rephrasing the question
  • checking out the CDC Website
  • calling 2-1-1
KyleMit commented 4 years ago

Add a PR to BotBuilder-Samples 🤞 - MERGED! 🎉

KyleMit commented 4 years ago

I couldn't prevent the double escaping of new lines or correct handling trivially, but we can just treat as a comma separated list like this:

We couldn't find a good match for your question. You can try rephrasing the question, checking out the [CDC Website](https://www.cdc.gov/coronavirus), or calling 2-1-1

Which will render like this:

We couldn't find a good match for your question. You can try rephrasing the question, checking out the CDC Website, or calling 2-1-1

Ehh... we need to tweak micro copy to prevent a weird line wrap

example of output in chat

Final version:

Sorry, we couldn't find a good match for your question. Please try rephrasing the question, checking out the [CDC website](https://www.cdc.gov/coronavirus), exploring our FAQ, emailing [AHS.VDHPublicCommunication@Vermont.gov](mailto:AHS.VDHPublicCommunication@Vermont.gov), or calling 2-1-1