Rapidbott Help Docs
HomeInstagramFacebookLinkedInTwitterWebsite
  • Welcome !
  • start here
    • Getting Support
    • FAQ's
    • WhatsApp Common Questions(FAQ)
    • Pricing Plans
  • getting started guide
    • Introduction
    • Set your goals
    • Building your Chatbot with Rapidbott.
    • Maintain success
  • Rapidbott guide for beginners
    • Introduction
    • What is a Chatbot
    • Channels
    • Benefits & importance
    • Use cases
  • platform
    • Introduction
      • How to start free trial
      • Forgot Password
      • Getting Started Checklist
      • Platform Overview
      • Workspaces & Members
      • Platform default limits
      • Integrations
        • Stripe
        • PayPal
        • Cloudinary
        • Shopify
        • Facebook Business
        • Calendly
        • Slack
        • Google Sheets
        • Data Store
        • Twilio
        • Signalwire
        • Email (SMTP / Gmail)
        • MailChimp
        • VideoSdk
      • Ecommerce
        • Setup Ecommerce
        • Use Ecommerce in the Flow
        • WooCommerce
    • Connect to Channels
    • Agents Group Chat
    • Website Chat
    • My Contents
      • Email Templates
      • Rapidbott Bot Templates
    • WhatsApp Channel
      • Connect with WhatsApp Cloud API
        • Using a phone number already in use with WhatsApp App
        • Step-by-Step Coexistence Onboarding
      • WhatsApp Cloud API Old
      • Connect with Com.bot
      • Connect with Twilio
      • Connect with 360Dialog
      • Connect with 360 Dialog Sandbox
      • How to get your business verified?
      • WABA Policy Enforcement
  • flow builder
    • Flow builder overview
    • Basic Actions
      • Add & Remove Tag
      • Subscribe and Unsubscribe to Bot
      • Set Email Opt-in & Opt-Out
      • Set SMS Opt-in & Opt-Out
      • Steps
      • Question step
      • Variable Operation
      • JSON Operation
      • Send Notification
      • Condition Step
      • Split Step
      • Go To Step
      • Mark Conversation Open/Pending/Spam/Done/Invalid
      • Add note to teammates
      • Delete Bot User
      • Assign to agent/agent group
      • Resume Bot Automation
      • Talk to human/Pause automation
    • Advanced Actions
      • External Request
    • Field variable
    • Sub Flows
      • Sub Flow
      • Workflow
      • Function Flow
  • Artificial Intelligencs
    • OpenAI | ChatGPT
    • DeepSeek AI
    • Google Gemini
    • Claude AI
    • X.AI Integration
    • Coze
    • Dialogflow
  • Mini Apps
    • What is Mini-App?
    • Create Mini-Apps (1.0)
    • Use Mini-Apps
    • Publish Mini-App
    • Mini-App 2.0
      • Overview (mini-app 2.0)
      • Flow Builder (mini-app 2.0)
      • Flows
      • App Fields
      • Auth
      • Action Subflow
      • Triggers
      • One Time Urls
      • Sources
      • Settings
      • Razorpay Demo (Indian Payment Gateway)
  • Users
    • Live Chat
    • Bot Contacts/Users
  • bot automation
    • Keywords
    • Sequences
    • Triggers
    • Comment Keywords
  • contents
    • Custom Fields
    • Tags
    • One Time Notification (Facebook)
    • Personas
    • Menus
    • Customer Feedback (Facebook)
  • tools
    • Error Logs
    • Testers
    • Admins
    • Multi Languages
    • Inbound Webooks
  • Broadcasting
    • Broadcasts
  • developers
    • Rapidbott API
    • Dynamic Content
      • Messages format
      • Buttons
      • Actions format
      • Quick replies
      • Goto
      • Variables
  • Beta Launch
    • Day One
  • Common Error Log Database
    • Common Errors
      • Global Error
      • Facebook Channel Common Errors
      • WhatsApp Channel Common Errors
      • Instagram Channel Common Errors
      • Webchat/Omnichannel Errors
      • SMS Channel Common Errors
      • Voice Channel Common Errors
      • Telegram Channel Common Errors
  • Bot Add-Ons
    • Bot Add-Ons
  • community
    • Website
    • Facebook
    • Instagram
    • Twitter
    • LinkedIn
Powered by GitBook
On this page
  • Clear Custom Field / Clear JSON
  • Clear Variable Value
  • Clear Multiple Variable Value
  • Clear All Custom User Fields
  • Input value
  • Math Formula
  • Set Text Variable
  • Sub string
  • Replace string / replace string case sensitive
  • To lower / upper case
  • Generate random text
  • url encode / decode
  • Base64 encode / decode
  • To URL friendly slug
  • Set Number Variable
  • Get text length
  • Generate random number
  • Add / subtract / multiply / divide / modulus / power / natural logarithm / square root
  • Round
  • Floor / ceil
  • Set DateTime Variable
  • From formatted text
  • Add minutes / hours / days / weeks / months

Was this helpful?

  1. flow builder
  2. Basic Actions

Variable Operation

PreviousQuestion stepNextJSON Operation

Last updated 5 months ago

Was this helpful?

Built-in operations for variable modification.

There are 6 types of variable:

Type
Storage
Example
Operation

Text

letters, words, sentences...

Hi, Rapidbott.

cutting, change case, encode, decode...

Number

number

123.45

+ - x ÷, mod, power, log, root, round...

Boolean

either "yes" or "no"

yes

assign

Date

date

2021-03-30

format, add months/weeks/days

DateTime

date and time

2021-03-30 16:52:00

format, add months/weeks/days/hours/minutes

JSON

a series of variables

{"name":"jack", "age":"10"}

load, get, update, remove, count, sum, average, sort, shuffle, reverse...

Click "Basic Actions" in the Action step and here are the "Set Variable Value" and "Clear Variable Value".

Clear Custom Field / Clear JSON

To clear text, number, boolean, date, datetime variable, please use the Clear Custom Field action.

To clear JSON variable, please use the Remove All Items operation in the JSON Operation.

Clear Variable Value

This function allows the user to literally clear a value of a single custom field.

You just have to choose a specific custom field you want to clear out.

Clear Multiple Variable Value

This action allows the user to clear multiple custom field values.

Make sure to choose all custom fields whose values you want to clear out.

Clear All Custom User Fields

If you are looking for a way to clear all custom field values of a user, use this action.

Input value

"input value" operation is used to assign value to a variable. This operation works for any variable type.

"input value" for text variable can be used to connect several text variables. See the below picture for where to put original value and operated value.

Math Formula

With this operation, you can now do formula calculation directly in the Action Step - "Set Variable Value" and Condition Step - "Value".

Math operations and function supported:

+, -, *, e, pi, PI, abs(), min(), max(), ceil(), floor(), log(), pow(), round(), sqrt(), sin(), cos(), tan()

If the formula is invalid, the system will return 0 to number variable and empty to text variable.

Set Text Variable

Trim text

Description
e.g. Before
e.g. After

remove spaces before or after the text

" abc "

"abc"

Sub string

Description
e.g. Before
e.g. After

get part of the text

"Hi, Sendly!"

"Sendly"

Index starts from 0. Every character counts including space and punctuation.

Replace string / replace string case sensitive

Description
e.g. Before
e.g. After

replace part of the text

"Hi, Rapidbott!"

"Hello, Rapidbott!"

In case sensitive situation, you have to put exactly "Hi" rather than "hi", "HI" or "hI".

To lower / upper case

Type
e.g. Before
e.g. After

to lower case

"Hi, Rapidbott!"

"hi, rapidbott!"

to upper case

"Hi, Rapidbott!"

"HI, RAPIDBOTT!"

Generate random text

Description
e.g. Before
e.g. After

as the name

"code: XXXX-####-xxxx"

"code: UBWT-3657-lkzb"

This feature is useful when you need to generate one-time verification code or reference code.

url encode / decode

Type
e.g. Before
e.g. After

encode

"Hi, Rapidbott!"

"Hi%2C%20Rapidbott!"

decode

"Hi%2C%20Rapidbott!"

"Hi, Rapidbott!"

Base64 encode / decode

Description
e.g. Before
e.g. After

encode

"Hi, Sendly!"

"SGksIFVDaGF0IQ=="

decode

"SGksIFVDaGF0IQ=="

"Hi, Sendly!"

To URL friendly slug

Description
e.g. Before
e.g. After

replace spaces with hyphens and remove the rest signs

"it's a good day"

"its-a-good-day"

Get text before/after ...

Description: get part of the text.

Type
e.g. Before
e.g. After

get text before another text

name: Sendly, city: Melbourne

name

get text before last occur of another text

name: Sendly, city: Melbourne

name: Sendly, city

get text after another text

name: Sendly, city: Melbourne

Sendly, city: Melbourne

get text after last occur of another text

name: Sendly, city: Melbourne

Melbourne

Set Number Variable

Get text length

Description
e.g. Before
e.g. After

as the name

500.59

6

Generate random number

Description
e.g. Before
e.g. After

as the name

n/a

56

Add / subtract / multiply / divide / modulus / power / natural logarithm / square root

Description
e.g. Before
e.g. After

as the name

7

8

in "natural logarithm", when you are calculating log2(8) = ? put 8 as "Value" and 2 as "Number".

Round

Description
e.g. Before
e.g. After

as the name

7.8693

7.87

Floor / ceil

Description: get approximate integer.

Type
e.g. Before
e.g. After

floor

6.55

6

ceil

6.55

7

Set DateTime Variable

From formatted text

Description
e.g. Before
e.g. After

get DataTime value from formatted text

00:00:00 30th Aug, 2020

2020-08-30 00:00:00

Add minutes / hours / days / weeks / months

Description
e.g. Before
e.g. After

as the name

2021-01-01 00:00:00

2021-01-01 00:01:00

condition