Quantiphi interview question

How do you implement the Chat Bot functionality?