What is Agent Spec?
Agent Spec is a JSON format for describing agent workflows with:- Nodes (called “steps”) with component types
- Control-flow edges for execution order
- Data-flow edges for data passing
- Agent-level metadata (name, description, version)
Import / export via UI
FlowDrop’s toolbar includes import/export options:- Import: Click the import button and select an Agent Spec JSON file. FlowDrop converts it to a visual workflow with auto-layout.
- Export: Click the export button and choose “Agent Spec” format. FlowDrop converts the visual workflow to Agent Spec JSON and downloads it.
Programmatic usage
Using the adapter directly
Using the WorkflowOperationsHelper
Using the Mount API
The mounted app exposes Agent Spec operations:Validation
Validate a workflow before exporting to Agent Spec:- Disconnected nodes (no edges)
- Missing required port connections
- Unsupported node types
Conversion details
What maps cleanly
| FlowDrop | Agent Spec |
|---|---|
| Node ID | Auto-generated stable name |
| Node type | Component type |
| Config values | Node attributes |
| Trigger edges | Control-flow edges |
| Data edges | Data-flow edges |
| Gateway branches | from_branch mappings |
| Node position | Preserved in metadata |
Known limitations
- Loopback edges don’t have a direct Agent Spec equivalent and may be dropped
- Custom node types (namespaced) may lose type-specific behavior
- UISchema layout information is not preserved
- Dynamic ports may not convert cleanly
- Node visual types (simple, square, etc.) are stored in metadata but not in the Agent Spec standard
Execution events
When running Agent Spec workflows, FlowDrop fires execution events:Next steps
- Programmatic API — create workflows in code
- Event System — all execution events
- Workflow Structure — FlowDrop’s native JSON format