Twilio SMS/MMS Notification¶
Class: TwilioSMSNotificationBlockV2
Source: inference.core.workflows.core_steps.sinks.twilio.sms.v2.TwilioSMSNotificationBlockV2
The Twilio SMS/MMS Notification block allows users to send text and multimedia messages as part of a workflow.
SMS Provider Options¶
This block supports two SMS delivery methods via a dropdown selector:
- Roboflow Managed API Key (Default) - No Twilio configuration needed. Messages are sent through Roboflow's proxy service:
- Simplified setup - just provide message, recipient, and optional media
- Secure - your workflow API key is used for authentication
- No Twilio account required
-
Pricing: US/Canada: 30 messages per credit. International: 10 messages per credit. (SMS and MMS priced the same)
-
Custom Twilio - Use your own Twilio account:
- Full control over message delivery
- Requires Twilio credentials (Account SID, Auth Token, Phone Number)
- You pay Twilio directly for messaging
Message Content¶
-
Receiver Number: Phone number to receive the message (must be in E.164 format, e.g., +15551234567)
-
Message: The body content of the SMS/MMS. Message can be parametrised with data generated during workflow run. See Dynamic Parameters section.
-
Media URL (Optional): For MMS messages, provide image URL(s) or image outputs from visualization blocks
Dynamic Parameters¶
Message content can be parametrised with Workflow execution outcomes. Example:
message = "Alert! Detected {{ '{{' }} $parameters.num_detections {{ '}}' }} objects"
Message parameters are set via message_parameters:
message_parameters = {
"num_detections": "$steps.model.predictions"
}
Transform data using message_parameters_operations:
message_parameters_operations = {
"predictions": [
{"type": "DetectionsPropertyExtract", "property_name": "class_name"}
]
}
MMS Support¶
Send images with your message by providing media_url:
- Image URLs: Provide publicly accessible image URLs as a string or list
- Workflow Images: Reference image outputs from visualization blocks
- Base64 Images: Images are automatically converted for transmission
Example:
media_url = "$steps.bounding_box_visualization.image"
Or multiple images:
media_url = ["https://example.com/image1.jpg", "https://example.com/image2.jpg"]
Note: MMS is primarily supported in US/Canada. International MMS availability varies by carrier.
Using Custom Twilio¶
To use your own Twilio account, select "Custom Twilio" and configure:
twilio_account_sid- Your Twilio Account SID from the Twilio Consoletwilio_auth_token- Your Twilio Auth Tokensender_number- Your Twilio phone number (must be in E.164 format)
Cooldown¶
The block accepts cooldown_seconds (defaults to 5 seconds) to prevent notification bursts. Set 0 for no cooldown.
During cooldown, the throttling_status output is set to True and no message is sent.
Cooldown limitations
Cooldown is limited to video processing. Using this block in HTTP service workflows (Roboflow Hosted API, Dedicated Deployment) has no cooldown effect for HTTP requests.
Async Execution¶
Set fire_and_forget=True to send messages in the background, allowing the Workflow to proceed.
With async mode, error_status is always False. Set fire_and_forget=False for debugging.
Disabling Notifications¶
Set disable_sink flag to manually disable the notifier block via Workflow input.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/twilio_sms_notification@v2to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
sms_provider |
str |
Choose SMS delivery method: use Roboflow's managed service or configure your own Twilio account.. | ❌ |
receiver_number |
str |
Phone number to receive the message (E.164 format, e.g., +15551234567). | ✅ |
message |
str |
Content of the message to be sent.. | ❌ |
message_parameters |
Dict[str, Union[bool, float, int, str]] |
Data to be used inside the message.. | ✅ |
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.. | ❌ |
media_url |
Optional[List[str], str] |
Optional media URL(s) for MMS. Provide publicly accessible image URLs or image outputs from workflow blocks.. | ✅ |
twilio_account_sid |
str |
Twilio Account SID from the Twilio Console.. | ✅ |
twilio_auth_token |
str |
Twilio Auth Token from the Twilio Console.. | ✅ |
sender_number |
str |
Sender phone number (E.164 format, e.g., +15551234567). | ✅ |
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.. | ✅ |
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/MMS Notification in version v2.
- inputs:
Detections Classes Replacement,Dominant Color,Instance Segmentation Model,Contrast Equalization,Google Vision OCR,ByteTrack Tracker,PTZ Tracking (ONVIF),Grid Visualization,Identify Changes,SIFT,Trace Visualization,Twilio SMS/MMS Notification,QR Code Generator,SAM 3,GLM-OCR,Delta Filter,SORT Tracker,Perception Encoder Embedding Model,OpenAI,OpenAI,Label Visualization,Pixelate Visualization,Twilio SMS Notification,Identify Outliers,Email Notification,Corner Visualization,Background Subtraction,Mask Area Measurement,Time in Zone,Morphological Transformation,Qwen2.5-VL,SAM 3,Path Deviation,Line Counter,OpenAI,Clip Comparison,Background Color Visualization,Camera Calibration,Stability AI Outpainting,Ellipse Visualization,Detections Stitch,Dynamic Zone,VLM As Classifier,Heatmap Visualization,Velocity,Property Definition,Image Convert Grayscale,Detections Consensus,Detections Filter,Size Measurement,Cache Get,Barcode Detection,Color Visualization,Camera Focus,Rate Limiter,Image Slicer,SmolVLM2,SAM 3,Detections Combine,Polygon Visualization,Motion Detection,Blur Visualization,Qwen3-VL,LMM,Slack Notification,Bounding Rectangle,Stability AI Inpainting,Detection Event Log,Florence-2 Model,Perspective Correction,Instance Segmentation Model,Anthropic Claude,Gaze Detection,Mask Visualization,Moondream2,QR Code Detection,Image Contours,Clip Comparison,Byte Tracker,YOLO-World Model,JSON Parser,Keypoint Detection Model,Object Detection Model,VLM As Detector,Pixel Color Count,Relative Static Crop,Dynamic Crop,Line Counter,Path Deviation,Byte Tracker,Email Notification,S3 Sink,Stability AI Image Generation,Model Comparison Visualization,Absolute Static Crop,Roboflow Dataset Upload,Keypoint Visualization,CLIP Embedding Model,Buffer,First Non Empty Or Default,Model Monitoring Inference Aggregator,Reference Path Visualization,Cache Set,OCR Model,Halo Visualization,VLM As Classifier,SIFT Comparison,Time in Zone,Detections Stabilizer,Expression,VLM As Detector,Image Preprocessing,Crop Visualization,Classification Label Visualization,Local File Sink,Qwen3.5-VL,Stitch OCR Detections,Stitch Images,Time in Zone,Stitch OCR Detections,LMM For Classification,Environment Secrets Store,EasyOCR,CSV Formatter,Image Threshold,Anthropic Claude,Single-Label Classification Model,Google Gemini,Roboflow Custom Metadata,CogVLM,Halo Visualization,OpenAI,Single-Label Classification Model,Triangle Visualization,Semantic Segmentation Model,Image Blur,Depth Estimation,Detections Transformation,Dimension Collapse,SIFT Comparison,Overlap Filter,Text Display,Data Aggregator,Anthropic Claude,Dot Visualization,Template Matching,Keypoint Detection Model,Florence-2 Model,Circle Visualization,Cosine Similarity,Multi-Label Classification Model,Google Gemini,Detections Merge,Detections List Roll-Up,Icon Visualization,Camera Focus,Detection Offset,Polygon Visualization,Webhook Sink,Polygon Zone Visualization,Google Gemini,Roboflow Dataset Upload,Llama 3.2 Vision,Distance Measurement,Seg Preview,Object Detection Model,Image Slicer,Byte Tracker,Line Counter Visualization,Continue If,Multi-Label Classification Model,OC-SORT Tracker,Bounding Box Visualization,Segment Anything 2 Model - outputs:
Detections Classes Replacement,Instance Segmentation Model,PTZ Tracking (ONVIF),Google Vision OCR,Contrast Equalization,Trace Visualization,Twilio SMS/MMS Notification,QR Code Generator,SAM 3,GLM-OCR,Perception Encoder Embedding Model,OpenAI,OpenAI,Label Visualization,Pixelate Visualization,Twilio SMS Notification,Email Notification,Corner Visualization,Time in Zone,Morphological Transformation,SAM 3,Path Deviation,Line Counter,OpenAI,Clip Comparison,Background Color Visualization,Camera Calibration,Stability AI Outpainting,Ellipse Visualization,Detections Stitch,Dynamic Zone,Heatmap Visualization,Detections Consensus,Cache Get,Size Measurement,Color Visualization,SAM 3,Polygon Visualization,Motion Detection,Blur Visualization,LMM,Slack Notification,Stability AI Inpainting,Perspective Correction,Gaze Detection,Instance Segmentation Model,Florence-2 Model,Anthropic Claude,Mask Visualization,Moondream2,YOLO-World Model,Keypoint Detection Model,Object Detection Model,Pixel Color Count,Dynamic Crop,Path Deviation,Line Counter,Email Notification,S3 Sink,Stability AI Image Generation,Model Comparison Visualization,Roboflow Dataset Upload,Keypoint Visualization,CLIP Embedding Model,Model Monitoring Inference Aggregator,Reference Path Visualization,Cache Set,Halo Visualization,SIFT Comparison,Time in Zone,Image Preprocessing,Crop Visualization,Classification Label Visualization,Local File Sink,Stitch OCR Detections,Time in Zone,Stitch OCR Detections,LMM For Classification,Single-Label Classification Model,Image Threshold,Anthropic Claude,Google Gemini,Roboflow Custom Metadata,Halo Visualization,CogVLM,Single-Label Classification Model,OpenAI,Triangle Visualization,Image Blur,Depth Estimation,Text Display,Anthropic Claude,Dot Visualization,Template Matching,Keypoint Detection Model,Florence-2 Model,Circle Visualization,Multi-Label Classification Model,Google Gemini,Icon Visualization,Polygon Visualization,Webhook Sink,Polygon Zone Visualization,Google Gemini,Roboflow Dataset Upload,Llama 3.2 Vision,Distance Measurement,Seg Preview,Object Detection Model,Line Counter Visualization,Multi-Label Classification Model,Bounding Box Visualization,Segment Anything 2 Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Twilio SMS/MMS Notification in version v2 has.
Bindings
-
input
receiver_number(string): Phone number to receive the message (E.164 format, e.g., +15551234567).message_parameters(*): Data to be used inside the message..media_url(Union[list_of_values,string,image]): Optional media URL(s) for MMS. Provide publicly accessible image URLs or image outputs from workflow blocks..twilio_account_sid(Union[secret,string]): Twilio Account SID from the Twilio Console..twilio_auth_token(Union[secret,string]): Twilio Auth Token from the Twilio Console..sender_number(string): Sender phone number (E.164 format, e.g., +15551234567).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..
-
output
Example JSON definition of step Twilio SMS/MMS Notification in version v2
{
"name": "<your_step_name_here>",
"type": "roboflow_core/twilio_sms_notification@v2",
"sms_provider": "Roboflow Managed API Key",
"receiver_number": "+15551234567",
"message": "Alert! Detected {{ '{{' }} $parameters.num_detections {{ '}}' }} objects",
"message_parameters": {
"num_detections": "$steps.model.predictions",
"reference": "$inputs.reference_class_names"
},
"message_parameters_operations": {
"predictions": [
{
"property_name": "class_name",
"type": "DetectionsPropertyExtract"
}
]
},
"media_url": "$steps.visualization.image",
"twilio_account_sid": "$inputs.twilio_account_sid",
"twilio_auth_token": "$inputs.twilio_auth_token",
"sender_number": "+15551234567",
"fire_and_forget": "$inputs.fire_and_forget",
"disable_sink": false,
"cooldown_seconds": "$inputs.cooldown_seconds"
}