Bot Essentials
Last updated
Was this helpful?
Last updated
Was this helpful?
Create and customize your chatbot using WooChat's Bot Builder tool to enhance interactions and automate processes. Test your chatbot on WhatsApp and publish it with confidence.
WooChat Bot Interface
The Bot Builder is the core of the app, allowing you to design and personalize your chatbot to elevate your conversations. Here's a breakdown of the interface features:
Auto Grid Alignment:
'+' (Zoom In): Zooms in on content for a closer look at details.
'-' (Zoom Out): Zooms out to give a broader view of the canvas.
'[ ]' (Fit to Screen View): Adjusts the view to fit the entire content on the screen.
Lock (Enable View-Only Mode): Locks interactive elements to prevent accidental movement or modification, ideal for presentation.
Beautify Flow: Automatically arranges cards or elements to improve readability and flow.
Side Panel:
Contains five categories: Send Text, Ask Questions, Actions, Utilities, and Connections. Use the search function to quickly select a card or node.
Renaming a Node:
Allows you to rename bot cards or nodes for easier management. Custom names (up to 32 characters) can be assigned and will be visible in the Canvas, node editing mode, and bot session logs.
Test Bot:
Test your bot on WhatsApp before publishing by entering your number and clicking "Test."
Publish:
Ensure you publish any changes made to your bot to update it. Remember to do this during testing to apply new changes.
What is a Variable?
In WooChat bots, a variable acts as a digital container for storing user responses. Here’s how variables can be used:
String (Text): For storing text, numbers, emojis, and links.
Number: For storing numeric values only.
Date: For storing dates.
Array: For storing multiple elements of the same type.
Object: For holding structured data.
Boolean: Used in Condition blocks to check status (e.g., whether agents are online).
Creating Variables
Variables store values based on user inputs or choices within the bot flow. To create a variable:
Choose a card and scroll to "Store response in the variable."
Name the variable (should start with a letter and can include underscores).
Click "Create."
Examples:
Save a customer's name in a variable called "name."
Save a customer's phone number in a variable called "phone."
Deleting Variables
To delete a variable:
Choose the card and scroll to "Store response in the variable."
Click the variable and hover over the delete button.
Confirm deletion in the pop-up.
Validation Settings for Cards
Validation settings ensure the accuracy of data captured by the bot. Core and additional settings include:
Core Validation Settings:
Attempt: Number of attempts allowed for valid input.
Validation Error Message: Custom error message shown when validation fails.
Action on Invalid Response: Defines the action for invalid inputs.
Additional Validation Settings:
Minimum Range: Specifies the lowest valid numeric value.
Maximum Range: Specifies the highest valid numeric value.
Regex (Regular Expression): Describes text patterns using special characters.
Example Regex Patterns:
\d{3}-\d{3}-\d{4}
: Matches phone numbers in the format ###-###-####.
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,}
: Matches email addresses.
^https?://
: Matches URLs starting with http or https.