Opt-in and opt-out
How consent, STOP, and quiet hours work.
Every outgoing message passes the same rules, no matter who sends it.
Keywords
MessageOS handles these words itself, before the assistant sees the message. A keyword counts only when it is the whole message. Letter case does not matter, and a period or exclamation point at the end is ignored.
| The customer texts | What happens |
|---|---|
| STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT, REVOKE, or OPT OUT | They are opted out and get one confirmation |
| START, UNSTOP, JOIN, or SUBSCRIBE | They are opted back in and get one confirmation |
| YES, from a customer who opted out | They are opted back in and get one confirmation |
| HELP or INFO | They get the business's help message |
STOP ALL and OPTOUT also opt out. YES from a customer who has not opted out is an ordinary reply, and the assistant answers it. A customer who unsubscribes in their messaging app is opted out the same way, and subscribing there again opts them back in.
A business can set its own wording for these three replies, such as the text its carrier reviews. A business that has not set it gets a short neutral reply with its name.
After an opt-out
No proactive messages go to a customer who opted out. By default, only START, UNSTOP, JOIN, SUBSCRIBE, or YES opts them back in. Any other message from them is logged and not answered.
A business can instead have any message other than STOP opt the customer back in, so the assistant answers. That setting is off until MessageOS turns it on for the business.
A business with several assistants can make one opt-out apply across all of them.
Consent
The business can only start a conversation with someone who has a recorded consent, such as a web form, or who has texted the business before. A message sent through the API to a phone that is not yet a contact creates the contact only when the request carries the consent the business holds for that person. Without it nothing is created and nothing is sent.
Quiet hours
Proactive messages are not sent during the business's quiet hours, in the customer's time zone, or the business's time zone when the customer's is not known. The default quiet hours are 9:00 PM to 8:00 AM. A proactive message with no known time zone is not sent.
- A message sent from the dashboard or the API during quiet hours is rejected. Send it again after quiet hours. An API caller can ask for a deferred answer, which says when quiet hours end, but nothing is sent until the caller sends again.
- Where your own system keeps its quiet hours, a message it sends through the API is not held for the time of day, and the timing is yours to get right.
GET /v1/whoamishows this asquietHoursEnforcedfalse. Messages sent from the dashboard are still held, unless your agent is set up as API only. See When a message is not sent. - For an agent set up as API only, MessageOS holds no message for the time of day, from the API or from the dashboard, and a customer needs no time zone. Your own system and your team decide when to send, so the timing is yours to get right. The Agent page of the dashboard shows this as Quiet hours: None. To have MessageOS hold one message, set
onQuieton that request. - Reminders, follow-ups, and other messages MessageOS schedules wait until quiet hours end, then go out.
- A reply to someone who just texted in is not delayed. That includes a reply your own system sends through the API that names the message it answers, when that message arrived in the last hour. Up to three replies can answer each message, and a promotional message is never treated as a reply.
Message types
Each message is service, transactional, or promotional. A business is set up only for the types it is allowed to send. MessageOS turns a type on for a business, and a business cannot turn one on for itself, so ask MessageOS if you need one you do not have, such as promotional. A type that is on follows the same opt-out, consent, and quiet hours rules as every other message. That includes the rule above: where your own system keeps its quiet hours, a promotional message it sends through the API is not held for the time of day either, so send it at a time you are allowed to. Compliance messages, such as the STOP confirmation, are sent only by MessageOS.
