For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send Events

Three ways to send Vision Events from your deployed models.

Send Events

You can send Vision Events with a Workflow block, the HTTP API, or edge device backup.

  • Workflow Block: the easiest option if your model runs in a Workflow.

  • HTTP API: for models you deploy outside of Workflows.

  • Edge Device Backup: for Roboflow edge devices, which back up events from the device's local event store.

Workflow Block

The recommended approach for most users. Add the Vision Event block to any Roboflow Workflow to automatically create events from inference results with no code needed.

The Roboflow Agent can set this up for you. When you ask the Agent to build a Workflow that runs a model, it automatically adds a Vision Events block and connects it to the right Use Case.

Setup

1

Open the Workflow Editor

Navigate to Workflows in your workspace and open the workflow you want to add events to.

2

Add the Vision Event Block

Search for "Vision Event" in the block catalog and add it to your workflow.

3

Connect Inputs

Connect the image input and model prediction outputs to the Vision Event block.

4

Configure the Use Case

Set the Use Case name (useCaseId). You can also map custom metadata from upstream blocks. Once a Use Case is selected, click "Open in Vision Events" below the dropdown to jump to that Use Case's events page in a new tab.

5

Deploy the Workflow

Deploy or update your workflow. Events are created automatically each time the workflow runs.

The Workflow block handles image upload and event creation in a single step. It attaches images only. To attach video clips, use the HTTP API or Edge Device Backup.

HTTP API

Use the HTTP API to send events from code that does not run in a Workflow. Each endpoint page lists its fields, required scope, and responses.

  1. Upload each image with Upload a Vision Event Image. The response has a sourceId.

  2. To attach video clips, upload each clip with Upload a Vision Event Video. You get a videoId and a signed URL to upload the clip to, since clips can be up to 3 GB.

  3. Create the event with Create a Vision Event. Put each image sourceId in images[].sourceId and each videoId in videos[].sourceId.

To send up to 100 events in one request, use Batch Create Vision Events. If your deployment has no route to the cloud, use Upload a Vision Event Bundle.

Edge Device Backup

For enterprise deployments where connectivity may be intermittent, the edge device stores events locally and syncs them to Roboflow when connectivity is restored.

Edge Device Backup requires Deployment Manager. See the Deployment Manager documentation for setup instructions.

To enable Vision Events backup:

  1. Open Deployment Manager in your workspace

  2. Select the device to configure

  3. Enable Vision Events Backup in the device's Event Store configuration

  4. Events are written to the local event store on the device

  5. When the device reconnects, events sync to Roboflow automatically

Events appear in the Vision Events dashboard after sync completes.

When "Backup Mode" is "Records and Files", video clips attached to events on the device upload too, so they play in the dashboard. MP4 and MOV clips upload, up to four per event. Other formats stay on the device. A clip that fails to upload delays its event by about an hour per retry. After repeated failures (3 by default) the event syncs without the clip. See Draft Events and Video for how a pipeline attaches clips on the device.

Last updated

Was this helpful?