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, 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.. | β |
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:
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
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"
}