Common
Function (Python)
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.
⚠️ 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
🔧 Tips
- Always end your function with a
return
statement. - Use
arguments[...]
to build dynamic logic.
Let me know if you’d like help writing specific functions or chaining them with API calls!