{"id":26480250,"url":"https://github.com/hellostealth/stealth-bandwidth","last_synced_at":"2026-04-14T00:31:24.934Z","repository":{"id":59959494,"uuid":"540302202","full_name":"hellostealth/stealth-bandwidth","owner":"hellostealth","description":"Bandwidth.com SMS driver for Stealth","archived":false,"fork":false,"pushed_at":"2025-09-16T21:33:01.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T01:53:59.798Z","etag":null,"topics":["chatbot","ruby","sms-bot","stealth"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellostealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-23T06:06:03.000Z","updated_at":"2025-09-16T16:53:09.000Z","dependencies_parsed_at":"2024-08-08T18:13:28.103Z","dependency_job_id":"c8cf9f9f-3db9-43fc-857c-2321ce065167","html_url":"https://github.com/hellostealth/stealth-bandwidth","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.375,"last_synced_commit":"8d29e9df269775f67477af970aec0ce74e7cabe1"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hellostealth/stealth-bandwidth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-bandwidth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-bandwidth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-bandwidth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-bandwidth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellostealth","download_url":"https://codeload.github.com/hellostealth/stealth-bandwidth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-bandwidth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31776854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","ruby","sms-bot","stealth"],"created_at":"2025-03-20T02:13:17.345Z","updated_at":"2026-04-14T00:31:24.910Z","avatar_url":"https://github.com/hellostealth.png","language":"Ruby","readme":"# Stealth Bandwidth SMS\n\n## Compatibility\n\n⚠️ **Version 2.0 is only compatible with Stealth 3.0 [(Pull Request 420)](https://github.com/hellostealth/stealth/pull/420).** ⚠️\n\nWhile Stealth V2 was a standalone Ruby application, Stealth V3 is a mounted engine within an existing Ruby on Rails application.\n\n## Installation\n\nIn your **Rails** app, add the `stealth` and `stealth-bandwidth` gems:\n\n```ruby\ngem 'stealth', git: 'https://github.com/hellostealth/stealth.git', branch: '3.0-mountable'\ngem 'stealth-bandwidth'\n```\n\n## Configurations\n\nCreate a Bandwidth Messaging App, and set up the webhook URL to point to your ngrok that forwards requests to your Rails app. You must append `/stealth/\u003cservice\u003e`.\n\nFor example:\n```ruby\nhttps://abc1234.ngrok.io/stealth/bandwidth\n```\n\n## Reply Types\n\n### Flow-based Replies\n\n**Inline replies** can be created by calling the `say` method within `Stealth.flow`\n\n```ruby\nStealth.flow :hello do\n  state :say_hello do\n    say \"Hello world!\"\n  end\nend\n```\n\nYou can use the `send_replies` method within `Stealth.flow` to define the reply in `Stealth.reply`\n\n```ruby\nstealth/flows/hello_flow.rb\n\nStealth.flow :hello do\n  state :say_hello do\n    send_replies\n  end\nend\n\nstealth/replies/hello/say_hello.rb\n\nStealth.reply :hello do\n  state :say_hello do\n    say \"Hello world!\"\n  end\nend\n```\n\n☝️ We recommend using the `send_replies` method, when replies are more complex and that you want to keep your `Stealth.flow` dry.\n**Note:** To follow naming conventions, in the stealth/replies directory, you must create a subdirectory that matches the **flow name**, and inside it, a file named after the **state name**.\n\n### Suggestions\n\nThough suggestions are not a reply type on their own, they enhance the visual presentation of SMS replies by adding line breaks and formatting options as separate choices.\n\n```ruby\nStealth.flow :animal do\n  state :ask_if_like_dogs do\n    say(\"Do you like dogs?\", suggestions: [\"Yes\", \"No\"])\n    update_session_to state: :get_if_like_dogs\n  end\n\n  state :get_if_like_dogs do\n    handle_message(\n      yes: proc { say(\"Woof\") },\n      no: proc { say(\"Too bad...\") }\n    )\n    step_to state: :ask_favorite_animal\n  end\n\n  state :ask_favorite_animal do\n    say(\"What's your favorite animal?\", suggestions: [\"Cat\", \"Dog\", \"Sloth\"])\n    update_session_to state: :get_favorite_animal\n  end\n\n  state :get_favorite_animal do\n    translated_msg = get_match(\n      ['Cat', 'Dog', 'Sloth'], raise_on_mismatch: true\n    )\n    say(\"I like #{translated_msg} too!\")\n  end\nend\n```\n\n### Delays\n\n**Delays** introduce pauses between text replies, improving user experience.\n\n```ruby\nStealth.reply do\n  say \"Hello\"\n  say(reply_type: \"delay\", duration: \"dynamic\")\n  say \"How are you?\"\n  say(reply_type: \"delay\", duration: 2)\nend\n````\n\nThe duration can be a **floating point value** (in seconds) or **dynamic**, where the system automatically determines the delay.\n\nTo enable automatic delays globally:\n```ruby\nStealth.config.auto_insert_delays\n```\n\n\n# Sending Media\n\nBandwidth supports various MMS file types. For more details, refer to: [Bandwidth Supported MMS File Types](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported)\n\n**You must use a valid URL where the file is hosted.**\n\n### Images\n\n```ruby\nStealth.reply do\n  say(\n    \"Here's an image.\",\n    reply_type: \"image\",\n    image_url: \"https://example.org/image.png\"\n  )\nend\n```\n\n### Videos\n\n```ruby\nStealth.reply do\n  say(\n    \"Here's a video.\",\n    reply_type: \"video\",\n    video_url: \"https://example.org/cool_video.mp4\"\n  )\nend\n```\n\n### Audio\n\n```ruby\nStealth.reply do\n  say(\n    \"Here's an audio.\",\n    reply_type: \"audio\",\n    audio_url: \"https://example.org/podcast.mp3\"\n  )\nend\n```\n\n### Files\n\n```ruby\nStealth.reply do\n  say(\n    \"Here's a PDF file.\",\n    reply_type: \"file\",\n    file_url: \"https://example.org/some.pdf\"\n  )\nend\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellostealth%2Fstealth-bandwidth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellostealth%2Fstealth-bandwidth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellostealth%2Fstealth-bandwidth/lists"}