We’ve just released a major new report, The CIO’s Guide To Automation, AI, And Robotics. We find that, to stay ahead, CIOs, CTOs, CDOs, and other executives integrating leading-edge technologies into their companies’ operations and business models must turn their attention to automation technologies, including intelligent machines, robotic process automation (RPA) bots, artificial intelligence, and physical […]
Its a chat-bot — For simplicity reasons in this article, it is assumed that the user will type in text and the bot would respond back with an appropriate message in the form of text (So, we will not be concerned with the aspects like ASR, speech recognition, speech to text, text to speech etc., Below architecture can anyways be enhanced with these components, as required).
As ChatbotLifeexplained, developing bots is not the same as building apps. While apps specialise in a number of functions, chatbots have a bigger capacity for inputs. The trick here is to start with a simple objective and focus on doing it really well (i.e., having a minimum viable product or ‘MVP’). From that point onward, businesses can upgrade their bots.
At this year’s I/O, Google announced its own Facebook Messenger competitor called Allo. Apart from some neat features around privacy and self-expression, the really interesting part of Allo is @google, the app’s AI digital assistant. Google’s assistant is interesting because the company has about a decades-long head start in machine learning applied to search, so its likely that Allo’s chatbot will be very useful. In fact, you could see Allo becoming the primary interface for interacting with Google search over time. This interaction model would more closely resemble Larry Page’s long-term vision for search, which goes far beyond the clumsy search query + results page model of today:
Ultimately, only time will tell how effective the likes of Facebook Messenger will become in the long term. As more and more companies look to use chatbots within the platform, the greater the frequency of messages that individual users will receive. This could result in Facebook (and other messaging platforms) placing stricter restrictions on usage, but until then I'd recommend testing as much as possible.
1-800-Flowers’ 2017 first quarter results showed total revenues had increased 6.3 percent to $165.8 million, with the Company’s Gourmet Food and Gift Baskets business as a significant contributor. CEO Chris McCann stated, “…our Fannie May business recorded positive same store sales as well as solid eCommerce growth, reflecting the success of the initiatives we have implemented to enhance its performance.” While McCann doesn’t go into specifics, we assume that initiatives include the implementation of GWYN, which also seems to be supported by CB Insights’ finding: 70% of customers ordering through the chat bot were new 1-800-Flowers customers as of June 2016.
Founded by Pavel Durov, creator of Russia’s equivalent to Facebook, Telegram launched in 2013 as a lightweight messaging app to combine the speed of WhatsApp with the ephemerality of Snapchat along with claimed enhanced privacy and security through its use of the MTProto protocol (Telegram has offered a $200k prize to any developer who can crack MTProto’s security). Telegram has 100M MAUs, putting it in the second tier of messaging apps in terms of popularity.
When considering potential uses, first assess the impact on resources. There are two options here: replacement or empowerment. Replacement is clearly easier as you don’t need to consider integration with existing processes and you can build from scratch. Empowerment enhances an existing process by making it more flexible, accommodating, accessible and simple for users.
In a bot, everything begins with the root dialog. The root dialog invokes the new order dialog. At that point, the new order dialog takes control of the conversation and remains in control until it either closes or invokes other dialogs, such as the product search dialog. If the new order dialog closes, control of the conversation is returned back to the root dialog.
What if you’re creating a bot for a major online clothing retailer? For starters, the bot will require a greeting (“How can I help you?”) as well as a process for saying its goodbyes. In between, the bot needs to respond to inputs, which could range from shopping inquiries to questions about shipping rates or return policies, and the bot must possess a script for fielding questions it doesn’t understand.
Chatbots can perform a range of simple transactions. Telegram bots let users transfer money, buy train tickets, book hotel rooms, and more. AI chatbots are especially sought-after in the retail industry. WholeFoods, a healthy food store chain in the US, uses a chatbot to help customers find the nearest store. The 1-800-Flowers chatbot lets customers order flowers and gifts. In the image below, you can see more ways you might use AI chatbots for your business.
Build a bot directly from one of the top messaging apps themselves. By building a bot in Telegram, you can easily run a bot in the application itself. The company recently open-sourced their chatbot code, making it easy for third-parties to integrate and create bots of their own. Their Telegram API, which they also built, can send customized notifications, news, reminders, or alerts. Integrate the API with other popular apps such as YouTube and Github for a unique customer experience.
Chatbots succeed when a clear understanding of user intent drives development of both the chatbot logic and the end-user interaction. As part of your scoping process, define the intentions of potential users. What goals will they express in their input? For example, will users want to buy an airline ticket, figure out whether a medical procedure is covered by their insurance plan or determine whether they need to bring their computer in for repair?
Now, with the rise of website chatbots, this trend of two-way conversations can be taken to a whole new level. Conversational marketing can be done across many channels, such as over the phone or via SMS. However, an increasing number of companies are leveraging social media to drive their conversational marketing strategy to distinguish their brand and solidify their brand’s voice and values. When most people refer to conversational marketing, they’re talking about interactions started using chatbots and live chat – that move to personal conversations.
aLVin is built on the foundation of Nuance’s Nina, the intelligent multichannel virtual assistant that leverages natural language understanding (NLU) and cognitive computing capabilities. aLVin interacts with brokers to better understand “intent” and deliver the right information 24/7; the chatbot was built with extensive knowledge of LV=Broker’s products, which accelerated the process of being able to answer more questions and direct brokers to the right products early on
At a high level, a conversational bot can be divided into the bot functionality (the "brain") and a set of surrounding requirements (the "body"). The brain includes the domain-aware components, including the bot logic and ML capabilities. Other components are domain agnostic and address non-functional requirements such as CI/CD, quality assurance, and security.
I will not go into the details of extracting each feature value here. It can be referred from the documentation of rasa-core link that I provided above. So, assuming we extracted all the required feature values from the sample conversations in the required format, we can then train an AI model like LSTM followed by softmax to predict the next_action. Referring to the above figure, this is what the ‘dialogue management’ component does. Why LSTM is more appropriate? — As mentioned above, we want our model to be context aware and look back into the conversational history to predict the next_action. This is akin to a time-series model (pls see my other LSTM-Time series article) and hence can be best captured in the memory state of the LSTM model. The amount of conversational history we want to look back can be a configurable hyper-parameter to the model.