Skills
Send a broadcast
Load when a customer broadcast needs to be drafted.
Follow rules for account selection, write keys and send confirmation. Use broadcasts for channels and customers for audience filters.
- Call
draft_broadcastwithdraft: true,translation_texts(title and body),communication_channeland the audience keys. If asked to copy a prior message, useduplicate_broadcastinstead. Keep the draftid. - Change that draft with
edit_broadcast_draft(includinglocalefor other languages),set_broadcast_audiencefor recipient changes orset_broadcast_lookfor an image/button, as needed. - Call
preview_broadcastwithid. While rendering, call again after 20 seconds. Show the final email, iPhone push and app previews with screenshots. If the person requests and approves a test, callsend_test_broadcastfor the signed-in staff member only. - Call
get_broadcastwithid. Show the draft, channel, audience in plain words and currentaudience_count. Ask for an explicit yes to send to that audience. If the person changes the message or recipients, update the same draft and repeat the preview and count. - Only on yes, call
send_broadcastonce with that draftid. Passeveryone: truewhen sending to everyone. If the server returnsinput_required, present its confirmation and resume the same call as specified inrules. Report the returned state. Useget_broadcast_deliveryfor requested delivery counts.