Roboflow Vision Events¶
Class: RoboflowVisionEventsBlockV1
Source: inference.core.workflows.core_steps.sinks.roboflow.vision_events.v1.RoboflowVisionEventsBlockV1
Send images, model predictions, and event metadata to the Roboflow Vision Events API for monitoring, quality control, safety alerting, and custom event tracking.
How This Block Works¶
This block uploads workflow images and model predictions to the Roboflow Vision Events API, creating structured events that can be queried, filtered, and visualized in the Roboflow dashboard.
- Optionally uploads an input image and/or output image (visualization) to the Vision Events image storage via the public API
- Converts model predictions (object detection, classification, instance segmentation, or keypoint detection) into the Vision Events annotation format and attaches them to the input image
- Creates a vision event with the specified event type, use case, event data, and custom metadata
- Supports fire-and-forget mode for non-blocking execution
Event Types¶
- quality_check: Manufacturing/inspection QA with pass/fail result and optional confidence
- inventory_count: Inventory tracking with location, item count, and item type
- safety_alert: Safety violations with alert type, severity (low/medium/high), and description
- custom: User-defined events with a free-form value string
- operator_feedback: Operator review/correction of previous events (correct/incorrect/inconclusive)
Requirements¶
API Key Required: This block requires a valid Roboflow API key with vision-events:write
scope. The API key must be configured in your environment or workflow configuration.
Common Use Cases¶
- Quality Control: Automatically log inspection results with images and detection overlays
- Safety Monitoring: Send safety alerts when violations are detected in video streams
- Production Analytics: Track inventory counts and production metrics with visual evidence
- Active Monitoring: Fire-and-forget event logging from real-time video processing workflows
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/roboflow_vision_events@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
event_type |
str |
The type of vision event to create.. | ✅ |
solution |
str |
The use case to associate the event with. Events are namespaced by use case within a workspace.. | ✅ |
external_id |
str |
External identifier for correlation with other systems (max 1000 chars).. | ✅ |
qc_result |
str |
Quality check result: pass or fail.. | ✅ |
location |
str |
Location identifier for inventory count.. | ✅ |
item_count |
int |
Number of items counted.. | ✅ |
item_type |
str |
Type of item being counted.. | ✅ |
alert_type |
str |
Alert type identifier (e.g. no_hardhat, spill_detected).. | ✅ |
severity |
str |
Severity level for the safety alert.. | ✅ |
alert_description |
str |
Description of the safety alert.. | ✅ |
custom_value |
str |
Arbitrary value for custom events.. | ✅ |
related_event_id |
str |
The event ID of the event being reviewed.. | ✅ |
feedback |
str |
Operator feedback on the related event.. | ✅ |
custom_metadata |
Dict[str, Union[bool, float, int, str]] |
Flat key-value metadata to attach to the event. Keys must match pattern [a-zA-Z0-9_ -]+ (max 100 chars). String values max 1000 chars.. | ✅ |
fire_and_forget |
bool |
If True, the event is sent asynchronously and the workflow continues without waiting. If False, the block waits for the API response.. | ✅ |
disable_sink |
bool |
If True, the block is disabled and no events are sent.. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Roboflow Vision Events in version v1.
- inputs:
Keypoint Detection Model,VLM As Detector,YOLO-World Model,MoonshotAI Kimi,Polygon Zone Visualization,OpenAI-Compatible LLM,Heatmap Visualization,Email Notification,Llama 3.2 Vision,Anthropic Claude,Camera Focus,Label Visualization,Path Deviation,Qwen3.5,SmolVLM2,Rate Limiter,Byte Tracker,Background Color Visualization,Mask Edge Snap,Moondream2,Velocity,Detection Event Log,Florence-2 Model,Barcode Detection,OCR Model,Single-Label Classification Model,VLM As Classifier,Qwen2.5-VL,Detections Stabilizer,LMM For Classification,SIFT,Roboflow Dataset Upload,Segment Anything 2 Model,Halo Visualization,Multi-Label Classification Model,Qwen3.5-VL,Qwen3-VL,Time in Zone,Stitch OCR Detections,Model Comparison Visualization,QR Code Detection,Detections Combine,Bounding Rectangle,ByteTrack Tracker,Stability AI Inpainting,Image Convert Grayscale,Line Counter,OpenAI,Llama 3.2 Vision,Anthropic Claude,Dynamic Crop,Detections Consensus,Size Measurement,Dominant Color,Continue If,Contrast Enhancement,Bounding Box Visualization,Depth Estimation,CLIP Embedding Model,EasyOCR,Relative Static Crop,Polygon Visualization,Google Gemma API,Template Matching,Qwen 3.6 API,Single-Label Classification Model,Image Blur,Anthropic Claude,Triangle Visualization,Roboflow Custom Metadata,Slack Notification,Image Stack,Pixelate Visualization,Image Slicer,Line Counter Visualization,Image Slicer,Cosine Similarity,Cache Get,Expression,Data Aggregator,Google Gemini,Camera Calibration,Ellipse Visualization,Identify Changes,GLM-OCR,Crop Visualization,Circle Visualization,Dimension Collapse,Webhook Sink,MoonshotAI Kimi,S3 Sink,Email Notification,Clip Comparison,Morphological Transformation,Path Deviation,SAM 3,Qwen-VL,Twilio SMS/MMS Notification,Line Counter,Time in Zone,Stitch OCR Detections,VLM As Detector,OpenAI,Keypoint Visualization,Seg Preview,Stability AI Image Generation,Google Vision OCR,SAM 3,Instance Segmentation Model,Overlap Filter,Local File Sink,Multi-Label Classification Model,Google Gemini,Motion Detection,Instance Segmentation Model,Qwen 3.5 API,Google Gemini,Polygon Visualization,SIFT Comparison,Grid Visualization,Delta Filter,Time in Zone,Detections Filter,Detections Merge,First Non Empty Or Default,Keypoint Detection Model,Image Preprocessing,Dynamic Zone,Corner Visualization,Stability AI Outpainting,Detections List Roll-Up,Blur Visualization,Semantic Segmentation Model,Property Definition,Perception Encoder Embedding Model,Distance Measurement,Morphological Transformation,Trace Visualization,VLM As Classifier,Gaze Detection,Reference Path Visualization,Halo Visualization,Dot Visualization,Pixel Color Count,JSON Parser,Background Subtraction,Text Display,Absolute Static Crop,CSV Formatter,Florence-2 Model,Byte Tracker,Icon Visualization,Identify Outliers,Mask Area Measurement,Object Detection Model,Perspective Correction,SAM 3,BoT-SORT Tracker,Object Detection Model,QR Code Generator,OpenRouter,Model Monitoring Inference Aggregator,Image Threshold,OC-SORT Tracker,Clip Comparison,Cache Set,Detection Offset,Keypoint Detection Model,Image Contours,Multi-Label Classification Model,Per-Class Confidence Filter,Object Detection Model,OpenAI,SIFT Comparison,Stitch Images,Single-Label Classification Model,Instance Segmentation Model,OpenAI,Buffer,Environment Secrets Store,Detections Classes Replacement,Semantic Segmentation Model,LMM,Roboflow Dataset Upload,Detections Transformation,Color Visualization,Classification Label Visualization,Camera Focus,Detections Stitch,Byte Tracker,PTZ Tracking (ONVIF),SORT Tracker,Mask Visualization,CogVLM,Inner Workflow,SAM2 Video Tracker,Contrast Equalization,Roboflow Vision Events,Twilio SMS Notification,Google Gemma - outputs:
S3 Sink,Email Notification,Keypoint Detection Model,Morphological Transformation,SAM 3,Path Deviation,Qwen-VL,Clip Comparison,Twilio SMS/MMS Notification,YOLO-World Model,Line Counter,Time in Zone,Polygon Zone Visualization,MoonshotAI Kimi,Stitch OCR Detections,OpenAI-Compatible LLM,OpenAI,Heatmap Visualization,Email Notification,Keypoint Visualization,Llama 3.2 Vision,Anthropic Claude,Stability AI Image Generation,Seg Preview,Google Vision OCR,Label Visualization,SAM 3,Instance Segmentation Model,Path Deviation,Local File Sink,Multi-Label Classification Model,Google Gemini,Motion Detection,Background Color Visualization,Instance Segmentation Model,Qwen 3.5 API,Google Gemini,Polygon Visualization,Moondream2,SIFT Comparison,Florence-2 Model,Time in Zone,Single-Label Classification Model,LMM For Classification,Keypoint Detection Model,Image Preprocessing,Roboflow Dataset Upload,Dynamic Zone,Corner Visualization,Segment Anything 2 Model,Stability AI Outpainting,Multi-Label Classification Model,Halo Visualization,Time in Zone,Semantic Segmentation Model,Blur Visualization,Perception Encoder Embedding Model,Distance Measurement,Morphological Transformation,Trace Visualization,Stitch OCR Detections,Gaze Detection,Reference Path Visualization,Halo Visualization,Model Comparison Visualization,Dot Visualization,Pixel Color Count,Text Display,Florence-2 Model,Icon Visualization,Object Detection Model,Perspective Correction,SAM 3,BoT-SORT Tracker,Stability AI Inpainting,Object Detection Model,Line Counter,QR Code Generator,OpenRouter,Model Monitoring Inference Aggregator,OpenAI,Llama 3.2 Vision,Image Threshold,Anthropic Claude,Dynamic Crop,Detections Consensus,Size Measurement,Cache Set,Bounding Box Visualization,Depth Estimation,Keypoint Detection Model,CLIP Embedding Model,Multi-Label Classification Model,Polygon Visualization,Google Gemma API,Template Matching,Qwen 3.6 API,Single-Label Classification Model,Image Blur,Anthropic Claude,Object Detection Model,Triangle Visualization,Roboflow Custom Metadata,OpenAI,Slack Notification,Image Stack,Pixelate Visualization,Single-Label Classification Model,OpenAI,Instance Segmentation Model,Line Counter Visualization,Detections Classes Replacement,Cache Get,LMM,Roboflow Dataset Upload,Color Visualization,Google Gemini,Classification Label Visualization,Camera Calibration,Detections Stitch,Ellipse Visualization,PTZ Tracking (ONVIF),Mask Visualization,GLM-OCR,Crop Visualization,Circle Visualization,CogVLM,Contrast Equalization,Roboflow Vision Events,Webhook Sink,Twilio SMS Notification,MoonshotAI Kimi,Google Gemma
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Roboflow Vision Events in version v1 has.
Bindings
-
input
input_image(image): The original input image. Uploaded to the Vision Events API and used as the base image for detection annotations..output_image(image): An optional output/visualized image (e.g., from a visualization block). Displayed as the primary image in the Vision Events dashboard..predictions(Union[instance_segmentation_prediction,classification_prediction,object_detection_prediction,keypoint_detection_prediction]): Optional model predictions to include as detection annotations on the input image. Supports object detection, instance segmentation, keypoint detection, and classification predictions..event_type(string): The type of vision event to create..solution(Union[string,roboflow_solution]): The use case to associate the event with. Events are namespaced by use case within a workspace..external_id(string): External identifier for correlation with other systems (max 1000 chars)..qc_result(string): Quality check result: pass or fail..location(string): Location identifier for inventory count..item_count(integer): Number of items counted..item_type(string): Type of item being counted..alert_type(string): Alert type identifier (e.g. no_hardhat, spill_detected)..severity(string): Severity level for the safety alert..alert_description(string): Description of the safety alert..custom_value(string): Arbitrary value for custom events..related_event_id(string): The event ID of the event being reviewed..feedback(string): Operator feedback on the related event..custom_metadata(*): Flat key-value metadata to attach to the event. Keys must match pattern [a-zA-Z0-9_ -]+ (max 100 chars). String values max 1000 chars..fire_and_forget(boolean): If True, the event is sent asynchronously and the workflow continues without waiting. If False, the block waits for the API response..disable_sink(boolean): If True, the block is disabled and no events are sent..
-
output
Example JSON definition of step Roboflow Vision Events in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_vision_events@v1",
"input_image": "$inputs.image",
"output_image": "$steps.visualization.image",
"predictions": "$steps.object_detection_model.predictions",
"event_type": "quality_check",
"solution": "my-use-case",
"external_id": "batch-2025-001",
"qc_result": "pass",
"location": "warehouse-A",
"item_count": 42,
"item_type": "widget",
"alert_type": "no_hardhat",
"severity": "high",
"alert_description": "Worker detected without hardhat in zone B",
"custom_value": "anomaly detected at 14:32",
"related_event_id": "evt_abc123",
"feedback": "correct",
"custom_metadata": {
"camera_id": "cam_01",
"location": "$inputs.location"
},
"fire_and_forget": true,
"disable_sink": false
}