'How to Delay SMS Messages in Twilio Studio?

I'm trying to use Twilio Studio to send multiple SMS messages to a person triggered from the Rest API.

However, I need there to be a delay of 24 hours between the messages.

How do I go about adding this? I've tried following the "Add A Delay" Twilio article for creating a function but the code doesn't seem to be working properly and all my messages get sent at the same time.

Thank you!



Solution 1:[1]

Twilio Studio doesn’t have native scheduling functionality but the /Messages resource does. You can schedule messages out to 7 days in advanced.

Reference this blog post and documentation for more details.

Message Scheduling is Now in Public Beta https://www.twilio.com/blog/message-scheduling-public-beta

Can I schedule Twilio messages to be sent at a future time or date? https://support.twilio.com/hc/en-us/articles/4406956913307-Can-I-schedule-Twilio-messages-to-be-sent-at-a-future-time-or-date-

Schedule a Message resource https://www.twilio.com/docs/sms/api/message-resource#schedule-a-message-resource

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alan