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

What is context?

Context is like a session, where previous session information is maintained so that the next context can have access to that session information. For example, upon meeting a stranger in a bar, you initiate a conversation, asking the name of the person you are speaking with. From that point on, you know his or her name and you might use his or her name during the conversation. Another example is during a conversation, where you are asked the ambiguous question, "When is his birthday?" by a friend, but you do not know who "he" refers to, in which case, you might ask your friend who he or she is referring to. When your friend explains that they are asking about John Doe's birthday, you have successfully established the context that "he" refers to John Doe.

In Dialogflow, contexts can also be used to establish and control conversational flow, allowing only a specific intent to be triggered if specific contextual requirements are met. For example, during the checkout process in an e-commerce store, you only allow the user to buy an item if all the necessary requirements are gathered, such as credit card information and a shipping address.

主站蜘蛛池模板: 赞皇县| 保康县| 瑞安市| 海口市| 滦平县| 谷城县| 荔波县| 泰顺县| 长宁区| 甘南县| 望江县| 石家庄市| 根河市| 临海市| 阿克| 尼木县| 太湖县| 罗甸县| 乌兰察布市| 栾城县| 宁波市| 双桥区| 深水埗区| 莱芜市| 禹州市| 定襄县| 牙克石市| 湟源县| 新营市| 项城市| 防城港市| 荣昌县| 新源县| 富民县| 德江县| 建湖县| 柳江县| 商城县| 湖州市| 新余市| 德阳市|