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