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