Building Chatbots in Python
Alan Nichol
Co-founder and CTO, Rasa
"I'd like some Kenyan beans"
"I'm sorry, we're out of those. Shall I order some Brazilian ones for you?"
"Yes please"
"Can I get a box of 200 brown filters"
"I'm sorry, we're out of those, but I can get your some white ones. Should I order those for you?"
"Yes please"
action
and pending_action
pending_action
is saved in the outer scope"I'd like to order some coffee"
state = INIT
action = "request_auth"
pending_state = AUTHED
"555-12345"
state = AUTHED
action = "acknowledge_auth"
pending_state = None
Building Chatbots in Python