wf-order-review-followup
Purpose
The single chase. One run takes one review link that was sent, stayed quiet for
the configured number of days and has not been chased its allowance of times,
and asks once more.
Why this is a workflow
The choosing is not: is a question about invitesreviews.findInvitesToFollowUp
and belongs to . What this flow adds is the order's name for therp-reviews
mail and the sending — two services in one process, which is the definition of a
workflow here.
What it deliberately never does
It never chases somebody who opened the form. They read the ask and chose not to
write; asking again is how a review request becomes spam. That condition lives
in the repository query rather than in this flow, so a future caller cannot
forget it.
A refused chase leaves the invite rather than sent: the first mailfailed
did go out, and the customer may still answer it.
Shape
read-settings → find-due (sent, never opened, under the allowance)
→ read-order (for the name only)
→ send-email → count-followup
Counting the chase is what makes it single: the same query will not return
that link again. renders the mail and counts nothing. dryRunmaxFollowups: 0
switches chasing off entirely, and the flow stops before it asks.
Parameters
(required) — sender address.from(required) —ses.SesCredentials,shopName,delayDays,maxFollowups— overrides; the defaultsdryRun
come from.reviews.getSettings()
Direct module dependencies
g-ordersg-reviewsg-ses
Source
modules/workflows/wf-order-review-followup