Prepare for Stealth 3.0 MAV-155#6
Merged
emorissettegregoire merged 13 commits intomasterfrom Feb 28, 2025
Merged
Conversation
Contributor
Author
|
@matthewblack I updated the README here and also in the PR description to visualize the formatting. Could you please provide your formal approval for this PR before I merge it to Version is |
matthewblack
approved these changes
Feb 27, 2025
Member
matthewblack
left a comment
There was a problem hiding this comment.
Thanks for your great work here!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stealth Bandwidth SMS
Compatibility
While Stealth V2 was a standalone Ruby application, Stealth V3 is a mounted engine within an existing Ruby on Rails application.
Installation
In your Rails app, add the
stealthandstealth-bandwidthgems:Configurations
Create 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/<service>.For example:
Reply Types
Flow-based Replies
Inline replies can be created by calling the
saymethod withinStealth.flowYou can use the
send_repliesmethod withinStealth.flowto define the reply inStealth.reply☝️ We recommend using the
send_repliesmethod, when replies are more complex and that you want to keep yourStealth.flowdry.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.
Suggestions
Though 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.
Delays
Delays introduce pauses between text replies, improving user experience.
The duration can be a floating point value (in seconds) or dynamic, where the system automatically determines the delay.
To enable automatic delays globally:
Sending Media
Bandwidth supports various MMS file types. For more details, refer to: Bandwidth Supported MMS File Types
You must use a valid URL where the file is hosted.
Images
Videos
Audio
Files