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