Roboflow Agent
The in-app Roboflow Agent that builds, runs, and debugs Workflows and Rapid models, plus its HTTP chat API.
About
Roboflow Agent has access to your Workspace and can create, edit, run, and debug Workflows. You can also use it to set up Rapid models. Access the Agent by clicking "Agent" in the left sidebar of your workspace.

Capabilities
The Agent can work with:
Workflows: build from a plain description, run on images, RTSP streams, video, or webcam, watch live previews, auto-fix failures, investigate run errors, and draw detection zones.
Attached media: analyze images and MP4 or MOV videos you drop into the chat, and build and verify Workflows with them.
Rapid models: set up, manage, and diagnose training failures.
Projects: create projects, start model training, rebalance splits, and merge projects.
Datasets: browse images by labeling stage, add workspace images to a model and start labeling them, send a batch to review or back for edits, accept images into the dataset, and return work to unassigned.
Batch Processing: run a published Workflow over images in your Asset Library, list your jobs, and report the status of one.
Active Learning: turn collection on or off per project and edit its limits and conditions.
Vision Events: add blocks to Workflows, answer questions about your event data, and schedule Summary Reports.
Usage: show your Credit Usage Dashboard with filters matching your question.
Edge devices: answer questions with read-only access to your Deployment Manager fleet, telemetry, logs, and streams.
Tabs: organize open Workflows, models, projects, and usage views; drag to reorder; reopen closed items or create new ones from the "+" tab.
Background Tasks
Long jobs the Agent starts keep running while you chat: model training, auto-labeling, dataset version generation, project merges, class remaps, split rebalances, and Batch Processing jobs. A pill above the chat box counts the running ones. Click it, or click "Background Tasks" in the left menu, to open a panel that lists them under "Running" and "Finished". Click a task to open the page it created.
The Agent tells you in the chat when a task finishes, even if you closed the tab and came back later. Only jobs started from inside a conversation appear here. A training you start elsewhere in the app or through the API does not, and you track it in the Activity Center instead.
HTTP API
The Agent API lets you interact with the Roboflow AI agent through api.roboflow.com. You can send natural-language instructions to create or edit Workflows, then publish them when ready. All edits are saved as drafts until you explicitly publish.
Authentication is via API key. If you use a Scoped API Key with folder restrictions, the agent will only be able to access Workflows and models within that folder scope, and it will not see projects that sit outside a folder. Asking the agent to list workspace models returns only the models the caller can already see.
Chat
Send a message to the agent. Start a new conversation, or continue one by passing conversation_id.
Send a message to the agent. The agent can create new Workflows, edit existing ones, and answer questions about your workspace. Workflow changes are saved as drafts. Requires the workflow:create and workflow:update scopes.
Workspace URL slug.
my-workspaceWorkspace API key.
The instruction or question for the agent.
Build me a workflow that detects cars and counts themID of an existing conversation to continue. Omit to start a new conversation.
conv_xyz789agent (default) makes changes. In plan mode the agent outlines what it would do without making changes.
agentPossible values: The agent's reply.
The agent's response text.
I created a workflow called 'Car Counter' that detects and counts cars.The conversation ID. Pass it back in later requests to continue the conversation.
conv_xyz789Bad request (ex: missing message, no draft to publish).
API key missing or invalid.
Insufficient credits.
Insufficient scopes, Workflow outside the API key's folder scope, or agent features disabled for the workspace (error_type AGENT_DISABLED).
Workflow or conversation not found.
Internal server error.
POST /{workspace}/agent/chat HTTP/1.1
Host: api.roboflow.com
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"api_key": "text",
"message": "Build me a workflow that detects cars and counts them",
"conversation_id": "conv_xyz789",
"mode": "agent"
}{
"text": "I created a workflow called 'Car Counter' that detects and counts cars.",
"workflows": [
{
"id": "wf_abc123",
"name": "Car Counter",
"url": "car-counter",
"specification": {}
}
],
"conversation_id": "conv_xyz789"
}Publish a Workflow
Deploy the latest draft of a Workflow the agent created or edited.
Deploy the latest draft version of a Workflow that the agent created or edited. Returns 400 if there is no unpublished draft. Requires the workflow:update scope.
Workspace URL slug.
my-workspaceWorkflow URL slug.
car-counterWorkspace API key.
The draft was published.
wf_abc123car-counterv-1700000000publishedBad request (ex: missing message, no draft to publish).
API key missing or invalid.
Insufficient scopes, Workflow outside the API key's folder scope, or agent features disabled for the workspace (error_type AGENT_DISABLED).
Workflow or conversation not found.
Internal server error.
POST /{workspace}/agent/workflows/{workflowUrl}/publish?api_key=text HTTP/1.1
Host: api.roboflow.com
Accept: */*
{
"workflowId": "wf_abc123",
"workflowUrl": "car-counter",
"versionId": "v-1700000000",
"status": "published"
}List Conversations
Return all agent conversations in the workspace. Requires the workflow:read scope.
Workspace URL slug.
my-workspaceWorkspace API key.
Filter by origin: api or web.
Filter by Workflow URL slug. Only returns conversations that reference this Workflow.
The workspace's conversations.
API key missing or invalid.
Insufficient scopes, Workflow outside the API key's folder scope, or agent features disabled for the workspace (error_type AGENT_DISABLED).
Internal server error.
GET /{workspace}/agent/conversations?api_key=text HTTP/1.1
Host: api.roboflow.com
Accept: */*
{
"conversations": [
{
"id": "conv_xyz789",
"name": "Car Counter",
"source": "api",
"workflowIds": [
"wf_abc123"
],
"created_on": "2026-05-14T20:00:00.000Z",
"updated_on": "2026-05-14T20:05:00.000Z"
}
]
}Get a Conversation
Return the full conversation including all messages. Requires the workflow:read scope.
Workspace URL slug.
my-workspaceConversation ID.
conv_xyz789Workspace API key.
The conversation with its messages.
conv_xyz789Car CounterWhere the conversation started: api or web.
apiPossible values: IDs of Workflows referenced by the conversation.
["wf_abc123"]2026-05-14T20:00:00.000Z2026-05-14T20:05:00.000ZagentAPI key missing or invalid.
Insufficient scopes, Workflow outside the API key's folder scope, or agent features disabled for the workspace (error_type AGENT_DISABLED).
Workflow or conversation not found.
Internal server error.
GET /{workspace}/agent/conversations/{id}?api_key=text HTTP/1.1
Host: api.roboflow.com
Accept: */*
{
"id": "conv_xyz789",
"name": "Car Counter",
"source": "api",
"workflowIds": [
"wf_abc123"
],
"created_on": "2026-05-14T20:00:00.000Z",
"updated_on": "2026-05-14T20:05:00.000Z",
"type": "agent",
"messages": [
{
"id": "msg_1",
"role": "user",
"parts": [
{
"type": "text",
"text": "Build me a workflow that detects cars"
}
]
}
]
}MCP Server
Connect your AI agent to the MCP Server and it can hand work to Roboflow Agent with these tools:
agent_chat
Chat with the Roboflow AI agent.
agent_chat_result
Collect the result of a run that was still working.
agent_conversations_list
List agent conversations in the workspace.
agent_conversation_get
Get one conversation with its message history.
agent_workflow_publish
Publish the latest agent-edited draft of a Workflow.
Last updated
Was this helpful?