Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds Twilio features for SMS, voice calls, WhatsApp Business messaging, and 2FA phone verification.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
We have a user signup flow using SMS verification codes. Occasionally, SMS delivery fails or takes several minutes due to local mobile network congestion. How should we design our verification logic to maximize delivery success when SMS fails?
Implements a fallback mechanism to voice calls when SMS verification code delivery fails.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
This file contains the detailed procedure and reference material extracted from
SKILL.mdfor focused loading. The root skill defines activation, examples, safety constraints, and limitations.
Examples contain unimplemented persistence, opt-out and business handlers. Never deploy as complete safety controls. Use an encoding-aware SMS segment calculation, official webhook validation and the Messages API contract. Validate signatures before every webhook side effect, deduplicate/redeliver safely and tolerate out-of-order status callbacks. Never automatically retry an uncertain accepted send or fall back to another channel without the recipient/purpose authorization.
Basic pattern for sending SMS messages with Twilio. Handles the fundamentals: phone number formatting, message delivery, and delivery status callbacks.
Key considerations:
When to use: Sending notifications to users,Transactional messages (order confirmations, shipping),Alerts and reminders
from twilio.rest import Client
from twilio.base.exceptions import TwilioRestException
import os
import re
class TwilioSMS:
"""
SMS sending with proper error handling and validation.
"""
def __init__(self):
self.client = Client(
os.environ["TWILIO_ACCOUNT_SID"],
os.environ["TWILIO_AUTH_TOKEN"]
)
Next to this one in the catalogue, plus more from the same author.