{"data":{"slug":"github-claude-office-skills-skills-twilio-sms-e4131e203203","title":"Twilio SMS Automation","summary":"Automate SMS and voice workflows with Twilio for notifications, messaging, and verification, including compliance with opt-in, opt-out, and quiet hours requirements.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-twilio-sms-e4131e203203","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-twilio-sms-e4131e203203","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-twilio-sms-e4131e203203.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-twilio-sms-e4131e203203\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before sending messages, ensure phone numbers are validated using the Twilio Lookup API. Include the STOP keyword in every message for opt-out compliance. Implement retry logic for transient errors and monitor delivery rates by carrier.","instructions":"---\nname: Twilio SMS Automation\ndescription: Automate SMS communications, two-way messaging, notifications, and voice workflows with Twilio\nversion: 1.0.0\nauthor: Claude Office Skills\ncategory: communication\ntags:\n  - twilio\n  - sms\n  - messaging\n  - notifications\n  - voice\ndepartment: operations\nmodels:\n  - claude-3-opus\n  - claude-3-sonnet\n  - gpt-4\nmcp:\n  server: communication-mcp\n  tools:\n    - twilio_send_sms\n    - twilio_voice_call\n    - twilio_lookup\n    - twilio_verify\ncapabilities:\n  - SMS sending and receiving\n  - Voice call automation\n  - Phone number verification\n  - Two-factor authentication\ninput:\n  - Phone numbers\n  - Message content\n  - Call scripts\n  - Verification codes\noutput:\n  - Message delivery status\n  - Call recordings\n  - Verification results\n  - Analytics reports\nlanguages:\n  - en\n  - multi\nrelated_skills:\n  - whatsapp-automation\n  - slack-workflows\n  - email-marketing\n---\n\n# Twilio SMS Automation\n\nComprehensive skill for automating SMS, voice, and verification workflows with Twilio.\n\n## Core Workflows\n\n### 1. SMS Messaging Flow\n\n```\nSMS AUTOMATION FLOW:\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502    Trigger      \u2502\n\u2502  (Event\/API)    \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502  Message Build  \u2502\n\u2502  - Template     \u2502\n\u2502  - Personalize  \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502  Number Lookup  \u2502\n\u2502  - Validate     \u2502\n\u2502  - Format       \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502     Send        \u2502\n\u2502  - Twilio API   \u2502\n\u2502  - Queue        \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502    Delivery     \u2502\n\u2502  - Status       \u2502\n\u2502  - Callback     \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n### 2. Message Configuration\n\n```yaml\nsms_config:\n  sender:\n    phone_number: \"+1234567890\"\n    messaging_service_sid: \"MG...\"  # For higher throughput\n    \n  defaults:\n    status_callback: \"https:\/\/api.example.com\/sms\/status\"\n    validity_period: 14400  # 4 hours\n    \n  rate_limiting:\n    messages_per_second: 10\n    daily_limit_per_recipient: 5\n    \n  compliance:\n    opt_out_keywords: [\"STOP\", \"UNSUBSCRIBE\", \"CANCEL\"]\n    opt_in_required: true\n    quiet_hours:\n      start: \"21:00\"\n      end: \"09:00\"\n      timezone: \"America\/New_York\"\n```\n\n## Message Templates\n\n### Notification Templates\n\n```yaml\ntemplates:\n  order_confirmation:\n    content: |\n      {{company}}: Your order #{{order_id}} has been confirmed!\n      Total: ${{total}}\n      Track: {{tracking_url}}\n      Reply HELP for assistance.\n    max_length: 160\n    \n  shipping_update:\n    content: |\n      {{company}}: Your order #{{order_id}} has shipped!\n      Carrier: {{carrier}}\n      Tracking: {{tracking_number}}\n      Delivery: {{estimated_date}}\n    \n  appointment_reminder:\n    content: |\n      Reminder: Your appointment with {{provider}} is tomorrow at {{time}}.\n      Location: {{address}}\n      Reply C to confirm or R to reschedule.\n    \n  two_factor:\n    content: |\n      Your {{company}} verification code is: {{code}}\n      This code expires in 10 minutes.\n      Don't share this code with anyone.\n```\n\n### Conversational Templates\n\n```yaml\ntwo_way_messaging:\n  welcome:\n    trigger: opt_in\n    response: |\n      Welcome to {{company}} updates! \n      You'll receive order and shipping notifications.\n      Reply HELP for commands or STOP to unsubscribe.\n      \n  help:\n    trigger: [\"HELP\", \"?\", \"INFO\"]\n    response: |\n      {{company}} SMS Commands:\n      STATUS - Check order status\n      TRACK - Get tracking info\n      SUPPORT - Contact support\n      STOP - Unsubscribe\n      \n  status_inquiry:\n    trigger: [\"STATUS\", \"ORDER\"]\n    action: lookup_order\n    response: |\n      Order #{{order_id}}: {{status}}\n      {{#if tracking}}\n      Tracking: {{tracking_url}}\n      {{\/if}}\n      \n  unsubscribe:\n    trigger: [\"STOP\", \"UNSUBSCRIBE\"]\n    action: opt_out\n    response: |\n      You've been unsubscribed from {{company}} messages.\n      Reply START to resubscribe anytime.\n```\n\n## Verification (2FA)\n\n### Verify API Integration\n\n```yaml\nverification_config:\n  channel: sms  # or: call, email, whatsapp\n  \n  code_settings:\n    length: 6\n    expiry_minutes: 10\n    \n  rate_limits:\n    max_attempts: 5\n    lockout_minutes: 30\n    \n  templates:\n    sms: \"Your {{company}} code is {{code}}\"\n    call: \"Your verification code is {{code_spoken}}\"\n```\n\n### Verification Flow\n\n```javascript\n\/\/ Start Verification\nconst verification = await twilio.verify.v2\n  .services('VA...')\n  .verifications\n  .create({\n    to: '+1234567890',\n    channel: 'sms',\n    customCode: '123456', \/\/ Optional\n    locale: 'en'\n  });\n\n\/\/ Check Verification\nconst check = await twilio.verify.v2\n  .services('VA...')\n  .verificationChecks\n  .create({\n    to: '+1234567890',\n    code: '123456'\n  });\n\n\/\/ Result\nif (check.status === 'approved') {\n  \/\/ Verification successful\n} else {\n  \/\/ Invalid code\n}\n```\n\n## Voice Automation\n\n### Outbound Calls\n\n```yaml\nvoice_config:\n  outbound_call:\n    from: \"+1234567890\"\n    twiml_url: \"https:\/\/api.example.com\/voice\/script\"\n    status_callback: \"https:\/\/api.example.com\/voice\/status\"\n    timeout: 30\n    record: true\n    \n  twiml_script: |\n    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <Response>\n      <Say voice=\"alice\">\n        Hello {{name}}, this is a reminder about your\n        appointment tomorrow at {{time}}.\n      <\/Say>\n      <Gather numDigits=\"1\" action=\"\/handle-response\">\n        <Say>Press 1 to confirm, 2 to reschedule.<\/Say>\n      <\/Gather>\n    <\/Response>\n```\n\n### IVR Menu\n\n```yaml\nivr_menu:\n  greeting: |\n    Thank you for calling {{company}}.\n    For sales, press 1.\n    For support, press 2.\n    For billing, press 3.\n    To speak with an operator, press 0.\n    \n  routing:\n    - digit: \"1\"\n      action: transfer\n      destination: \"+1987654321\"\n      queue: \"sales\"\n      \n    - digit: \"2\"\n      action: transfer\n      destination: \"+1876543210\"\n      queue: \"support\"\n      \n    - digit: \"3\"\n      action: transfer\n      destination: \"+1765432109\"\n      queue: \"billing\"\n      \n    - digit: \"0\"\n      action: operator\n      fallback: voicemail\n```\n\n## Bulk Messaging\n\n### Campaign Configuration\n\n```yaml\nbulk_campaign:\n  name: \"Holiday Promotion\"\n  \n  audience:\n    source: segment\n    filter:\n      opted_in: true\n      last_purchase: \"> 30_days\"\n      \n  message:\n    template: holiday_promo\n    variables:\n      discount_code: \"HOLIDAY20\"\n      \n  schedule:\n    start_time: \"2024-11-25T10:00:00\"\n    timezone: \"America\/New_York\"\n    batch_size: 100\n    delay_between_batches: 60  # seconds\n    \n  tracking:\n    delivery_report: true\n    click_tracking: true\n    conversion_tracking: true\n```\n\n### Broadcast Status\n\n```\nCAMPAIGN STATUS: Holiday Promotion\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nProgress: \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591 78%\n\nDELIVERY STATS:\nSent:        7,800\nDelivered:   7,450 (95.5%)\nFailed:      125 (1.6%)\nPending:     225 (2.9%)\n\nENGAGEMENT:\nClicks:      1,245 (16.7%)\nReplies:     89 (1.2%)\nOpt-outs:    23 (0.3%)\n\nERRORS:\nInvalid Number:  45\nUnsubscribed:    52\nCarrier Block:   18\nRate Limited:    10\n\nESTIMATED COMPLETION: 25 minutes\n```\n\n## Phone Number Management\n\n### Number Lookup\n\n```yaml\nnumber_lookup:\n  capabilities:\n    - carrier_info\n    - caller_name\n    - line_type\n    \n  validation:\n    - check_format\n    - verify_active\n    - detect_landline_vs_mobile\n    \n  example_response:\n    phone_number: \"+14155551234\"\n    country_code: \"US\"\n    carrier:\n      name: \"Verizon\"\n      type: \"mobile\"\n    caller_name: \"John Doe\"\n    valid: true\n```\n\n### Number Provisioning\n\n```yaml\nnumber_management:\n  search_criteria:\n    country: \"US\"\n    area_code: \"415\"\n    capabilities: [\"SMS\", \"MMS\", \"Voice\"]\n    \n  purchase:\n    phone_number: \"+14155559999\"\n    friendly_name: \"Marketing Line\"\n    sms_url: \"https:\/\/api.example.com\/sms\/incoming\"\n    voice_url: \"https:\/\/api.example.com\/voice\/incoming\"\n```\n\n## Analytics Dashboard\n\n```\nSMS ANALYTICS - LAST 30 DAYS\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nVOLUME:\nSent:        45,230\nDelivered:   43,456 (96.1%)\nFailed:      1,774 (3.9%)\n\nBY TYPE:\nNotifications  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591 62%\nMarketing      \u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 23%\n2FA            \u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 15%\n\nDELIVERY BY CARRIER:\nVerizon     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 97%\nAT&T        \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591 95%\nT-Mobile    \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591 94%\nSprint      \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591 92%\n\nCOST:\nTotal Spend:     $1,245.67\nPer Message:     $0.0275\nPer Delivered:   $0.0287\n\nENGAGEMENT:\nLink Clicks:     3,456 (7.9%)\nReplies:         892 (2.1%)\nOpt-outs:        56 (0.1%)\n```\n\n## API Examples\n\n### Send SMS\n\n```javascript\n\/\/ Simple SMS\nconst message = await twilio.messages.create({\n  body: 'Hello from Twilio!',\n  from: '+1234567890',\n  to: '+0987654321',\n  statusCallback: 'https:\/\/api.example.com\/sms\/status'\n});\n\n\/\/ With Messaging Service (recommended for scale)\nconst message = await twilio.messages.create({\n  body: 'Order confirmed!',\n  messagingServiceSid: 'MG...',\n  to: '+0987654321'\n});\n\n\/\/ MMS with Media\nconst mms = await twilio.messages.create({\n  body: 'Check out this image!',\n  from: '+1234567890',\n  to: '+0987654321',\n  mediaUrl: ['https:\/\/example.com\/image.jpg']\n});\n```\n\n### Handle Incoming SMS\n\n```javascript\n\/\/ Express webhook handler\napp.post('\/sms\/incoming', (req, res) => {\n  const { From, Body } = req.body;\n  \n  const twiml = new twilio.twiml.MessagingResponse();\n  \n  if (Body.toUpperCase() === 'STATUS') {\n    twiml.message('Your order is on the way!');\n  } else {\n    twiml.message('Thanks for your message. We\\'ll respond shortly.');\n  }\n  \n  res.type('text\/xml');\n  res.send(twiml.toString());\n});\n```\n\n## Best Practices\n\n1. **Get Consent**: Always have opt-in before messaging\n2. **Include Opt-Out**: STOP keyword in every message\n3. **Respect Quiet Hours**: Don't message late night\n4. **Validate Numbers**: Use Lookup API before sending\n5. **Handle Failures**: Retry logic for transient errors\n6. **Monitor Delivery**: Track delivery rates by carrier\n7. **Stay Compliant**: Follow TCPA\/CTIA guidelines\n8. **Use Templates**: Consistent, tested messages\n","use_cases":["Send automated order confirmation messages to customers.","Implement two-factor authentication via SMS for user verification.","Schedule and execute outbound voice calls for appointment reminders."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/twilio-sms\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":null,"version":"1.0.0","listing_approved_at":"2026-11-22","created_at":"2026-11-21T15:28:40.000000Z","updated_at":"2026-11-22T11:18:24.000000Z","seo_title":"Twilio SMS Automation for Notifications and Messaging","seo_description":"Automate SMS and voice workflows with Twilio for notifications, messaging, and verification. Efficiently manage communication with Twilio APIs, ensuring compliance with\u76d1\u7ba1","seo_keywords":["Twilio SMS automation","SMS notifications","Voice call automation","Two-factor authentication","Message templates","Verification code"]}}