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