Workflow
A workflow is a defined sequence of steps that an AI agent follows to complete a task. Workflows specify the order of actions, decision points, tool calls, and human-in-the-loop touchpoints that guide an agent from a starting state to a desired outcome.
Workflows vs. Agentic Workflows
The term *workflow* is broad. In the context of AI agents, an agentic workflow is a workflow where the agent has autonomy to decide its own path rather than following a rigid script.
| Type | Agent Freedom | Human Involvement |
|---|---|---|
| Scripted workflow | Follows fixed steps | Defined checkpoints |
| Agentic workflow | Adapts based on results | Dynamic oversight |
Components of an Agent Workflow
A typical agent workflow includes:
- Trigger — An event or instruction that starts the workflow
- Planning — The agent determines the approach
- Execution — The agent runs tools and produces outputs
- Checkpoints — Points where the agent pauses for human approval or input
- Completion — The agent signals the workflow is done
Designing Workflows with AgentRQ
AgentRQ enables you to build human-in-the-loop workflows for Claude Code agents. A well-designed AgentRQ workflow looks like:
- Agent receives a task (e.g., "implement OAuth login")
- Agent calls
getWorkspaceto understand project context - Agent creates a task via
createTaskwith statusongoing - Agent works autonomously — reading code, writing implementation
- Agent sends notification via
replywhen it reaches a decision point - Human reviews and responds
- Agent continues to completion
- Agent calls
updateTaskStatusto mark the taskcompleted
Related Terms
- → Agentic Workflow
- → Task
- → Human-in-the-Loop
- → Approval
- → Agent