Twilio SMS Notification¶
Class: TwilioSMSNotificationBlockV1
Source: inference.core.workflows.core_steps.sinks.twilio.sms.v1.TwilioSMSNotificationBlockV1
The 📲 Twilio SMS Notification ✉️ block enables sending text message notifications via the Twilio SMS service, with flexible features such as dynamic content, message truncation, and cooldown management.
The block requires Twilio setup - this article may help you configuring everything properly.
✨ Key Features¶
-
📢 Send SMS: Deliver SMS messages to designated recipients.
-
🔗 Dynamic Content: Craft notifications based on outputs from other Workflow steps.
-
✂️ Message Truncation: Automatically truncate messages exceeding the character limit.
-
🕒 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/twilio_sms_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.. | ❌ |
twilio_account_sid |
str |
Twilio Account SID. Visit the Twilio Console to configure the SMS service and retrieve the value.. | ✅ |
twilio_auth_token |
str |
Twilio Auth Token. Visit the Twilio Console to configure the SMS service and retrieve the value.. | ✅ |
sender_number |
str |
Sender phone number. | ✅ |
receiver_number |
str |
Receiver phone number. | ✅ |
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.. | ❌ |
length_limit |
int |
Maximum number of characters in SMS notification (longer messages will be truncated).. | ✅ |
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 Twilio SMS Notification
in version v1
.
- inputs:
Byte Tracker
,Distance Measurement
,Time in Zone
,Dot Visualization
,Perspective Correction
,Delta Filter
,Blur Visualization
,Clip Comparison
,OpenAI
,Keypoint Detection Model
,EasyOCR
,Stability AI Outpainting
,Twilio SMS Notification
,VLM as Classifier
,Google Vision OCR
,Continue If
,Roboflow Dataset Upload
,Email Notification
,Instance Segmentation Model
,Image Convert Grayscale
,Llama 3.2 Vision
,Detections Stabilizer
,Bounding Box Visualization
,Rate Limiter
,Reference Path Visualization
,Image Preprocessing
,Local File Sink
,First Non Empty Or Default
,OpenAI
,Image Slicer
,Cosine Similarity
,Detections Stitch
,SIFT Comparison
,Dominant Color
,Velocity
,Object Detection Model
,Buffer
,Stability AI Image Generation
,SmolVLM2
,Dimension Collapse
,Cache Get
,Roboflow Custom Metadata
,SIFT Comparison
,Model Comparison Visualization
,Dynamic Zone
,Line Counter
,Time in Zone
,QR Code Detection
,Relative Static Crop
,Slack Notification
,Polygon Visualization
,JSON Parser
,Triangle Visualization
,YOLO-World Model
,Single-Label Classification Model
,Detections Classes Replacement
,Data Aggregator
,Bounding Rectangle
,Circle Visualization
,Label Visualization
,Google Gemini
,VLM as Detector
,Multi-Label Classification Model
,Detections Merge
,CSV Formatter
,Path Deviation
,Detections Consensus
,Moondream2
,Segment Anything 2 Model
,Expression
,LMM For Classification
,VLM as Classifier
,Polygon Zone Visualization
,Identify Outliers
,Morphological Transformation
,Size Measurement
,LMM
,Corner Visualization
,Pixel Color Count
,Florence-2 Model
,PTZ Tracking (ONVIF)
.md),Grid Visualization
,Image Threshold
,Florence-2 Model
,Halo Visualization
,Multi-Label Classification Model
,CogVLM
,Detection Offset
,Detections Combine
,Byte Tracker
,Line Counter Visualization
,Perception Encoder Embedding Model
,Stitch OCR Detections
,VLM as Detector
,Keypoint Detection Model
,CLIP Embedding Model
,Identify Changes
,Camera Focus
,SIFT
,Clip Comparison
,Image Slicer
,Keypoint Visualization
,Template Matching
,OCR Model
,Line Counter
,Instance Segmentation Model
,Dynamic Crop
,Roboflow Dataset Upload
,Mask Visualization
,Qwen2.5-VL
,Background Color Visualization
,Webhook Sink
,Camera Calibration
,Depth Estimation
,QR Code Generator
,Property Definition
,Time in Zone
,Trace Visualization
,Detections Transformation
,Contrast Equalization
,Byte Tracker
,Cache Set
,Crop Visualization
,Overlap Filter
,Object Detection Model
,Pixelate Visualization
,Model Monitoring Inference Aggregator
,Gaze Detection
,Anthropic Claude
,Barcode Detection
,Image Contours
,OpenAI
,Path Deviation
,Detections Filter
,Classification Label Visualization
,Image Blur
,Absolute Static Crop
,Stability AI Inpainting
,Icon Visualization
,Ellipse Visualization
,Color Visualization
,Environment Secrets Store
,Single-Label Classification Model
,Stitch Images
- outputs:
Polygon Zone Visualization
,Time in Zone
,Distance Measurement
,LMM For Classification
,Dot Visualization
,Morphological Transformation
,Size Measurement
,Perspective Correction
,Blur Visualization
,Corner Visualization
,LMM
,Pixel Color Count
,PTZ Tracking (ONVIF)
.md),Florence-2 Model
,Image Threshold
,Florence-2 Model
,Halo Visualization
,OpenAI
,Keypoint Detection Model
,Multi-Label Classification Model
,CogVLM
,Line Counter Visualization
,Perception Encoder Embedding Model
,Stitch OCR Detections
,Stability AI Outpainting
,Twilio SMS Notification
,Keypoint Detection Model
,CLIP Embedding Model
,Google Vision OCR
,Roboflow Dataset Upload
,Email Notification
,Instance Segmentation Model
,Clip Comparison
,Keypoint Visualization
,Template Matching
,Llama 3.2 Vision
,Bounding Box Visualization
,Instance Segmentation Model
,Line Counter
,Reference Path Visualization
,Dynamic Crop
,Roboflow Dataset Upload
,Mask Visualization
,Image Preprocessing
,Background Color Visualization
,Local File Sink
,Webhook Sink
,OpenAI
,QR Code Generator
,Detections Stitch
,Trace Visualization
,Time in Zone
,Object Detection Model
,Contrast Equalization
,Cache Set
,Crop Visualization
,Stability AI Image Generation
,SIFT Comparison
,Roboflow Custom Metadata
,Cache Get
,Object Detection Model
,Model Comparison Visualization
,Pixelate Visualization
,Dynamic Zone
,Model Monitoring Inference Aggregator
,Gaze Detection
,Line Counter
,Anthropic Claude
,Time in Zone
,Polygon Visualization
,Slack Notification
,OpenAI
,Path Deviation
,Triangle Visualization
,Single-Label Classification Model
,YOLO-World Model
,Classification Label Visualization
,Detections Classes Replacement
,Circle Visualization
,Image Blur
,Label Visualization
,Google Gemini
,Stability AI Inpainting
,Multi-Label Classification Model
,Icon Visualization
,Ellipse Visualization
,Color Visualization
,Path Deviation
,Single-Label Classification Model
,Detections Consensus
,Moondream2
,Segment Anything 2 Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Twilio SMS Notification
in version v1
has.
Bindings
-
input
twilio_account_sid
(Union[string
,secret
]): Twilio Account SID. Visit the Twilio Console to configure the SMS service and retrieve the value..twilio_auth_token
(Union[string
,secret
]): Twilio Auth Token. Visit the Twilio Console to configure the SMS service and retrieve the value..sender_number
(string
): Sender phone number.receiver_number
(string
): Receiver phone number.message_parameters
(*
): Data to be used in the message content..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).length_limit
(integer
): Maximum number of characters in SMS notification (longer messages will be truncated)..
-
output
Example JSON definition of step Twilio SMS Notification
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/twilio_sms_notification@v1",
"twilio_account_sid": "$inputs.twilio_account_sid",
"twilio_auth_token": "$inputs.twilio_auth_token",
"sender_number": "+1234567890",
"receiver_number": "+1234567890",
"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"
}
]
},
"fire_and_forget": "$inputs.fire_and_forget",
"disable_sink": false,
"cooldown_seconds": "$inputs.cooldown_seconds",
"cooldown_session_key": "session-1v73kdhfse",
"length_limit": "$inputs.sms_length_limit"
}