We strongly encourage you to learn some of the basic concepts of Flow.ai. We also have a number of tutorials explaining different use cases and how to create them.
Hello world tutorial
In this tutorial, we are going to build a simple “hello world” flow bot. We are going to train an intent to understand a greeting and reply with the text “hello world”.
Create a flow
Add a trigger
After creating a new flow rename it to Hello World, drag and drop a text trigger from the sidebar and press save.
Train the intent
After dragging and dropping the text trigger, type in hello.
Press the train button to add training examples to the intent that is connected to this trigger.
Rename the intent to Intent Greeting
In order to give the bot the ability to respond to a variety of inputs, we need to add additional examples. The AI engine will start using NLP (Natural Language Processing) when it has at least 5 examples.
Note: The more examples, the better the AI engine will work. We advice to add at least 10 examples for an intent to work well
After adding the examples press save and return to the flow.
Add a reply
The bot is now trained to understand a greeting, let’s drag and drop a text reply to the flow. Type in Hello World as the text.
Reply in context
The bot understands a greeting and will reply with Hello World. We can now reuse our trained intent to respond differently when a user has already greeted the bot.
Select the library tab within the sidebar and drag and drop the “Intent Greeting” below the reply.
And again place a* text reply *after that with a text like: “Hello Again!”