• Bot creation instructions
  • Variables and functions

    Regular expressions
    Regular expressions are patterns that allow a bot to validate the format of user input — for example, to ensure that the input is a phone number rather than ...
    Variables and functions
    Functions (API) in the calculator
    API functions are available only on "Business" and "MaviBot AI"plans. LEGEND:\ ! -Required parameters You can sent callback only to ANOTHER client. YOU CAN'T...
    Variables and functions
    Working with arrays and dictionaries
    Array — is a data structure that stores a collection of values (called array elements), each identified by an index. It is defined using square brackets []. ...
    Calculator
    Gamification methods
    For configuring function operations, we recommend using the gamification template for Instagram chats as a reference. To use the functions listed below, you ...
    Calculator
    Working with variables
    get_client_var() | get_client_vars() Description To get the value of a single variable get_client_var(client_id, variable) Parameters:\ ! client_id - client ...
    Calculator
    Conditional IF statement
    To verify that a variable contains a value (i.e., it is not None and not an empty string), you must check that it is NOT equal to an empty string. Correct fo...
    Calculator
    Working with email
    Please note! When executing functions for working with email messages, the function returns: a) either NONE — upon successful execution of the function; b) o...
    Calculator
    Working with Google Sheets
    Note! For better performance with your data, upload it to MaviBot tables. This way, your bots will work much faster and avoid errors related to requests to G...
    Calculator
    Working with employees
    send_notification(text, users, priority) - sends a notification to the specified employees. Parameters: Parameters Value ! text required parameter; the notif...
    Calculator
    Working in messengers
    check_insta_subscription() Description To check subscription to an Instagram account check_insta_subscription() Parameters: None The function returns logical...
    Calculator
    Working with MaviBot labels
    create_label() | add_label() | remove_label() | remove_label_everywhere() | count_of_clients_with_label() | has_label() Description MaviBot label are display...
    Calculator
    Working with lists
    create_list() Description Enter the function in the "Calculator" field in the block settings: create_list(name) - creates new list. The result is list ID. Pa...
    Calculator
    Working with cutomers and CRM
    LEGEND: was_in_state() | days_from_last_message() | free_client() | assign_to_user() | distribute_client()| get_operator() | get_operator_name() | delete_pen...
    Calculator
    Working with dates and time
    MaviBot works with the following DATE and TIME formats: for dates – "dd.mm.yyyy" \ for time – "HH:MM" To work with dates and time, you can use the following ...
    Calculator
    Working with strings
    substring() | endswith() | startswith() | contains() | len() | concat() | splitter() | lower() | upper() | strip() | capitalize() | title() | normalizePhone(...
    Calculator