How to give personalised greeting in Watson Conversation?

前端 未结 3 1079
名媛妹妹
名媛妹妹 2021-01-20 00:36

While Defining the Dialog in the Watson Conversation I\'m not able to greet user with his/her name or I\'m not able to detect contact number sent by the user and rephrase it

3条回答
  •  粉色の甜心
    2021-01-20 01:27

    Do you already have access to this information? You can send these values through as context, and refer to them using $context_variable The same goes for collecting information from a user. You can capture things using regular expressions via your application, or using some Spring Expressions, you can see the text.matches here: https://www.ibm.com/watson/developercloud/doc/conversation/dialog_reference.shtml You would store this as context, and then refer to it using $context_variable again. Information like names and phone numbers is quite open ended, so can be difficult to capture without using an open entity extraction engine, which we are researching best ways to incorporate this.

提交回复
热议问题