1. Creating a new bot
Never built a bot before? We got you. Follow this bot tutorial with key steps on how 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.Then go to the
3. In the
Generalflow, you will see an overview of all the bot dialogs that are part of this flow. When creating a new bot, you always start with a few predefined dialogs:
Default dialogs appearing in the General Flow once a bot is created on Chatlayer.
The first thing you'll need to do is create an introduction. The introduction dialog is the first message your users will see, the dialog 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 dialog! 👏
Now, let's make this introduction seem more natural.
Using random messages means that different messages will be alternated within a same dialog, making the conversation feel more human-like.
- To add a random message, open your Introduction dialog 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 dialogs to make the conversation feel more natural.
- Click on
Save. You made an Introduction dialog with different ways to say the same thing and that is fitted to your bot! 👏
Time to check if we configured everything correctly. You can test your bot by using our built-in emulator.
- 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 bot dialog! 🥳
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 👉🏻