# Set up WhatsApp ChatBot

Our dashboard includes a chatbot feature that lets you design and manage your own WhatsApp chat flows, providing an intuitive way to create automated conversations and enhance customer interactions.

<figure><img src="/files/C8pXNHJnmmdeR8FEyZ1s" alt=""><figcaption></figcaption></figure>

**Getting Started**

1. **Creating Your Chatbot**:
   * Upon accessing the chatbot feature, a form will open asking you to provide a name for your chatbot. Choose a name that represents the function or purpose of your chatbot.
   * Additionally, you will have the option to choose a registered WhatsApp phone number for your chatbot. This step is optional, meaning you can create your chat flows without connecting to a WhatsApp registered number. Note that, as of now, one phone number can be connected to one chat flow.
   * You will have the option to add keywords. This step is optional. If added, the chatbot will start replying when a user sends a first message that matches the keywords.
   * Enable session expiry to set an idle time in minutes. If the user becomes inactive during a conversation, the chatbot will automatically send a session expiry message.
2. **Drawable Page Interface**:
   * After naming your chatbot and optionally selecting a WhatsApp phone number, you will be taken to a drawable page. This is where you can define and visualize your WhatsApp chat flow.
   * The drawable interface allows you to create nodes and connect them, representing the flow of the conversation.

**Creating Your Chat Flow**

1. **Adding Messages**:
   * **Text Messages**: You can add simple text messages that will be sent to users at specific points in the conversation.
   * **Media Messages**:Upload and share images, videos, documents, stickers, audio, contacts, and locations with users.
   * **Interactive Messages**: Enhance user engagement with interactive elements such as buttons, lists, and links for quick responses.
   * **Conditional Logics**:Control how the conversation flows by setting up rules. Based on whether a condition is met, the bot automatically routes the user to the correct next step.
     1. **User input & value** \
        Define conditions based on what the user types or a specific value you set. If the condition is satisfied, the flow moves to the corresponding **Yes** step. If not satisfied, it redirects to the **No** step — ensuring every user always follows the right path.
     2. **Business hours**

        When a user messages within the configured time zone and active time window, the flow continues to the next step. Messages received outside business hours are routed to a separate fallback step.
   * **Integration :**&#x59;ou can trigger automated actions and extend your conversation flow.
     1. &#x20;**Webhook**&#x20;

        Call any external API directly from your flow\.You can test the webhook before saving and capture the response. Based on the response received, the flow can be routed to different next steps — letting you branch logic depending on what the external service returns.
     2. **Nested bot**

        Within your deployed bot, you can connect other bots you've already built and saved on the platform. When the conversation reaches this step, messages are passed through the connected bot — allowing complex, reusable sub-flows to run seamlessly within the main conversation.
   * **Frequency Control:**&#x53;et a trigger frequency to manage how often a flow runs. You can choose to either stop the flow entirely or skip the current step and move forward if the time limit is reached.
2. **Defining the Flow**:
   * Use the drawable interface to connect different messages and create a coherent conversation flow.
   * Each node represents a step in the conversation, and arrows define the path the conversation takes based on user interactions.
3. &#x20;**Test Your Flow**:
   * Once you have defined your chat flow, save your progress and use our built-in simulator to test it. This allows you to preview exactly how the chatbot interacts with user responses in real time, ensuring everything works perfectly before you deploy it.
4. **Saving and Deploying the Flow**:
   * Once you have defined your chat flow, save the flow.
   * To see your chat flow in action, deploy the flow. This will activate your designed conversation and make it functional for user interactions.

**Chatbot Performance Analytics**\
Gain deep insights into how your automation is performing with our comprehensive data dashboard.

Track the following key metrics to optimize your user experience:

* Total Users:The number of users who have interacted with the chatbot since its deployment.
* Unique Users:The number of distinct user who have messaged the bot.
* Active Conversations: The number of conversation currently in progress.
* Completion Rate: The percentage of users who started a flow and successfully completed.
* Drop-off Rate: The percentage of users who exited the flow before finishing.&#x20;

To understand the chatbot feature better and see it in action, please watch our instructional video&#x20;

{% embed url="<https://d7networks.com/email-files/D7images/whatsappdemo_chatbot.mp4>" %}

**Important Note :** To see your created chat flow in action, you must connect it with a Meta-registered business phone number. This step is essential for the chatbot to interact with users via WhatsApp.

**Feedback and Support**

As this feature is in beta, your feedback is invaluable to us. Please share any issues or suggestions you have to help us improve the chatbot functionality. For support, reach out to our customer service team via email at  *<mark style="color:blue;"><support@d7networks.com>.</mark>*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.d7networks.com/whatsapp/set-up-whatsapp-chatbot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
