The festivities are upon us! In this holiday season, we have created a Relay bot for you to play with!
The SignalWire Santa Bot will ask you if you have been nice and what you would like as a present... but beware! No profanities are tolerated!
It demonstrated how easy it is to use Relay to share logic between multiple channels: voice and text.
First of all, run
bundle install to set up the necessary gems.
Then, head to your SignalWire dashboard and grab an API key.
You will also need a phone number, which we will set up in just a minute.
Relay as the handler (both for voice and messaging) in your phone number settings and set
santa as the context.
.env and edit the file, adding your API keys, the phone number you set up, and making sure it uses the same context as you indicated in the previous step.
ruby santa_consumer.rb and call or text your phone number. Can you hear the bells jingle?
To all of our friends, we wish you a Merry Christmas and a fantastic New Year, where we will shape the future of communications together!
If you would like to test this example out, you can create a SignalWire account and space here.
Please feel free to reach out to us on our Community Slack or create a Support ticket if you need guidance!
Updated 2 months ago
Check out the full code in our SignalWire Github Repo!