WotNot Help Center
Create a ticketBook a demoProduct
  • 👋Welcome!
  • 🏁Getting Started
    • Building a chatbot
    • Testing a chatbot
    • Publishing your bot
      • Web
        • Embed chatbots on website
      • WhatsApp
        • Meta
        • 360Dialog
        • Twilio
        • GupShup
        • TechAlpha
      • Instagram
      • Facebook Messenger
      • SMS
      • Mobile app
      • API
    • Utility Tools
    • Contacts
      • Scheduling a Contact Report
      • Exporting a Contact List
      • Blocking contacts
    • Chatbot Appearance
      • Custom CSS
      • Image dimensions
      • Pop-up messages
  • ⚒️Bot builder
    • Action blocks
      • Trigger
      • Send message
      • Collect input
      • Buttons
      • Reply buttons
      • Carousel
      • Agent
      • Answer AI
      • Set AI
      • Send an email
      • List
      • Condition
      • Talk to human
      • Dynamic data
      • Javascript
      • Collect file
      • Form
      • Webhook
      • Flow
      • Jump
      • Options
      • Calendar
      • Delay
      • Codeblock
      • Slider
      • Image gallery
      • Send WhatsApp
      • Send SMS
      • Send Email
      • Send Status
      • WhatsApp flow
      • Catalogue
    • Outbound bots
      • Building One Off Campaign
      • Building Ongoing Campaign
    • Variables
    • Cloning bots
    • Requesting edit access
    • Connecting action blocks
    • Creating a loop
  • ✨AI Studio
    • Building a GPT chatbot
    • Knowledge base
    • Custom Answers
    • Functions
    • Prompts
    • AI credits
    • Refresh frequency
  • 💬Live Chat
    • Overview
    • Building a bot with live chat
    • Creating views
    • Adding labels
    • Saved replies
    • Settings
  • 🔗Integrations
    • Overview
    • HTTP request
    • Ready integrations
      • Google Calendar
      • Google Sheets
      • Google Analytics
        • Using Javascript
      • Salesforce
      • HubSpot
      • Calendly
      • Slack
      • Airtable
      • Zendesk
      • Freshdesk
      • DialogFlow
      • Zoho CRM
    • Events
    • Zapier
    • Public APIs
  • 💬WhatsApp Business API
    • Getting a WhatsApp API
      • Getting WhatsApp API (Old approach)
      • Sandbox WhatsApp API
    • Facebook Business Manager (FBM) Verification
    • Creating a WhatsApp Template
    • Cost
    • Messaging Limits, Quality Rating
    • Official Business Account (Green tick verification)
  • 📊Reporting
    • Overview
    • Chatbot Report
    • Agent Report
    • Outbound Report
    • Link analytics
    • Weekly email report
  • 🛠️Troubleshooting
    • Getting notification for leads
    • JS functions to trigger chat widget
    • Opt-out management
    • Setting up link tracking
    • How do I hard refresh my browser?
    • Cookies
    • Notifications
    • Tracking Facebook Pixel
    • Setting up SSO login
    • Inviting teammates
    • Teams
  • 🧑‍💻Support
    • Creating a ticket
    • Book a demo
    • Purchasing a subscription
    • Cancelling a subscription
    • Refund policy
    • Reset password
    • Deleting account
Powered by GitBook
On this page
  • Creating variables
  • Editing variables
  • Deleting variables
  • Using a variable
  • Data type in variables
  • System variables offered
  • Best practices for variable management

Was this helpful?

  1. Bot builder

Variables

Variables are reusable objects containing a user-submitted value.

PreviousBuilding Ongoing CampaignNextCloning bots

Last updated 1 year ago

Was this helpful?

Variables are essential for capturing and utilizing the data dynamically in the conversation. With variables, you can personalize the chat experience by being able to say “Hey Hardik!”, instead of “Hey there!”.

Kinds of variables:

  • System variable - Created by default by WotNot. Contains things like city, country, os etc.

  • Contact variable - Stores the value in the variable for recurring conversations. Usually used for collecting names, email etc.

  • Conversation variable - Stores the value in the variable for that conversation only.

Creating variables

You can create variables from two places:

1 - From the variable list

Under Settings > Variables, you will find all the variables in your workspace. You can click “Create” to create a new variable and provide the details like - name, description and type.

2 - From the bot builder

In action blocks that allow you save user input like “Collect Input”, “Buttons” etc. you have the option to create a new variable.

First, you choose the type of variable, next you provide the details like name, description, type.

Editing variables

Go to Settings > Variables > Click “Edit” on the variable.

You will be only allowed to edit the description and data type.

Deleting variables

Variables can only be archived and not deleted.

Go to Settings > Variables and click “Archive” on the variable you want to archive.

Using a variable

You can invoke a variable by typing # to preview the variable dropdown across the bot builder.

Data type in variables

You can store the following type of data in variables:

Data type
Description

Text

Stores any text input.

Number

Stores only numeric digits from 0 to 9.

Boolean

Stores only 0, 1, true, false.

Date

Stores date formats as DD/MM/YYYY and MM/DD/YYYY

Email

Stores email addresses.

Phone

Stores phone numbers.

Regex

Stores input based on your validation rule.

System variables offered

Here are the system variables offered by default:

Variable
Description

name

Name of the visitor

email

Email of the visitor

phone

Phone number of the visitor

ip_address

IP address of the visitor

city

City detected through the IP address of the visitor

state

State detected through the IP address of the visitor

zipcode

Zipcode detected through the IP address of the visitor

country

Country detected through the IP address of the visitor

timezone

Browser timezone of the visitor

os

System OS of the visitor

referrer_url

Referrer domain to the visitor.

unsubscribed_phone_numbers

Whether the phone number is unsubscribed from outbound messaging.

utm_source

Utm source

utm_medium

Utm medium

utm_campaign

Utm campaign

utm_content

Utm content

utm_term

Utm term

browser

Browser used during the chat

contact_id

bot

Name of the bot the visitor interacted with.

browser_language

Language set in the browser.

browser

Name of the browser.

channel

Name of the channel where the chat took place.

contact_created_by

Who created the contact.

conversation_url

Link to the conversation.

country_code

ISO country code of the country where the chat originated from.

created_at

Date when the chat was created.

gcal_selected_slot_day

Selected day when booking the meeting on Google Calendar.

gcal_selected_slot_time

Selected time when booking the meeting on Google Calendar.

timezone

Timezone of the device.

url

URL of the webpage where the user is interacting with the bot.

Best practices for variable management

  • Use descriptive names: Choose variable names that clearly reflect the data they hold, such as "userEmail" or "orderTotal".

  • Document purposefully: Write clear descriptions that explain the variable's role within your AI agent's workflow.

  • Maintain consistency: Use a consistent naming convention for your variables to make them easily identifiable and manageable.

  • Regularly review and refine: As your AI agent evolves, revisit your variables to see if they still serve their intended purpose or need adjustments.

⚒️