Here you’ll find ready-made flow templates and examples where “Formula” step functions work together.
Templates to copy
To copy a template, open the link, click Copy in BotHelp, enter your account domain and click Save flow. Within a few minutes the template appears in your account, and you can edit it to suit your needs.
- “Formula” step function examples — calculations, conditions, strings and dates in one flow.
- Birth date parsing — see details below.
- Phone number validation.
Birth date parsing template
A popular request is working with personal data to create forecasts, horoscopes or personalized offers. This template shows the “Formula” step in action.
What the template does:
- Takes the birth date from the subscriber in a single format.
- Splits it into three variables: day, month and year.
- Prepares the data for a personal forecast for the coming year.
Why it’s useful for your business: create unique forecasts or calculations — numerology, astrology, financial indicators.
Example: amount, price from an API, phone and date
x = 0 client.amount = format_number(1234567.891, 2) client.price = json_get(client.api_response, 'items.0.price') client.result = if(x != 0, 10 / x, 'zero') client.phone_clean = normalize_phone(client.phone) client.date = date_rus(get_current_time(), True) + ', ' + weekday_name(get_current_time())
Result:
client.amount— “1 234 567,89”;client.price— the price of the first item from the external request response;client.result— “zero”: the division isn’t performed because x = 0;client.phone_clean— digits only, for example “79789999999”;client.date— for example “3 апреля 2026, пятница”.
Example: auto-reply outside business hours
Before handing the dialog over to an operator, check the time and pick a reply. In the next “Condition” step you can route the subscriber by the is_work_time field.
client.is_work_time = time_interval("10:00", "19:00") and weekday() <= 5
client.reply = if(client.is_work_time, "Connecting you to an operator 👩💻", "We're offline right now. We'll reply " + if(weekday() >= 5, "on Monday", "tomorrow") + " from 10:00")Example: a personal signed payment link
order = str(client.order_id) sign = hmac_hex(globals.secret_key, order + ":" + str(client.amount)) client.pay_link = "https://pay.site.com/?order=" + order + "&sum=" + str(client.amount) + "&name=" + urlencode(client.name) + "&sign=" + sign
Insert the pay_link into a URL button with the {%pay_link%} macro. Keep the secret key in a global variable.
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