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:
Velocity
,Cache Set
,Single-Label Classification Model
,Image Preprocessing
,Mask Visualization
,Object Detection Model
,VLM as Detector
,CLIP Embedding Model
,Image Convert Grayscale
,Dominant Color
,Color Visualization
,Line Counter
,Image Slicer
,Multi-Label Classification Model
,Llama 3.2 Vision
,Cache Get
,Path Deviation
,LMM For Classification
,Segment Anything 2 Model
,CSV Formatter
,Email Notification
,Continue If
,Line Counter
,Qwen2.5-VL
,Overlap Filter
,Image Blur
,Background Color Visualization
,Instance Segmentation Model
,Stability AI Inpainting
,Classification Label Visualization
,OpenAI
,LMM
,Clip Comparison
,QR Code Generator
,Slack Notification
,Detections Classes Replacement
,Model Monitoring Inference Aggregator
,Identify Changes
,Object Detection Model
,Google Vision OCR
,Camera Focus
,YOLO-World Model
,Local File Sink
,SIFT Comparison
,Stability AI Image Generation
,Bounding Box Visualization
,Gaze Detection
,Crop Visualization
,Data Aggregator
,Identify Outliers
,Relative Static Crop
,Circle Visualization
,Camera Calibration
,Label Visualization
,Roboflow Custom Metadata
,Contrast Equalization
,Moondream2
,SmolVLM2
,Corner Visualization
,Google Gemini
,Icon Visualization
,Ellipse Visualization
,Dynamic Zone
,Image Contours
,VLM as Detector
,Polygon Visualization
,Detections Combine
,Stitch Images
,Dimension Collapse
,OpenAI
,Detections Filter
,First Non Empty Or Default
,QR Code Detection
,Anthropic Claude
,Pixel Color Count
,Absolute Static Crop
,Webhook Sink
,Cosine Similarity
,Detections Merge
,Depth Estimation
,Perception Encoder Embedding Model
,Trace Visualization
,Polygon Zone Visualization
,Bounding Rectangle
,Triangle Visualization
,Image Slicer
,Delta Filter
,Florence-2 Model
,Byte Tracker
,Stitch OCR Detections
,Pixelate Visualization
,VLM as Classifier
,EasyOCR
,Buffer
,Template Matching
,Path Deviation
,Barcode Detection
,Grid Visualization
,JSON Parser
,SIFT Comparison
,Roboflow Dataset Upload
,Byte Tracker
,Property Definition
,Morphological Transformation
,Keypoint Detection Model
,Size Measurement
,CogVLM
,Expression
,Twilio SMS Notification
,Time in Zone
,Dynamic Crop
,PTZ Tracking (ONVIF)
.md),Dot Visualization
,Distance Measurement
,Rate Limiter
,Reference Path Visualization
,Detections Consensus
,Stability AI Outpainting
,Time in Zone
,SIFT
,Perspective Correction
,Model Comparison Visualization
,Image Threshold
,Line Counter Visualization
,Florence-2 Model
,Blur Visualization
,Detection Offset
,Keypoint Visualization
,OCR Model
,Instance Segmentation Model
,Detections Transformation
,OpenAI
,Single-Label Classification Model
,Detections Stabilizer
,Roboflow Dataset Upload
,Byte Tracker
,Halo Visualization
,Detections Stitch
,Multi-Label Classification Model
,Clip Comparison
,VLM as Classifier
,Time in Zone
,Keypoint Detection Model
,Environment Secrets Store
- outputs:
Webhook Sink
,Cache Set
,Single-Label Classification Model
,Image Preprocessing
,Mask Visualization
,Object Detection Model
,CLIP Embedding Model
,Trace Visualization
,Perception Encoder Embedding Model
,Polygon Zone Visualization
,Triangle Visualization
,Color Visualization
,Florence-2 Model
,Line Counter
,Multi-Label Classification Model
,Llama 3.2 Vision
,Cache Get
,Path Deviation
,LMM For Classification
,Stitch OCR Detections
,Segment Anything 2 Model
,Pixelate Visualization
,Email Notification
,Template Matching
,Line Counter
,Path Deviation
,Image Blur
,Instance Segmentation Model
,Background Color Visualization
,Stability AI Inpainting
,Classification Label Visualization
,OpenAI
,QR Code Generator
,LMM
,Roboflow Dataset Upload
,Morphological Transformation
,Slack Notification
,Detections Classes Replacement
,Keypoint Detection Model
,Model Monitoring Inference Aggregator
,Size Measurement
,CogVLM
,Twilio SMS Notification
,Object Detection Model
,Google Vision OCR
,YOLO-World Model
,Time in Zone
,Local File Sink
,SIFT Comparison
,Dynamic Crop
,Stability AI Image Generation
,PTZ Tracking (ONVIF)
.md),Dot Visualization
,Bounding Box Visualization
,Reference Path Visualization
,Distance Measurement
,Gaze Detection
,Crop Visualization
,Detections Consensus
,Stability AI Outpainting
,Time in Zone
,Circle Visualization
,Perspective Correction
,Model Comparison Visualization
,Label Visualization
,Line Counter Visualization
,Image Threshold
,Roboflow Custom Metadata
,Florence-2 Model
,Blur Visualization
,Keypoint Visualization
,Instance Segmentation Model
,Contrast Equalization
,Moondream2
,Corner Visualization
,OpenAI
,Google Gemini
,Single-Label Classification Model
,Icon Visualization
,Roboflow Dataset Upload
,Ellipse Visualization
,Dynamic Zone
,Halo Visualization
,Polygon Visualization
,Detections Stitch
,Multi-Label Classification Model
,OpenAI
,Clip Comparison
,Keypoint Detection Model
,Time in Zone
,Anthropic Claude
,Pixel Color Count
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"
}