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