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 https://twilio.com/console to set up SMS service and fetch the value.. | β |
twilio_auth_token |
str |
Twilio Auth Token. Visit Twilio Console to set up SMS service and fetch the value.. | β |
message |
str |
Content of the message to be send. | β |
sender_number |
str |
Sender phone number. | β |
receiver_number |
str |
Receiver phone number. | β |
message_parameters |
Dict[str, Union[bool, float, int, str]] |
References data to be used to construct each and every column. | β |
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, RandomNumber, SequenceAggregate, SequenceApply, SequenceLength, SequenceMap, SortDetections, StringMatches, StringSubSequence, StringToLowerCase, StringToUpperCase, ToBoolean, ToNumber, ToString]]] |
UQL definitions of operations to be performed on defined data w.r.t. each message parameter. | β |
fire_and_forget |
bool |
Boolean flag dictating if sink is supposed to be executed in the background, not waiting on status of registration before end of workflow run. Use True if best-effort registration is needed, use False while debugging and if error handling is needed. |
β |
disable_sink |
bool |
boolean flag that can be also reference to input - to arbitrarily disable data collection for specific request. | β |
cooldown_seconds |
int |
Number of seconds to wait until 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:
Pixelate Visualization
,Gaze Detection
,CLIP Embedding Model
,Blur Visualization
,OCR Model
,Mask Visualization
,Object Detection Model
,SIFT
,Line Counter
,YOLO-World Model
,Cache Get
,Halo Visualization
,Environment Secrets Store
,Grid Visualization
,Google Vision OCR
,Email Notification
,Camera Focus
,Image Threshold
,Byte Tracker
,Template Matching
,Image Preprocessing
,Roboflow Dataset Upload
,Relative Static Crop
,Background Color Visualization
,Bounding Box Visualization
,Image Contours
,Triangle Visualization
,Bounding Rectangle
,Absolute Static Crop
,Distance Measurement
,Time in Zone
,Florence-2 Model
,Detections Stitch
,SIFT Comparison
,Keypoint Detection Model
,Local File Sink
,Expression
,Roboflow Custom Metadata
,Cache Set
,Crop Visualization
,Clip Comparison
,Dynamic Zone
,SIFT Comparison
,Image Convert Grayscale
,Single-Label Classification Model
,Identify Outliers
,Florence-2 Model
,Time in Zone
,OpenAI
,Path Deviation
,Color Visualization
,Pixel Color Count
,Multi-Label Classification Model
,Property Definition
,Multi-Label Classification Model
,Path Deviation
,Stitch Images
,LMM For Classification
,First Non Empty Or Default
,Keypoint Detection Model
,Line Counter
,Instance Segmentation Model
,Rate Limiter
,Single-Label Classification Model
,Detections Filter
,Model Monitoring Inference Aggregator
,Polygon Visualization
,VLM as Detector
,Model Comparison Visualization
,CogVLM
,Keypoint Visualization
,Detections Classes Replacement
,Data Aggregator
,Detection Offset
,Slack Notification
,Stitch OCR Detections
,Identify Changes
,Clip Comparison
,Ellipse Visualization
,Label Visualization
,Classification Label Visualization
,Line Counter Visualization
,Byte Tracker
,LMM
,Stability AI Inpainting
,Reference Path Visualization
,VLM as Detector
,Dynamic Crop
,Dominant Color
,Byte Tracker
,Object Detection Model
,Barcode Detection
,Corner Visualization
,Perspective Correction
,Cosine Similarity
,Polygon Zone Visualization
,VLM as Classifier
,Continue If
,Dimension Collapse
,Twilio SMS Notification
,Image Slicer
,Webhook Sink
,OpenAI
,Size Measurement
,Detections Consensus
,Trace Visualization
,Instance Segmentation Model
,Buffer
,Roboflow Dataset Upload
,VLM as Classifier
,Anthropic Claude
,Image Blur
,Circle Visualization
,Dot Visualization
,Google Gemini
,QR Code Detection
,Segment Anything 2 Model
,JSON Parser
,Detections Stabilizer
,Delta Filter
,CSV Formatter
,Llama 3.2 Vision
,Detections Transformation
- outputs:
Multi-Label Classification Model
,Pixelate Visualization
,Path Deviation
,LMM For Classification
,Keypoint Detection Model
,Gaze Detection
,Line Counter
,Instance Segmentation Model
,CLIP Embedding Model
,Single-Label Classification Model
,Blur Visualization
,Mask Visualization
,Object Detection Model
,Line Counter
,YOLO-World Model
,Model Monitoring Inference Aggregator
,Cache Get
,Polygon Visualization
,Halo Visualization
,Google Vision OCR
,Email Notification
,Model Comparison Visualization
,CogVLM
,Image Threshold
,Keypoint Visualization
,Template Matching
,Image Preprocessing
,Slack Notification
,Roboflow Dataset Upload
,Background Color Visualization
,Bounding Box Visualization
,Label Visualization
,Classification Label Visualization
,Ellipse Visualization
,Line Counter Visualization
,LMM
,Reference Path Visualization
,Stability AI Inpainting
,Dynamic Crop
,Triangle Visualization
,Object Detection Model
,Distance Measurement
,Time in Zone
,Detections Stitch
,Florence-2 Model
,SIFT Comparison
,Keypoint Detection Model
,Corner Visualization
,Perspective Correction
,Local File Sink
,Polygon Zone Visualization
,Twilio SMS Notification
,Trace Visualization
,Webhook Sink
,Detections Consensus
,Size Measurement
,Roboflow Custom Metadata
,OpenAI
,Cache Set
,Instance Segmentation Model
,Crop Visualization
,Roboflow Dataset Upload
,Clip Comparison
,Anthropic Claude
,Image Blur
,Dot Visualization
,Circle Visualization
,Google Gemini
,Segment Anything 2 Model
,Single-Label Classification Model
,Time in Zone
,Florence-2 Model
,Path Deviation
,OpenAI
,Color Visualization
,Multi-Label Classification Model
,Pixel Color Count
,Llama 3.2 Vision
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 https://twilio.com/console to set up SMS service and fetch the value..twilio_auth_token
(Union[secret
,string
]): Twilio Auth Token. Visit Twilio Console to set up SMS service and fetch the value..sender_number
(string
): Sender phone number.receiver_number
(string
): Receiver phone number.message_parameters
(*
): References data to be used to construct each and every column.fire_and_forget
(boolean
): Boolean flag dictating if sink is supposed to be executed in the background, not waiting on status of registration before end of workflow run. UseTrue
if best-effort registration is needed, useFalse
while debugging and if error handling is needed.disable_sink
(boolean
): boolean flag that can be also reference to input - to arbitrarily disable data collection for specific request.cooldown_seconds
(integer
): Number of seconds to wait until 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",
"message": "During last 5 minutes detected {{ $parameters.num_instances }} instances",
"sender_number": "$inputs.sender_number",
"receiver_number": "$inputs.receiver_number",
"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"
}