Chatbots have functions. See a demo here.