Skip to Content
Blackbell for builders
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.

  1. Call draft_broadcast with draft: true, translation_texts (title and body), communication_channel and the audience keys. If asked to copy a prior message, use duplicate_broadcast instead. Keep the draft id.
  2. Change that draft with edit_broadcast_draft (including locale for other languages), set_broadcast_audience for recipient changes or set_broadcast_look for an image/button, as needed.
  3. Call preview_broadcast with id. 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, call send_test_broadcast for the signed-in staff member only.
  4. Call get_broadcast with id. Show the draft, channel, audience in plain words and current audience_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.
  5. Only on yes, call send_broadcast once with that draft id. Pass everyone: true when sending to everyone. If the server returns input_required, present its confirmation and resume the same call as specified in rules. Report the returned state. Use get_broadcast_delivery for requested delivery counts.