Chat with us, powered by LiveChat

How to create Drag & Drop Chatbot in just 10 minutes? (Chatbot Flow Builder)

Wish to automate your Customer Support and Sales on WhatsApp?

The AiSensy Chatbot Flow builder now allows you to create Static chatbots hassle-free with its Drag & Drop flow builder.

This tutorial will tell you how to create a Drag and Drop Chatbot using AiSensy's Flow Builder.

aisensy-chatbot-2iod.webp

Messages you can create using Flow Builder

Before we dive into how to create the Chatbot, let's first understand the types of messages you can create & share using the flow.

Text Replies

These are simple text replies you can send users depending on your Catalogue flow.
Text Replies.webp

Quick Replies

You can enter three quick reply buttons that users can click to send you the exact text mentioned in the button.
Quick Replies.webp

Image

Use this to send messages along with an image. Also, you can add a button below the image.
Image.webp

List

Use List to provide users with multiple options to choose from. Lists are super effective, especially if you want to list multiple options for the user.
List2.webp

Section List

Section Lists allow you to categorize your products into relevant sections. E.g. If you offer products under multiple categories e.g. Jeans, Tees, Sweaters etc, using a Section list would be the best way to categorize these products.
Section List.webp

Single Product

Use this to send only a single product to the user along with the product image & checkout link.
Single Product.webp

Multi-Product

Use this if you wish to send images & checkout links of multiple products in a single message.
Multi-Product.webp

Template Message

You can also set the Chatbot to trigger a template message on a particular keyword the user sends.

Note: Template messages with Click tracking enabled can't be used for Chatbot Automation.
Template message.webp

Request Intervention

If you want the Chatbot to transfer the Chat to a Live Agent, you can use "Request Intervention". Just select the Request Intervention option in Flow Builder & select a keyword that will trigger the Request Intervention option.

In the below on the right, the user will automatically transfer from Chatbot when the user clicks the "About AiSensy" button. Yes, it's that simple!!
Request Intervention.webp

How to use Flow Builder to Create a Chatbot

Now, let's go ahead and show you how to use Flow Builder to create a Chatbot using AiSensy's Flow Builder.

Ask a Question

Get the chatbot to collect important user information such as the user's preferences, age, gender & other relevant questions necessary using the "Ask a question" element.

What's more? You can also assign the answer to a particular attribute for better segregation. In the below image, when the user fills in their company name, the Chatbot will assign the reply to the attribute "companyname"
Ask a Question.webp

API Request

Seamlessly integrate API Calls into your Chatbot Flows! Fetch and send data to your endpoints/CRM effortlessly.

Deliver a personalized and efficient user experience with this Pro feature.
integrations-aisensy-3.jpg

Set Attributes & Tag

Using this element, you can capture the user responses as attributes along with a value. Let's say you shoot a Template message and wish to capture the user responses as attributes.

For eg. In the below image, we have 2 quick reply buttons: Show Offers & Not Interested. We want to assign an attribute depending on which Quick reply button the user clicks.

We select the Optin attribute for both replies. However, when the user clicks the "Show offer", you've assigned them the attribute Optin but with the 'Yes' value. When you'll see the lead, you can verify that these users have opted in.

Meanwhile, users who click the "Not interested" button will also be captured under the Optin attribute but with a "No" value meaning these users are not opted in.

Similarly, you can assign these users tags by choosing the "Add tag" element from the Content Block.
Set Attributes & Tag 2.webp

Attribute Validation

With attribute validation, you ensure that the answer given by the user matches the attributes. e.g. If you have asked them for their email ID & they enter their number instead, they'll receive a validation error message to enter their email ID. Only after they provide their email ID, the attribute will get captured.

This is a great way to ensure that the information collected by the Chatbot is relevant!
Validation error.webp

If Else Conditioning

Like the name suggests, If Else conditioning allows you to send users customized True & False responses, depending on their replies. If the reply matches the value, a True response is sent, otherwise, The Chatbot sends the False reply.

You can set the If Else condition based on two conditions: Equal or exists. Let's understand both of these in detail.

1. Equal If Else Condition

For Equal If Else condition, you can verify if the information added by the user matches the exact value you wish to receive as output.If the input added by the user matches the exact value entered by you, they'll receive the True message. Otherwise, they'll receive the False message.For e.g. Let's say you've asked a user about their city and added the Equal condition in If Else element. Under value, you've chosen "Delhi". This means that if a user answers Delhi under city, they'll receive a True response. Otherwise, they'll receive a False response.As you can see, we've added another If Else condition for the False value. If the city answered by the user is Noida, they'll receive the True message.For all other cities, the user will receive a False message.
If Else Conditioning.webp

Exists If Else Condition

The Exists If Else condition is useful when you wish to verify whether a user has submitted any value or not!

Meaning, if the user has submitted any value at all, they'll receive the true message, otherwise they'll receive the False message.

As you can see in the below example, if the user has submitted the Pan card, they'll receive the true message and if they haven't submitted, they'll receive the False message.
Exists If Else Condition.webp

Time-based conditioning

You can set up custom Chatbot responses based on specific time ranges using Time-based conditioning.

For example, if your active business hours are from 10 a.m. to 7 p.m., you can automate a welcome message during these hours. Outside of these hours, you can automate an off-hour message for anyone who contacts you on WhatsApp.

Here’s how you can set this up:
1. Select the Conditioning element.
2. Choose the Time-based conditioning option.
3. Select a relevant attribute. You can use the default attribute Now to fetch the current date and time. Alternatively, create a custom attribute based on your country’s time zone, formatted as 'hh:mm' in UTC.

For messages received between 10 a.m. and 7 p.m., the Chatbot will send a welcome message. Messages received outside this period will trigger an off-hour response.
Time in and Date in Conditioning.webp

Date-based conditioning

Similarly, you can use Date-based conditioning for responses during longer vacations.

To set this up, follow these steps:
1. Select the Conditioning element.
2. Choose the Date-based conditioning option.
3. Use the Now attribute to store the current date or create a custom attribute formatted as 'dd-mm-yyyy' in UTC.

​This allows your Chatbot to handle different responses based on specific dates, ensuring seamless communication during business hours and holidays.
Time in and Date in Conditioning.webp

How to create WhatsApp Chatbot using Flow Builder?

Follow the steps below to create your first Drag and Drop WhatsApp Chatbot via AiSensy.

Unlock Flow Builder

The very first step you need to do is Unlock the Flow Builder.

Flow Builder is an Add-on feature. Purchase to unlock or claim your 14-day free trial (for existing and new users).
Unlock Flow Builder.webp

Create a New Flow

Now, go to Flow Builder and click Create Flow to create the flow for your WhatsApp Chatbot.
Create a New Flow.webp

Add Keywords that will trigger the Chatbot

Clicking the button will open the Flow Builder. Here, you can build the complete flow for your WhatsApp Chatbot.

To start creating your flow, you first need to add Keywords to the "Flow start" element that will trigger the Chatbot flow.

Enter common keywords like Shop, products, and e-commerce depending on what your users enter most to ensure the chatbot gets triggered.

In the below image, we've added multiple keywords that will trigger the chatbot, like 'hi', 'Hello' etc.
Add Keywords that will trigger the Chatbot2.webp

Regex-based conditioning

Regex-based conditioning allows you to trigger the Chatbot flow using regular expressions (regex), which are strings of words. This makes your Chatbot more accessible to end-users by triggering it anytime the user sends a message containing the words specified in your regex.

For example, let's consider you run a plant gifts shop and have set up regex-based conditioning by entering the keyword 'Plant gifts'. If a user sends you a message with the phrase 'Plant gifts' in it, your Chatbot will trigger. For instance, if a user sends 'I want to buy plant gifts', the Chatbot will be triggered since it contains the words specified in the regex.

You can create & test your Regex through this website: https://regex101.com/
Regex (1).webp

Choose an element from the Content Block

Next, drag & drop another element from the Content block or stretch a thread from the "Flow Start" element and choose another element.

Since we need to provide multiple options to the user, we've chosen the "List" element.
Choose an element from the Content Block.webp

Enter body text and relevant buttons

Enter body text and relevant buttons
Enter body text and relevant buttons.webp

Use relevant elements & link them carefully

Building a Chatbot with AiSensy is as easy as it can get. All you need to be careful about is choosing the correct elements from the Content block and linking it to the right element using threads.

It's that simple!!
Use relevant elements n link them carefully.webp

Your Chatbot is ready to go LIVE

In the below image, you can see that we have created a chatbot in which the end goal is to showcase the relevant products to the users and hot deals currently active.

You can see that we have different responses based on the user's reply. If they reply with 'View all products', they'll receive a Multi-product message with all your products, and if they respond with 'Hot deals', they'll receive a single-product message mentioning the hot deal.

You can make as many changes as you want in the Chatbot. After creating the Chatbot, press 'Save Changes' to save your progress.
Your Chatbot is ready to go LIVE.webp

Enable the Chatbot

Last, return to 'Flow Builder' and enable the Chatbot you've just created.

Congratulations🎊
You just activated your first flow!
Enable the Chatbot.webp

Test the Chatbot

This is how the chatbot will work whenever a user enters the keyword that triggers the Chatbot.

This is just an example. You can create a flow with 100s of elements in just one Chatbot.
Test the Chatbot.webp

How to Set Fallback Intent for Your WhatsApp Chatbot?

In the current beta phase, the WhatsApp Chatbot can only respond to queries as per the Chatbot. This means that if the user responds with a message that isn't included in the Chatbot, the Chatbot won't be able to provide a relevant response. For such instances, you can set up a Fallback intent. A fallback intent will trigger whenever a user doesn't respond according to the flow. Here's how to set a Fallback intent👇

Click on Fallback & Intents

Click on Fallback & Intents.webp

Enter Fallback Intent

Next, add a message that will trigger the Fallback intent. You can set the Fallback intent as text, image, or video.

Once you've set the fallback intent, press Done.
Enter Fallback Intent.webp

How to transfer Chats from Chatbot to LiveChat Agent?

If the user doesn't get the answer to their query from the Chatbot & wishes to talk to a human, here's how you can set up the Chatbot to transfer the chat to a Live Chat agent.

Add a 'Talk to Human' button

To enable Chat transfer, you first need to add a Talk to Human button to your flow.
Add a 'Talk to Human' button.webp

Link Request Intervention Element from Content BlockStep

Pick the Request Intervention element from the content block to enable the chat transfer and link it with the Talk to Human button.

Users who click the Talk to Human button will move into the Requesting tab on AiSensy's Live Chat page.
Link Request Intervention Element from Content Block.webp

How to implement Chatbot through a Template Message?

Using AiSensy's Flow Builder, you can enable a Chatbot even through a Template message (valid only for Template messages with quick reply buttons).
This means that clicking any of the buttons in the template message will enable the Chatbot.
You can add Chatbot to up to 3 template messages in a single flow. You must create another flow to add a chatbot for more Template messages.
Note: Template messages with Click tracking enabled can't be used for Chatbot Automation.

Click "Choose Template" from the "Flow Start" element

Click "Choose Template" in the "Flow Start" element to enable Chatbot on a template message.
Click Choose Template from the Flow Start element.webp

Select the preferred template and link the Template Message

You can choose the template message with Clickable buttons that you'd like to enable a Chatbot on and link it to the relevant element, as shown in the image below.
Select the preferred template and link the Template Message.webp

How to enable Chatbot for Click-to-WhatsApp Ads?

You can also link your WhatsApp Chatbot with your Click-to-WhatsApp Ads created via AiSensy.
Simply select an active Click-to-WhatsApp Ads Campaign and connect it to the relevant Chatbot as shown in the image below.
You can add Chatbot to only one Click-to-WhatsApp Ads per flow.

How to enable Chatbot for Click-to-WhatsApp Ads.webp

How to use API Calls Request feature in Chatbot Flows?

Create a New Flow

Go to "Flow Builder" and click "Create Flow" to create the flow for your WhatsApp Chatbot.
Create a New Flow2.webp

Select API Request from the Content Block

... Now that you have an account, you're almost done. In the next step you can choose your individual plan and create a subscription ...
Select API Request from the Content Block.webp

Add the URL of the API Endpoint

Specify the URL of the API endpoint you want to communicate with. This URL should resemble the one used in Postman.
ssss.webp

Select the Request Type

Select the appropriate request type from the available options: GET, POST, PUT, PATCH, or DELETE.
Select the appropriate request type.webp

Parameters

Users can either provide static values for the parameters or select attributes to dynamically share information within the flow.
Parameters.webp

Headers

Include any necessary headers for your API request. Headers provide additional information about the request, such as authentication credentials or content type.
Headers.webp

JSON Raw Data

If required, you can send JSON raw data as part of the request body. Users can pass attribute values within the JSON object using the $ sign followed by the attribute name.
JSON Raw Data.jpg

Test the API

Once you have configured the API request, you can click on the "Test" button to send the request and verify its functionality. This will simulate the actual API call and provide you with the response.
Test the API.jpg

Capture Response Data

After a successful API response, you have the option to capture specific data from the response and save it as attribute values. This allows you to store and use the retrieved data within your flow for further processing.
Capture Response Data.jpg

Save the Request

If you are satisfied with the configured API request, you can click on the "Save" button to store the request for future use. This ensures that your request settings are preserved and can be easily accessed when needed.
Save the Request.jpg

Setting Block Level Configuration

Within the Flow Builder, you can define block-level actions based on the API response status codes.
The available options include "Status Fallback" and "Custom."

Setting Block Level Configuration

Within the Flow Builder, you can define block-level actions based on the API response status codes. The available options include "Status Fallback" and "Custom."
Setting Block Level Configuration.webp

Status Fallback

Define a fallback action to be executed when the API responds with a specific status code. For example, if the API returns a 404 status code (Not Found), you can redirect the flow to another block or perform a specific action.
Status Fallback.webp

Custom

Customize the flow based on different status codes. You can add multiple status code redirections to handle different scenarios. For instance, redirecting to a specific block based on a 200 status code (OK) and vice versa for other status codes.

By utilizing the API Request feature in AiSensy's Flow Builder, you can seamlessly integrate external APIs into your conversational flows and automate interactions with external systems.

Final Step

... lastly you can invite your team and collaborate to create something super amazing. What are you waiting for? Get started now!
abstract shape 20

Ready to get Started?

Start your AiSensy 14-Day FREE Trial. No Credit Card needed.

⚡️Powered by Official WhatsApp Business API