Decoupling business logic with dialog flow scripting
Giorgio Robino
31

Hi Giorgio,

thanks for your message. You’re right about that: Writing the logic of the chatbot hard into the backend code isn’t the best solution. But its a good way to get started, to see with a very simple program with maybe only one file of code how bots work. But you will see the limitation of this very fast. Maybe at the point when you write your second bot, which is just a bit different and you need to rewrite a big part of the code and debug multiple times.

I am currently focussing on this simple bots (generation I). The whole chatbots topic is so new to most of the users, that they are very forgiving about the way they work and even love this simple, scripted flows. Especially when you use the custom keyboards to have a really quick conversation without even typing. But you need the right use cases for that…

I am currently focussing on very young users and test different use-cases to try to evaluate the requirements of the bots and learn about it. I am more comfortable in using a small hard coded bot in node.js for the first test and don’t want to have a blown-up setup for that. If I need a bot, or a part of a conversation where I need a better understanding of the language, I use wit.ai for that. At the moment I try to stay as much high-level as possible and not dive to deep into NLP/MachineLearning/..

For most of my current works it would be sufficient to have one file next to the logic-backend where I document the conversation. I wrote something like that a month ago myself to enable my non-tech coworkers to test conversation-scripts on a bot. But from a simple prototype with just a single conversation-flow to multiple-answers and branches it good too complicated to easy document it with my system. So now we are back in the “stone-age” ;-) But new tools, platforms for creating bots without programming-skills, messenger-features pop-up nearly every day. So maybe we just need a bit more time and a more tightened environment without so many changes for that…

Like what you read? Give Matthias Nannt a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.