What the platform has: there is no "resend to non-openers" button. What it has is a delivery row for every person a broadcast went to, with their opens counted on it, and dynamic lists that a broadcast works out again each time it sends. A dynamic list on those rows is the people who haven't opened. Because it is read at send time, anyone who opens the first email before the follow-up goes is left out.
A broadcast sends real email to real people. This skill stops at a draft. A person schedules it or sends it.
Ask first
- Which broadcast? By name. It must be an email broadcast that has been sent (
completed). - The follow-up's subject. A new one. Sending the same subject again to people who ignored it rarely works.
- The message. The same, shorter, or new words.
- When? Only so the person knows the next step. The AI never sets the time.
Steps
1. Broadcast: the first email, and whether opens are counted
Find the email_broadcast by name. Note its sk, its currentRunId (the run that went out), senderAccounts, subject and content. It must have channel email and status completed.
Read its numbers with call_appengine GET /broadcast/<sk>/stats.
openedis above 0: opens are being counted. Carry on.sentis above 0 butopenedanddeliveredare both 0: the email gateway isn't reporting events (only Amazon SES does). "Didn't open" would then be everyone it was sent to. Stop and say so. Don't build the list.- Sent only minutes ago: opens are still arriving. Say the list will be smaller by the time the follow-up sends.
Hands on: the broadcast's sk and run id, and sent minus opened, the rough size to expect.
Check: open it (/broadcast?openId=<sk>). Summary → Overview shows the same numbers. See Broadcast report for what each counts.
2. Broadcast: the dynamic list of non-openers
The list is a pipeline on the delivery log (broadcast_delivery). Use this one, with the broadcast's sk and run id filled in. Tested on the local engine.
[
{ "$match": {
"data.broadcastId": "<broadcast sk>",
"data.runId": "<run id>",
"data.status": { "$in": ["sent", "delivered"] },
"data.openCount": { "$not": { "$gt": 0 } },
"data.clickCount": { "$not": { "$gt": 0 } },
"data.unsubscribedAt": null
} },
{ "$lookup": { "from": "customer", "localField": "data.recipientId", "foreignField": "sk", "as": "contact" } },
{ "$project": {
"_id": 0,
"email": "$data.recipient",
"name": "$data.recipientName",
"firstName": { "$ifNull": [
{ "$first": "$contact.data.firstName" },
{ "$arrayElemAt": [{ "$split": [{ "$ifNull": ["$data.recipientName", ""] }, " "] }, 0] }
] }
} }
]What each part does:
statusin sent or delivered: the email went. Rows that failed, bounced or were stopped are left out. An opened row has moved on toopened, so it is left out too.openCountandclickCountnot above 0: no open and no click counted.unsubscribedAtnull: they didn't unsubscribe from the first email. Anyone unsubscribed or bounced since is also dropped by the send itself.runId: only this run. A repeating broadcast has earlier runs with their own rows.- The
$lookupfetches the contact's first name. Without a contact (an address typed in, or a Lead Finder person), it is the first word of the name on the row.
Preview it first: POST /broadcast/audience/query-preview with { "collection": "broadcast_delivery", "pipeline": "<the pipeline as JSON text>", "channel": "email" }. reach should be close to sent minus opened.
Save it as a dynamic list (dataviz_item) with create_record, as the composer's Recipients → Dynamic → Advanced → Save and use this list does:
| Field | Value |
|---|---|
type | query |
title | e.g. "Didn't open: Spring sale" |
name | lowercase letters, digits and -, 3–80 long, unique, e.g. didnt-open-spring-sale-q7m2xd |
content.collection | broadcast_delivery |
content.mode | advanced |
content.mongoQuery | the pipeline, as JSON text |
content.rules | [] |
Hands on: the list's sk, and its reach now.
Check: POST /broadcast/audience/count with { "lists": ["query:<list sk>"] } gives the same reach. Show the person a few of the names from the preview.
3. Broadcast: the follow-up draft
Create a new email_broadcast with create_record:
| Field | Value |
|---|---|
name | e.g. "Spring sale: follow-up" |
channel | email |
subject | the new subject |
content | the message (HTML). {{firstName}} and {{name}} come from the list. |
senderAccounts | the first broadcast's senderAccounts |
recipientMethod | dynamic |
selectedLists | ["query:<list sk>"] |
status | draft |
Only firstName, name and email are on the list's rows. Fields like {{data.customer.city}} stay empty in a follow-up. Add them to the $project stage from the contact lookup if the message needs them.
POST /broadcast/<sk>/duplicate also makes a draft copy, but it keeps the original's audience and its name (only broadcastName gets "(copy)"). If you use it, change name, broadcastName, subject, recipientMethod and selectedLists straight after. A fresh draft is simpler.
Never set status to pending or scheduled, never add a schedule, and never create a schedule record for it: a schedule sends it when due, even while it says draft. Never call POST /broadcast/<id>/send.
Hands on: the follow-up's sk.
Check: read it back: status is draft, selectedLists holds query:<list sk>, no schedule. POST /broadcast/audience/total with { "lists": ["query:<list sk>"], "channel": "email" } matches step 2. Open it (/broadcast?openId=<sk>). Recipients → Dynamic shows the list and its preview.
Stop
Sending or scheduling is the person's decision. Show:
- the first broadcast, and its sent and opened numbers;
- how many haven't opened, and a few names;
- the new subject and the first lines of the message;
- the sender.
Then they do one of these, in the composer:
- Schedule it: Settings & Send → Schedule → Add schedule, once, at the day and time they want (e.g. three days after the first). The list is worked out at that moment, so it may be smaller than today's count.
- Send now: Settings & Send → Send Now.
If they say "send it" or "schedule it" in chat, repeat the count, the subject and the sender, and act only after a clear yes. Bulk email needs the business's bulk-email agreement. Without it the send fails.
When it's done
Tell the person:
- how many of the first email's people haven't opened, and that the number will shrink as opens come in;
- the follow-up's name, subject and sender;
- that nothing has been sent or scheduled, and it is waiting in Broadcast under draft.
What it can't do yet
- Opens are counted on Amazon SES only. On other gateways every recipient looks unopened, so this skill stops at step 1.
- An open is only what the gateway reports. Someone who reads with images turned off can count as not opened and get the follow-up.
- No per-person timing. The follow-up goes to everyone on the list at one time, not "three days after each person's email".
- No A/B subject test. A broadcast sends one subject to everyone. The composer has no test settings, and the send ignores any
abTestConfigon the record. To compare subjects, the person would split the audience into two groups and read each broadcast's report; nothing picks a winner. - Text messages have no opens, so there is no "didn't open" for SMS.
Don'ts
- Don't build the list when the first broadcast shows no opens at all. It would mail everyone again.
- Don't address the follow-up to the first broadcast's lists. That is everyone, openers included.
- Don't turn on
resendEachRunor put the follow-up on a repeating schedule. It is a one-off. - Don't state offers, dates or deadlines the person didn't give you. Leave a clearly marked gap (e.g. [the new end date]).