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