> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/deploying/vms/milestone/workflows.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Workflows

Control what each camera detects with a workflow

A **workflow pop** controls what a camera detects. It's a small JSON definition that defines what AI Vision Models and Abilities you would like to run. These Workflow pops can be created in your EyePop dashboard and copied into your XProtect Server as JSON.

The workflow pop chains abilities: detect objects, crop to each detection, and run another ability on the crop. You can also track people and objects and ask natural language questions about them to produce rich metadata that is then piped into XProtect. Full documentation of a [Pop](https://docs.eyepop.ai/developer-documentation/platform/pop)

### Edit a workflow

1. Open the management page's **Workflows** tab.
2. Click an existing workflow to edit it, or enter a new name to create one.
3. Edit the JSON and click **Apply workflow**. It's validated immediately — invalid JSON or an unsupported value is rejected with an inline error before anything is saved.
4. The change takes effect immediately. Any camera using that workflow restarts its processing automatically — no service or container restart needed.

The built-in `default` workflow can't be deleted; it's the fallback for every unassigned camera.

### Assign a workflow to a camera

From the **Cameras** tab, pick the workflow from the camera's dropdown and click Apply.

### The default workflow

Every camera runs by default common object detection workflow:

```json
{
  "pop": {
    "components": [
      {
        "type": "inference",
        "ability": "eyepop.common-objects:latest",
        "confidenceThreshold": 0.80,
        "forward": {
          "operator": { "type": "crop" },
          "targets": [
            {
              "type": "tracking",
              "maxAgeSeconds": 5,
              "motionModel": "constant_velocity",
              "agnostic": true,
              "classHysteresis": true
            }
          ]
        }
      }
    ]
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/deploying/vms/milestone/workflows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
