Skip to main content
All CollectionsFlow BuilderAction Block
What Are and How to Use Bot Fields in Wabb
What Are and How to Use Bot Fields in Wabb

Learn how to use and manage Custom Bot Fields in Wabb

Updated over 3 months ago

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

  1. 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.

  2. Survey Participation:

    • Purpose: Track how many users have completed a survey.

    • Functionality: Increment count for each completion and notify when targets are met.

  3. Stock Management:

    • Purpose: Monitor product stock levels.

    • Functionality: Decrease stock count with each purchase and alert users when out of stock.

  4. 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

  1. Access Settings: Navigate to settings in your platform and click on the Bot Fields menu.

  2. Create Bot Field: Click "Create Bot Field" and fill out the form.

  3. 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

  1. Menu Creation:

    • Create a menu with options like "Yes, I want a coupon."

  2. Action Block:

    • Add an action block to update the bot field when an option is selected.

  3. 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.

Did this answer your question?