Skip to content
Docs
Modules ConstructorModules and actions

Runtime and interface

Multogram Modules Constructor modules for the flow of work: Code Execution, Tasks, Threading, Resources, Statistics, Logger, Notifications, Interaction, UI and AI — all actions.

Modules that control the module's execution and connect it with the user: code, threads, the form, the log, counters, questions to the user and AI.

Code Execution

Execute JavaScript (ECMA), Execute Python, Execute Node.js, Execute CMD, Execute PowerShell, Execute Bash, Install Python Package, Uninstall Python Package, Install Node.js Package, Uninstall Node.js Package. How values are inserted and the result is returned is in Your own code.

Tasks

Running a function in a separate thread without waiting: Start Task, Wait for Result, Get Result, Check Completion, Cancel Task, Get Task Status, Get All Tasks, Clear History. See Threads and accounts.

Threading

Get Thread Number, Get Thread ID, Get Thread Meta, Get Thread Status, Set Thread Data, Complete Thread, Fail Thread, Stop Thread.

Resources

The module form's fields at runtime: Get Resource Value, Set Resource Value, Create Resource, Delete Resource, Get All Resources.

Get Resource Value with the Take Item parameter takes one item out of a list — this is how threads split accounts and targets without repeats. Set Resource Value in add mode puts an item back on the list. See Threads and accounts.

Statistics

Counters shared by all of the module's threads: Declare Indicator, Set Indicator Value, Increment Indicator, Decrement Indicator, Reset Indicator, Get Indicator Value, Get All Indicators, Clear All Indicators.

Declare the indicators at the start of the work — "Sent", "Errors" — and increment them as you go.

Logger

Add Log writes a line to the task log: the type (info, success, warning, error, debug) and text with [[variable]] and {{resource}} insertions. Configure Logger chooses which levels to record, Clear Logs clears the log.

Notifications

Play Sound and Show Toast (a Windows pop-up notification) — for example, when the module has finished or needs the user's attention.

Interaction

Ask the user during the run and wait for an answer: Request Text, Request Code (for example, a one-time confirmation code), Select Option, Request Form with several fields.

UI

Send Event — an event for the application window: show a notification or a dialog, add a line to the log.

AI

AI Request sends text to a language model and saves the answer to a variable: write a message, rewrite a text, classify, extract data. The provider is OpenAI, Anthropic, Google, OpenRouter or your own compatible address; the provider key is conveniently made a resource that the module's user fills in.

This is a scenario action: it works with its own key and doesn't spend Multogram AI credits. The helper that builds the module in the constructor is the AI assistant.

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.