In this video, you will learn what robot fields are and how to use them within flows in Wabb
Bot fields in WhatsApp Bot Builder (WABB) are shared data storage areas accessible by all users interacting with your bot. They are useful for tracking information that applies globally, such as coupon distribution or event registrations. Hereβs how to effectively use them:
What is a Bot Field?
Shared Data: Unlike user fields, which store individual user data, bot fields hold information accessible to everyone.
Global Updates: When a bot field is updated, the change is visible to all users in real time.
Example Scenarios
Tracking Coupon Distribution:
Purpose: Keep a count of distributed coupons.
Functionality: Increase the count each time a coupon is requested. Notify users when the limit is reached.
Survey Participation:
Purpose: Track how many users have completed a survey.
Functionality: Increment count for each completion and notify when targets are met.
Stock Management:
Purpose: Monitor product stock levels.
Functionality: Decrease stock count with each purchase and alert users when out of stock.
Event Registrations:
Purpose: Count event sign-ups.
Functionality: Increase count per registration and inform users when fully booked.
Implementing Bot Fields
Step 1: Creating the Bot Field
Access Settings: Navigate to settings in your platform and click on the Bot Fields menu.
Create Bot Field: Click "Create Bot Field" and fill out the form.
Details:
Name: Choose a descriptive name (e.g., "Total Coupons").
Type: Select the data type (e.g., number).
Initial Value: Set a starting value (e.g., 0).
Step 2: Designing the Flow
Menu Creation:
Create a menu with options like "Yes, I want a coupon."
Action Block:
Add an action block to update the bot field when an option is selected.
Field Selection:
Choose the relevant bot field and set the operation (e.g., increase by 1).
Step 3: Setting Conditions
Use condition blocks to check if certain thresholds are met (e.g., coupons distributed).
Send appropriate messages based on these conditions to inform users of the status.
Managing Bot Fields
To edit or delete a bot field, access the Bot Fields section in Settings, select the desired field, and choose the appropriate action.
By using bot fields, you can efficiently manage shared data across your chatbot interactions, improving user engagement and operational efficiency. If you have any questions, our support team is available through the help center chat.