The Function action allows your assistant to execute a custom Python function inline. It’s commonly used for performing calculations, formatting data, branching logic, or preparing variables for future steps in a workflow.Documentation Index
Fetch the complete documentation index at: https://docs.monobot.ai/llms.txt
Use this file to discover all available pages before exploring further.
⚠️ Ensure your function is safe and deterministic. Avoid external calls unless explicitly supported.
🔍 What It Does
This tool gives you full control to run Python code during the bot’s execution. The output of the function can be stored as a variable and reused in following actions.🧠 A powerful option for tailoring logic beyond static parameters.
🖼️ Action Interface

⚙️ Configuration Options
Function (required)
Function (required)
Type: Use
string
A complete Python function body. Return the desired result explicitly.Example:arguments dictionary to access parameters directly.🔧 Tips
- Always end your function with a
returnstatement. - Use
arguments[...]to build dynamic logic.