Slack Notification¶
Class: SlackNotificationBlockV1
Source: inference.core.workflows.core_steps.sinks.slack.notification.v1.SlackNotificationBlockV1
The Slack Notification block 📩 enables sending notifications via Slack, with customizable messages, attachments, and cooldown mechanisms.
The block requires Slack setup - this article may help you configuring everything properly.
✨ Key Features¶
-
📢 Send Messages: Deliver notifications to specified Slack channels.
-
🔗 Dynamic Content: Craft notifications based on outputs from other Workflow steps.
-
📎 Attach Files: Share reports, predictions or visualizations.
-
🕒 Cooldown Control: Prevent duplicate notifications within a set time frame.
-
⚙️ Flexible Execution: Execute in the background or block Workflow execution for debugging.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/slack_notification@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
slack_token |
str |
View the Roboflow Blog or Slack Documentation to learn how to generate a Slack API token.. | ✅ |
channel |
str |
Identifier of Slack channel.. | ✅ |
message |
str |
Content of the message to be sent.. | ❌ |
message_parameters |
Dict[str, Union[bool, float, int, str]] |
Data to be used in the message content.. | ✅ |
message_parameters_operations |
Dict[str, List[Union[ClassificationPropertyExtract, ConvertDictionaryToJSON, ConvertImageToBase64, ConvertImageToJPEG, DetectionsFilter, DetectionsOffset, DetectionsPropertyExtract, DetectionsRename, DetectionsSelection, DetectionsShift, DetectionsToDictionary, Divide, ExtractDetectionProperty, ExtractFrameMetadata, ExtractImageProperty, LookupTable, Multiply, NumberRound, NumericSequenceAggregate, PickDetectionsByParentClass, RandomNumber, SequenceAggregate, SequenceApply, SequenceElementsCount, SequenceLength, SequenceMap, SortDetections, StringMatches, StringSubSequence, StringToLowerCase, StringToUpperCase, TimestampToISOFormat, ToBoolean, ToNumber, ToString]]] |
Preprocessing operations to be performed on message parameters.. | ❌ |
fire_and_forget |
bool |
Boolean flag to run the block asynchronously (True) for faster workflows or synchronously (False) for debugging and error handling.. | ✅ |
disable_sink |
bool |
Boolean flag to disable block execution.. | ✅ |
cooldown_seconds |
int |
Number of seconds until a follow-up notification can be sent. Maximum value: 900 seconds (15 minutes). | ✅ |
cooldown_session_key |
str |
Unique key used internally to implement cooldown. Must be unique for each step in your Workflow.. | ❌ |
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 Slack Notification
in version v1
.
- inputs:
Model Monitoring Inference Aggregator
,Label Visualization
,Florence-2 Model
,Triangle Visualization
,Image Blur
,OCR Model
,Detections Transformation
,Line Counter Visualization
,Circle Visualization
,Relative Static Crop
,Detections Stitch
,Trace Visualization
,Byte Tracker
,Object Detection Model
,Clip Comparison
,Detection Offset
,Detections Consensus
,Velocity
,Dominant Color
,Stitch Images
,Bounding Rectangle
,Detections Filter
,Cosine Similarity
,Segment Anything 2 Model
,Roboflow Custom Metadata
,Single-Label Classification Model
,VLM as Classifier
,Local File Sink
,Crop Visualization
,Color Visualization
,Image Slicer
,Google Gemini
,Dynamic Crop
,Multi-Label Classification Model
,Instance Segmentation Model
,Continue If
,Keypoint Detection Model
,SmolVLM2
,Google Vision OCR
,Corner Visualization
,Overlap Filter
,Polygon Zone Visualization
,Byte Tracker
,Camera Focus
,Grid Visualization
,Perspective Correction
,Stability AI Image Generation
,Cache Get
,Image Slicer
,CSV Formatter
,OpenAI
,Blur Visualization
,Time in Zone
,Slack Notification
,SIFT Comparison
,Pixel Color Count
,Detections Stabilizer
,Anthropic Claude
,QR Code Detection
,Buffer
,Bounding Box Visualization
,Distance Measurement
,Twilio SMS Notification
,Email Notification
,Object Detection Model
,LMM For Classification
,SIFT Comparison
,VLM as Detector
,LMM
,Florence-2 Model
,Depth Estimation
,CogVLM
,Model Comparison Visualization
,Cache Set
,First Non Empty Or Default
,Data Aggregator
,Barcode Detection
,Environment Secrets Store
,Multi-Label Classification Model
,Path Deviation
,Rate Limiter
,Dimension Collapse
,Gaze Detection
,Reference Path Visualization
,Llama 3.2 Vision
,Expression
,Roboflow Dataset Upload
,Detections Merge
,Polygon Visualization
,Time in Zone
,Identify Outliers
,SIFT
,Image Threshold
,Path Deviation
,Property Definition
,CLIP Embedding Model
,Keypoint Visualization
,Ellipse Visualization
,JSON Parser
,OpenAI
,Instance Segmentation Model
,Dot Visualization
,Roboflow Dataset Upload
,Keypoint Detection Model
,Stability AI Inpainting
,Line Counter
,Identify Changes
,Single-Label Classification Model
,Template Matching
,Background Color Visualization
,Delta Filter
,VLM as Detector
,Line Counter
,Qwen2.5-VL
,Clip Comparison
,Dynamic Zone
,Classification Label Visualization
,Image Convert Grayscale
,Image Preprocessing
,Byte Tracker
,OpenAI
,YOLO-World Model
,Stability AI Outpainting
,Perception Encoder Embedding Model
,Size Measurement
,Webhook Sink
,Moondream2
,Camera Calibration
,Mask Visualization
,Pixelate Visualization
,Stitch OCR Detections
,PTZ Tracking (ONVIF)
.md),Image Contours
,Detections Classes Replacement
,Absolute Static Crop
,Halo Visualization
,VLM as Classifier
- outputs:
Florence-2 Model
,Model Monitoring Inference Aggregator
,Label Visualization
,Florence-2 Model
,Triangle Visualization
,CogVLM
,Image Blur
,Model Comparison Visualization
,Cache Set
,Line Counter Visualization
,Circle Visualization
,Detections Stitch
,Trace Visualization
,Multi-Label Classification Model
,Object Detection Model
,Path Deviation
,Detections Consensus
,Gaze Detection
,Reference Path Visualization
,Llama 3.2 Vision
,Polygon Visualization
,Roboflow Dataset Upload
,Segment Anything 2 Model
,Time in Zone
,Roboflow Custom Metadata
,Single-Label Classification Model
,Image Threshold
,Path Deviation
,CLIP Embedding Model
,Keypoint Visualization
,Ellipse Visualization
,Crop Visualization
,Color Visualization
,Local File Sink
,Google Gemini
,Dynamic Crop
,OpenAI
,Instance Segmentation Model
,Multi-Label Classification Model
,Dot Visualization
,Instance Segmentation Model
,Roboflow Dataset Upload
,Keypoint Detection Model
,Keypoint Detection Model
,Stability AI Inpainting
,Line Counter
,Google Vision OCR
,Single-Label Classification Model
,Template Matching
,Corner Visualization
,Background Color Visualization
,Polygon Zone Visualization
,Stability AI Image Generation
,Perspective Correction
,Cache Get
,Line Counter
,OpenAI
,Clip Comparison
,Blur Visualization
,Dynamic Zone
,Classification Label Visualization
,Time in Zone
,Image Preprocessing
,Slack Notification
,SIFT Comparison
,OpenAI
,Pixel Color Count
,YOLO-World Model
,Stability AI Outpainting
,Perception Encoder Embedding Model
,Anthropic Claude
,Size Measurement
,Webhook Sink
,Mask Visualization
,Bounding Box Visualization
,Distance Measurement
,Pixelate Visualization
,Twilio SMS Notification
,Email Notification
,PTZ Tracking (ONVIF)
.md),Object Detection Model
,Detections Classes Replacement
,Halo Visualization
,LMM For Classification
,LMM
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Slack Notification
in version v1
has.
Bindings
-
input
slack_token
(Union[string
,secret
]): View the Roboflow Blog or Slack Documentation to learn how to generate a Slack API token..channel
(string
): Identifier of Slack channel..message_parameters
(*
): Data to be used in the message content..attachments
(Union[string
,bytes
]): Attachments to be sent in the message, such as a csv file or jpg image..fire_and_forget
(boolean
): Boolean flag to run the block asynchronously (True) for faster workflows or synchronously (False) for debugging and error handling..disable_sink
(boolean
): Boolean flag to disable block execution..cooldown_seconds
(integer
): Number of seconds until a follow-up notification can be sent. Maximum value: 900 seconds (15 minutes).
-
output
Example JSON definition of step Slack Notification
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/slack_notification@v1",
"slack_token": "$inputs.slack_token",
"channel": "$inputs.slack_channel_id",
"message": "During last 5 minutes detected {{ $parameters.num_instances }} instances",
"message_parameters": {
"predictions": "$steps.model.predictions",
"reference": "$inputs.reference_class_names"
},
"message_parameters_operations": {
"predictions": [
{
"property_name": "class_name",
"type": "DetectionsPropertyExtract"
}
]
},
"attachments": {
"report.csv": "$steps.csv_formatter.csv_content"
},
"fire_and_forget": "$inputs.fire_and_forget",
"disable_sink": false,
"cooldown_seconds": "$inputs.cooldown_seconds",
"cooldown_session_key": "session-1v73kdhfse"
}