Building Chatbots in Python
Alan Nichol
Co-founder and CTO, Rasa
Conversational software is not a new idea!
USER: Hello!
BOT: I can hear you, you said: 'Hello!'
USER: How are you?
BOT: I can hear you, you said: 'How are you?'
def respond(message): return "I can hear you! you said: {}".format(message)
def send_message(message): # calls respond() to get response
send_message("hello!")
USER: hello!
BOT : I can hear you! you said: hello!
import time
time.sleep(0.5)
Building Chatbots in Python