Chatbots are no longer reserved for developers or big companies with fat wallets that can afford to hire chatbot developers.
Today, every business can create a custom chatbot.
If you happen to have some experience in chatbot building already, choose your expertise level to skip to the right section:
- Create a custom chatbot from a template
- Build a chatbot from scratch
- Develop a chatbot using an API
So, ready to create a custom chatbot for website or for Facebook Messenger? We will guide you through the different steps.
How to make a custom chatbot from an existing script?
Let's get started the easy way. Using an existing script to create a custom bot for your website or your Whatsapp number is easy to do.
For example, you can find below some custom bot scripts to help you create your first scenario.
The routing bot template
Routing is one of the keys to success when building a great customer experience. Custom chatbots can help a lot because it lets you gather data about customers' orientation. Therefore, you're able to send the conversation straight to the correct department in your company, with no hassle for the end-user.
At Crisp, we're big fans of routing chatbot, that's why we've created this script to let you prepare yourself for your next automated custom bot.
The lead generation bot template
Custom chatbots are a powerful tool in terms of lead generation, especially out of office hours. It's a powerful lead gen tool that can bring lots of value to your sales & marketing team.
At Crisp, we've created a pre-sales custom chatbot that is automating the demo booking process. This chatbot script will give you the basis for a powerful 24/7 lead generation chatbot.
The away bot template
Office hours are a tough challenge, especially for B2C brands, as they must be available at every moment. However, teams need to rest.
An away chatbot can help you to improve first response time and decrease dissatisfaction due to slow response time.
Step 1: Choose the chatbot template you want to customize
Go to Plugins and look for Bot, click ⚙️ "Configure the plugin". Then click on "New Scenario" at the bottom left of your screen.
Tips: There are existing templates already available in your account.
Click on "Use a sample scenario..."
Step 2: Customize your message
Depending on the scenario that you have chosen, messages will be different. However, you can still customize each step of your chatbot template to build the best custom chatbot.
To customize your chatbot, modify the content of each block. To change the text sent through the bot, click on a "Send Message" block, and edit it.
Then click on "Add message for locale" and "Apply changes".
Don't forget to save your scenario; otherwise, you'll have to do everything again.
Note that you can try your bot on the right side to see how it would behave in front of a customer.
Once you're ready, hit "Publish my scenario"🚀.
Create a custom chatbot from scratch
Some chatbot development platforms use complicated bot logic to create simple chatbots. They aim at chatbot programming specialists.
You don’t need to understand programming languages to create your custom bot. Building a chatbot without coding is fun and easy!
Most of these services help create your chatbot for free, but that doesn’t mean they all offer the same features. However, most chatbot platform provide a good list of features to let you craft great custom chatbots.
For this example, we will explain how to build a custom bot that answer the visitor through your chat widget when you're not available.
Step 1: Reach out to the bot section
If you don't have access to the custom bot builder, you'll have to create an account. It's free of charge and doesn't require any CCs.
To access your chatbot software, reach out to "Plugins" and then look for "Bot"
Step 2: Click "New Scenario" and "New Blank Scenario"
You have to click on "New Scenario" and "New blank scenario" so you can access a blank page where you can get started with your new custom bot scenario.
Step 3: Add the different block to get started
- we're going to add an event block that is "User Message Matches", it needs to be set as "*" and also select the different channels you're wishing to allow the chatbot to trigger on.
2. Now, we're going to add a condition that checks if you're offline or not. To do so, we're going to use a condition block called "Check Website Availability" and set it as "away".
3. Now, we need to send a message to users who send us a chat when we're not online. To do so, we're going to use 2 different action blocks: "Send Message" and "Show Compose".
Note that you can also make your custom chatbot multilingual so it can answer in your customers' language.
Here is what it should look like when you create the Send Message (the type is 'Text Message').
Don't forget to save it and to publish it, but you've done it! You've created your first custom chatbot. 🎉
You can try it on the right side of your scenario to give you an overview of what it looks like.
How to add a custom chatbot to your website or Facebook Messenger?
Now that you're ready to publish your first custom chatbot, it's time to think about your website.
To do so, you have very straightforward solutions available at your fingertips:
How to create a custom bot that uses AI and NLP?
From now, you have to be aware that you'll require coding skills because you'll have to connect your chatbot software with an AI solution so it creates a smart chatbot that can take advantage of NLP to process customers' questions.
You will learn how to connect Dialogflow with Crisp. If you are a complete novice about Dialogflow chatbot platform or new to the Crisp API, no worries, everything will be explained.
Setup your AI custom chatbot
Browse to: https://dialogflow.cloud.google.com/
⚠️ If you already have an agent and an intent, you can go to the next section.
Create an agent.
- If you do not have an account, create one.
- Click on Create new agent in the left navigation and fill in the fields.
- Give a name and set a default language to your agent. Then, click the Create button.
Build your first intent
⚠️ In this section, we will create a simple ping pong intent. It will be easily extendable.
- In the intent pane, click on Create intent and give it a name.
- Now, press Add training phrases in the Training phrases section of your intent. Just add "ping" training phrase.
- Switch to Responses, and add "pong" response.
- Click on Save
Test your intent
On the right Try it now, write: ping. You should see: pong has a response.
Get your Dialogflow Credentials
- Follow Google's guide: https://cloud.google.com/docs/authentication/production#create_service_account
- In your service account, add the role: Dialogflow API client.
- Download credentials in the
Setup your code
- Clone the GitHub repository: https://github.com/crisp-im/crisp-dialogflow and get the project dependencies: npm install
- Get your Crisp API token: https://go.crisp.chat/account/token/
- Add respectively the identifier and key inside the cloned repo, fields:
- Add your Dialogflow project ID (or agent ID) in
- Append your environment variables with:
- In the same terminal, switch to project root and execute:
Test your chatbot
As a customer, send a "ping" message.
You're now ready to create an AI custom chatbot using an NLP solution such as Dialogflow.