While the details and usage of regular expressions are beyond this article, they can identify many complex predefined patterns in even large strings of text. Regular Expressions (regex) are used to find patterns in text. However, techniques and tools exist to make our bot appear smarter. We all get frustrated with bots and devices that reply “Hmm, I didn’t get it, say it again, please?” but it is likely an impossible task to anticipate all possible inputs. What if instead of “Hello!”, a user types “Hi!”, “Howdy”, “How do you do?” or even “Good morning”? What if a user enters an unexpected word order turning “Are you a bot?” into “You are a bot, aren’t you?”. How do you imagine a conversation would begin? If a bot sees the text “Hello!” then it might reply with “Hi!”, or “Hello!”. ![]() In this article we look at approaches to developing a simple chatbot that can respond to a basic question in the financial domain. Protocols and API’s now exist such that chatbots can be developed and integrated into social media channels like Facebook and Telegram. Basic understanding of modern Web protocols, including REST is helpful.Ī chatbot (bot) is any program that communicates with human users or other bots using natural language. ![]()
0 Comments
Leave a Reply. |