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

Setting user attributes

In addition to the user input cards, there is also another way to save information in context. This can be done by using the set up user attribute card. Using this card, you can set context-specific information at any point during the conversation. Let's take a look at how to do it. To add this card, choose ADD A CARD, click the + icon, and choose the Set Up User Attribute card:

The preceding screenshot shows the user-likes-history variable being set to true when the user asked for historical attractions. This information can later be used to drive the conversation (as used in the Go to Block card) or to provide recommendations. Variables that are already in the context can be reset to new values or no value at all. To clear the value of a variable, use the special NOT SET value from the drop-down menu that appears as soon as you try to fill in a value for the variable. Also, you can set/reset more than one variable in a card.

主站蜘蛛池模板: 永修县| 泉州市| 资中县| 勐海县| 扶余县| 和政县| 广丰县| 积石山| 蒙山县| 泰来县| 江源县| 兴化市| 五华县| 蒙自县| 玉屏| 黄浦区| 平远县| 开江县| 托里县| 陵川县| 故城县| 无锡市| 定南县| 光泽县| 嘉善县| 临海市| 垦利县| 监利县| 巴楚县| 道孚县| 临高县| 天长市| 通河县| 隆化县| 宜川县| 泸州市| 绍兴县| 南川市| 鸡东县| 建水县| 忻州市|