官术网_书友最值得收藏!

Default block

Alongside the Welcome message block, there is a Default answer block. This block is used by the chatbot as response to any input from the user that it does not understand. Go ahead and change the contents of the block as follows:

Now test the bot by typing in a question to the chatbot on Messenger. You can see how the default message gets used:

Let us now explore how to handle NL input so that users don't end up with this default response. To set up the chatbot to understand NL inputs, find and click the Set Up AI option in the menu on the far left of the page. This is where we will specify NL input templates and their corresponding chatbot responses:

Click ADD AI RULE. You will see two fields. Type user utterances and bot responses in the respective fields:

Bot responses can either be text or blocks. By providing block names, the chatbot can be redirected to appropriate blocks when the user chooses to type responses rather than push buttons. After having added a few rules, go back to Messenger and try the bot with the NL inputs:

You can also add an element of uncertainty and randomness by choosing the random flag in bot response and add more than one response. The bot would then choose one response randomly.

主站蜘蛛池模板: 特克斯县| 夹江县| 集安市| 昔阳县| 成武县| 元阳县| 温州市| 连州市| 望谟县| 华阴市| 嘉义县| 涞源县| 商都县| 北宁市| 盐池县| 牟定县| 海南省| 柘城县| 建始县| 正镶白旗| 辽源市| 高碑店市| 综艺| 阜新市| 鄂托克前旗| 江源县| 哈密市| 茶陵县| 遂昌县| 宜阳县| 保定市| 景泰县| 陇西县| 上饶县| 五河县| 安岳县| 方山县| 保山市| 右玉县| 阳谷县| 微博|