How can I change the default responses given by the chatbot

Michael Tangeraas 0 Reputation points
2024-11-14T11:43:06.9333333+00:00

I have created a questions and answer chatbot through the Azure portal by utilizing Azure AI Language and Azure AI Bot service. After implementing it on my website through the BotFramework-WebChat package, I noticed that the chatbot has a set of specific default responses that I'm unable to configure.

Typical default responses are:

  • Hello and welcome (at the start of the chat)
  • Did you mean: (if the chatbot makes suggestions for prompts)
  • None of the above. (if none of the suggestions were correct)
  • Thank you for the feedback. (when selecting "None of the above.")

The interaction with my chatbot will primarily be through non-english language, so it's not a appropriate to serve my users snippet of language jumps during the conversation. Through extensive research, I only managed to change the welcome message by adding an environment variable in the app service, but I have been unable to change the default format of the other examples above.

I have not managed to find any documentation for configuring this issue, and only found the environment variable solution in an old Stackoverflow-post. Has anyone a solution for how I can move forward with this issue?

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
871 questions
Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,119 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
432 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kothapally Snigdha 835 Reputation points Microsoft Vendor
    2024-11-14T23:07:01.56+00:00

    Hi Michael Tangeraas

    Thanks for Reaching the Microsoft Q&A Forum

    To customize the default responses of your Azure chatbot, particularly for non-English interactions, you can follow these steps based on the Azure AI Bot Service and Azure AI Language settings

    Sign in to the Azure Language Studio where your custom question-answering project is hosted and select your project from the list.

    Navigate to Settings in the left navigation bar. Here, you can change the default answer when no answer is found. This setting allows you to specify what the bot should respond with when it cannot find a suitable answer in its knowledge base. Make sure to save your changes after editing.

    For responses like "Did you mean:", "None of the above," and "Thank you for your feedback," you may need to modify the client application code directly. This involves changing the hardcoded strings in your bot’s source code.

    As you've already discovered, some default responses can be modified using environment variables in your Azure App Service. Ensure that any new variables are correctly configured and that you restart your service if necessary.

    Ensure that your bot's language settings are correctly configured for non-English languages. This includes setting the primary language during project creation and ensuring that any language-specific responses are provided in your knowledge base.

    After making changes, thoroughly test the bot to ensure that all default responses appear in the desired language and that no English snippets are included during user interactions.

    Thank you!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.