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