Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

A2Flow Combines AI Planning with Human Oversight in Workflow Design

A2Flow uses an AI agent to create structured task graphs, requiring human approval before execution, and integrates chat-based interactions for real-time workflow management.

Share
AI-generated conceptual illustration accompanying: A2Flow Combines AI Planning with Human Oversight in Workflow Design
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Workflow Design and Planning

A2Flow reimagines workflow design by centering an AI agent as the core planner. In the first step, the agent translates user intent into a task graph, breaking down prompts into structured templates with explicit dependencies. This DAG is registered in one call, including cycle detection, ensuring logical consistency before execution. Adjustments can be made via chat or manually, but no action runs until approval. The second step involves human oversight: publishing the workflow serves as the first approval, allowing a run to begin without further confirmation. Critical tool calls that alter systems require additional approval from designated approvers, ensuring control over impactful changes. This approach merges AI-driven planning with human gatekeeping, aligning workflow execution with governance needs.

Approval and Execution Process

In A2Flow’s approval and execution process, the system separates procedural logic and approvals from the conversation, delegating the intermediate steps to an agent. When a tool call requires approval, the designated approver receives inline controls—Approve, Reject, or Return—within the chat, ensuring only that individual can resolve the action, with others encountering a 403 error. Once approved, the agent initiates the execution phase by traversing the workflow graph. Upon pressing Run, the agent begins a dedicated workflow session, processing tasks in dependency order. Each task transitions from pending to in_progress to completed, invoking only the MCP tools bound to that specific task. The agent interacts with users through forms embedded directly into the chat, maintaining a shared conversation space for all three roles involved in the workflow.

User Interaction and Chat Integration

A2Flow integrates user interaction and chat functionality directly into its workflow engine, allowing the applicant, approver, and agent to communicate within the same thread, eliminating the need for side channels or status checks. According to Hacker News Show, all parties post into the same thread, ensuring transparency and reducing confusion. Hacker News Show notes that the Approve / Reject / Return buttons appear in the chat for the respective user, streamlining decision-making. Additionally, Hacker News Show highlights the use of the A2UI protocol, which enables the agent to render buttons, forms, and cards inline within the chat interface. This allows users to interact directly with the workflow, and their actions are recorded as tool results, maintaining a clear audit trail. The integration of rich UI elements into the chat experience enhances usability and ensures that workflow progress is visible and actionable in real time.

Technical Architecture and Deployment

A2Flow’s technical architecture is built around an open-protocol stack that enables flexibility and modularity. The chat UI streams AG-UI events from a FastAPI backend, while the agent renders A2UI surfaces directly into the chat interface. Agent Skills are sourced from Git repositories, specifically from SKILL.md files, and tools are accessed via MCP servers. A single relational database, such as PostgreSQL or SQLite, manages sessions, tasks, and approvals. Deployment is streamlined through Docker Compose, allowing the entire stack—including PostgreSQL, backend, and frontend—to be launched with a single command. To get started, users can clone the repository, set their Google API key in the .env file, and run docker compose up --build. The system is designed to be lightweight and extensible, with components like LiteLLM and Google ADK integrated for additional functionality.

Security and Isolation Features

A2Flow enforces strict security and isolation through runtime constraints and sandboxing. At run time, a task can call only its own tools, ensuring that no unauthorized operations occur. Each server instance launched by A2Flow runs in a bubblewrap sandbox, isolating processes and limiting potential damage from malicious or erroneous behavior .

Additionally, A2Flow employs a mechanism called MCP tools, which are scoped per task. This means that MCP servers are registered, and the agent binds only the tools required for each specific task at plan time, reducing exposure and improving security .

Plans are also designed to be repeatable and transparent. The task graph generated by the agent from a Skill is published as a workflow, represented as a DAG with enforced dependencies and cycle rejection. Every run follows the same graph, which can be visualized as a sortable table or an auto-laid-out graph that updates in real time .

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more