The “Formula” step supports a set of built-in functions for working with numbers, text, dates, lists and responses from external services. They help you calculate, transform and check data right inside the flow, without external systems.
The functions are grouped by task: choose what you need to do — each article has a table of functions and examples. How the step works, which variables and data types exist — see “Formula” step description.
Functions by task
- Calculations and Numbers — calculate a discount and order total, round and show a price nicely.
- Conditions and Checks — pick a value by condition, check whether a field is filled.
- Working with Text — address the subscriber by name, split a full name, build a message from fields.
- Checking Subscriber Answers — bring a phone number to one format, accept an answer with a typo, find an order number in text.
- Dates and Time — calculate age, a date in N days, show a date in words.
- Schedules and Reminders — business hours, the nearest webinar, a payment reminder, a birthday.
- External Request Response (JSON) — get a price or status from an external request response, build JSON.
- Lists — a shopping cart, a list of interests, checking the subscriber’s choice.
- Links and Signatures — the subscriber’s name in a link, signing a payment request, text that doesn’t break Telegram formatting.
- Games and Giveaways — a random participant number, a prize wheel, distance to the office.
- Ready-Made Templates — ready-made flow templates and examples where functions work together.
All functions A–Z
Click a function to open the article with its description and examples.
abs · addDays · addHours · addMinutes · addMonth · addWeeks · addYear · and / or / not · append · arr_len · base64_decode · base64_encode · birthdate · capitalize · ceil · contains · convert_datetime · date_diff · date_rus · dict_keys · dict_values · distance · endswith · exp · fac · findall · float · floor · format_date · format_number · get · get_current_time · hmac_hex · if · in_array · insert · int · is_float · is_int · is_null · join · json_get · json_parse · len · log · lower · match · max · md5 · min · month_date · normalize_phone · pow · random · random_choice · remove · replace · round · sha1 · sha256 · similar · sin / cos / tan · split · split_list · sqrt · startswith · str · strip · substring · tg_escape · time_interval · timestamp · title · to_json · upper · urldecode · urlencode · weekday · weekday_date · weekday_name
Try it on a ready-made flow
Copy the template via the link — click Copy in BotHelp, enter your account domain and click Save flow. Within a few minutes the template is copied to your account. More templates are in Formula: Ready-Made Templates.
If you can’t find the function you need, ask Bro: it will write a formula for your task and add the step to the flow.
If you did not find the answer to your question, feel free to contact us in the chat inside your dashboard, message us on Telegram at @BotHelpSupportBot, or email us at hello@bothelp.io.
Enjoy the full functionality of the BotHelp platform for creating broadcasts, automated funnels, and chatbots — free for 14 days.
Sign up for BotHelp
Get 14 days of full access for free — enough to build your first bot and test it on real subscribers.
Create account