Skip to content
Docs
Modules ConstructorModules and actions

Logic and data

Multogram Modules Constructor modules for logic and data processing: Logic, String, Array, JSON, Math, Regex, DateTime, Encode, Crypto, Identity — all actions.

Modules that decide what to run and prepare data: texts, lists, numbers, dates.

Logic

The basis of any scenario: conditions, loops, error handling, calling functions. How to write conditions is in Conditions, loops and errors.

JobActions
Branching and loopsIF Condition, FOR Loop, FOREACH Loop, WHILE Loop, Break, Continue
ErrorsTry-Catch — the error text is in [[_error]]
FunctionsCall Function, Return
VariablesSet Variable, Set Global Variable, Increment Variable, Increment Global Variable
FlowDelay, End Thread, Stop Scenario

String

Generate String, Expand Pattern, Get String Length, Concatenate Strings, Split String, Replace Substring, Trim String, Change Case, Get Substring, Check Contains, Parse String, Compare Strings, Check Empty String.

Expand Pattern expands a string generator pattern into ready text — this is how message texts come out different.

Array

Create Array, Get Array Length, Get Element by Index, Get Random Element, Add Element to Array, Remove Element from Array, Merge Arrays, Split Array into Chunks, Find Element in Array, Check if Array Contains Element, Sort Array, Reverse Array, Shuffle Array, Get Subarray (Slice), Clear Array, Transform Array.

JSON

Create Object, Parse JSON, Serialize JSON, Get Value by Path, Set Value by Path, Delete Value by Path, Check Key Exists, Merge JSON Objects, Get Object Keys, Get Object Values, Transform JSON, Get Value Type, Validate JSON.

Math

Add, Subtract, Multiply, Divide, Modulo, Power, Round, Absolute Value, Minimum, Maximum, Average, Random Number, Clamp Range, Convert Number.

Random Number with bounds from a range resource ({{delay}}.min, {{delay}}.max) is a convenient way to make a random pause.

Regex

Check Match, Find All Matches, Find First Match, Replace by Pattern, Split by Pattern, Extract Groups, Match and Extract, Escape String.

DateTime

Get Current DateTime, Get Current Date, Get Current Time, Parse DateTime, Format DateTime, Add to DateTime, Difference Between Datetimes, Compare Datetimes, Period Start, Period End, Convert Timezone, Get Timestamp, Create DateTime.

Encode

Base64 Encode, Base64 Decode, Hex Encode, Hex Decode, URL Encode, URL Decode, UTF-8 to Binary, Binary to UTF-8.

Crypto

Encrypt Data, Decrypt Data, Generate Symmetric Key, Derive Key from Password, Generate RSA Key Pair, Encrypt with Public Key, Decrypt with Private Key, Hash Data, Sign Data, Verify Signature.

Identity

Realistic data for profiles: First Name, Last Name, Full Name, Username, Email, Password, Phone, Address, Company, Job Title, Date of Birth, UUID, User Agent, Generate Person — a consistent set of data in one action.

Updated

CookiesPrivacy Policy

We use essential cookies to run this site. With your consent, we will also use analytics cookies to improve it and marketing cookies to credit whoever referred you. You can change your choice at any time.