Manipulate (translate) user's input before it is injected into the bot

Moshe Levi 11 Reputation points
2021-08-04T13:05:17.937+00:00

I useing Microsoft bot composer framework, and I want to change the user's input before it is injected into the bot. Can it be done?

The purpose of the change is to translate the user's input into English, because the language of the user's input is not supported by LUIS.

I was try to access the input in the controller, But I did not find where the input is stored in the existing objects there (like 'Request' or '_bot').

I do not want to do the translation inside the bot, because I want to use the input already for the trigger recognition. Thanks!

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
942 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,176 Reputation points
    2021-08-05T20:59:38.253+00:00

    Hi, thanks for reaching out. You may be able to implement middleware to translate user inputs. I found a tutorial that may be helpful.


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.