【发布时间】:2022-05-23 22:33:26
【问题描述】:
! var name = Alex
+ my name is *
* <formal> == <bot name> => Wow, we have the same name!<set name=<formal>>
* <get name> == undefined => <set name=<formal>>Nice to meet you!
- <set oldname=<get name>><set name=<formal>> I thought your name was <get oldname>?
我不明白 rivescript 解释器将如何按顺序解释此代码,尤其是第 4 行让我很困惑。有人可以告诉我这段代码是如何逐行执行的吗?
例如:- 在第 4 行 (
因此,如果用户说 Alex,然后说 John。第 4 行将被触发,机器人会告诉用户他的名字是 Alex.
【问题讨论】:
标签: python chatbot rivescript conversational-ai conversational-design