Quantiphi Interview Question

How do you implement the Chat Bot functionality?