Every workflow eventually hits a wall. You need to parse a weird JSON format from a legacy API, apply a pricing formula that no connector supports, or manipulate a CSV in a way that no drag-and-drop node was designed for. That's the moment when AACFlow's Function block becomes your best tool.
AACFlow's Function block lets you run sandboxed JavaScript and Python directly inside AI agent workflows, handling data transformation, complex business logic, and custom API calls that go beyond what standard connectors provide — all with isolated execution, memory limits, and full access to previous block outputs.
When Built-In Connectors Are Not Enough
AACFlow ships with over 300 tool integrations. For the vast majority of tasks, those are sufficient. But automation in the real world is messy: a payment gateway returns amounts in kopecks that need converting, a logistics API encodes timestamps in an undocumented timezone format, or your finance team has a pricing calculation that lives only in someone's spreadsheet brain.
You can't pre-build a connector for every business rule that exists in the world. The Function block exists for exactly this gap: when you need to write a few lines of code to glue everything together.
What Is the AACFlow Function Block?
The Function block is a first-class workflow node in AACFlow. It executes custom JavaScript (via isolated-vm, a V8 isolate sandbox) or Python inside a controlled environment. Every execution is isolated from the host system — no filesystem access, no network calls unless you explicitly make them through , and strict memory limits enforced at the runtime level.
