Comment on page
1. Creating a new bot
Never built a bot before? We got you. Follow this tutorial on the key steps to build a chatbot from scratch on Chatlayer!
Are you working on an existing bot? Then you don't need to set up a new one, just skip ahead to the next tutorial:
What better way to learn how to build a bot than building one! To help you get started, we'll go through a bot-building tutorial together.
In this tutorial, you will create a bot called Choo Choo: a digital assistant that can help people book train tickets.
View of the template menu on the My Bots page on Chatlayer. Either build a bot from scratch or use a template.
4. Now enter
Choo Choo + your first nameas the name of the bot, so you can easily find it again
5. Then select your primary language. This is the language that your bot will use. If you'd like to create a multilingual bot, you can add extra languages.
6. Now click
Createand your first bot is created! 👏
- 1.In the menu on the left, click on
- 2.Under the
Flowtab, go to the
3. In the
Generalflow, you will see an overview of all the blocks that are part of this flow. When creating a new bot, you always start with a few predefined blocks. We will just need some of them for this tutorial, but if you'd like to know more about them please read this page.
Predefined blocks in the General flow.
To navigate the screen, you can zoom in or out by using the scrolling wheel, or with your trackpad. You can also click and drag to move through the blocks tree.
The first thing you'll need to do is create an introduction. The introduction block is the first message your users will see, the block your bot will use to introduce itself and help users understand its functionalities. Introductions are crucial to set the proper expectations of a bot.
- You can edit the introduction by clicking the
Since this is our first bot and our first message, let's start with a simple text message:
- Delete the predefined greeting message by selecting the following text:
This is the first message your bot will send to the user. Use it to introduce your bot and briefly explain what it can do. Tip: mention the 3 most common use cases your bot can help the user with.
- Replace it with the following text:
Hello there, I'm Choo Choo, your digital assistant
- Click on
Textin the section
Add bot messageto create a second message and enter the following text:
How can I help you today?
- The result will be:
- Click on
Save. You just wrote your first block! 👏
Now, let's make this introduction seem more natural.
Using random messages means that different messages will be alternated within a same block, making the conversation feel more human-like.
Just like in real conversations, users will find it odd if your bot always replies with the exact same message. Even worse: they might not like using it at all and this could lead to an increasing drop-off rate. So imagining a bunch of different ways for your bot to say the same thing is highly valuable.
- To add a random message, open your Introduction block again and click on
+ Add random messageto enter the following text:
What can I do for you?
- The result should be:
Add random messages to your blocks to make the conversation feel more natural.
- Click on
Save. You made an Introduction block with different ways to say the same thing and that is fitted to your bot! 👏
Once you modified your Introduction block, you will see the text you've entered appearing on the canvas
Time to check if we configured everything correctly. You can test your bot by using our built-in emulator.
Testing your bot as you are building it is a great way to have a first critical look at how the conversation feels but also to check if everything runs as expected. Test your bot as much as possible, as directly as possible!
- To open the Emulator to test your bot, click on the
Test your botbutton in the lower right corner of the screen:
Click on the Test your bot button to open the Emulator.
If you have configured everything correctly, Choo Choo will now start the conversation with the introduction you just created.
Congrats, you just created your first block! 🥳
You now have the done the following:
- Created your own tutorial bot
- Changed the introduction message
- Added a new message and a random message
You should now know:
- How to change a bot message
- What the emulator is, and how to check your bot message in the emulator
Check our next tutorial to learn how to make your bot smarter with AI 👉🏻