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