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