Renewals and trials from mail
Use “Renewals and trials from mail” in Recued. When an email says a subscription renews, or a free trial ends, on a date, you get a commitment to decide by then. It closes by itself once the date passes, and is cancelled when a later email says you cancelled. It never cancels or changes a subscription.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (35 steps)
sub
defaults
Apply defaults
is_deadline_notice
compare
Check if sub notice kind is one of renewal,trial_ending
day_after
date_add
Add 1 days to
date_passed
is_past
Check if is in the past
is_due
all
Check if all conditions are true
is_cancelled
all
Check if all conditions are true
acts
any
Check if any of the conditions are true
renews_ms
date_parse
Parse sub renews at as a date
has_plan
compare
Check if sub plan has data
has_amount
all
Check if all conditions are true
plan_part
ternary
Apply ternary
amount_part
ternary
Apply ternary
deadline_words
switch
Map sub notice kind to one of: renewal, trial_ending
statement
truncate
Truncate Decide whether to keep {{step.sub.service}}{{step.plan_part}}{{step.amount_part}} {{step.deadline_words}} to a max length
key
replace
Replace text in mail-fact-renewal:{{step.sub.thing_id}}:{{step.sub.renews_at}}
keys
default
Apply default
match_key
default
Apply default
listed
core.work-entity.list
List work entity
made_here
filter
Filter by condition
mine
filter
Filter by condition
open_mine
filter
Filter by condition
open_count
count
Count items in open mine
existing
default
Apply default
create_new
all
Check if all conditions are true
statement_changed
compare
Check if existing statement does not equal statement
date_changed
compare
Check if existing promised for at does not equal renews ms
refresh
all
Check if all conditions are true
refresh_needed
any
Check if any of the conditions are true
update_open
all
Check if all conditions are true
close_open
all
Check if all conditions are true
created
core.work-entity.commitment.create
Create work entity commitment
skip: step.create_new equal false
updated
core.work-entity.commitment.update
Update work entity commitment
skip: step.update_open equal false
cancelled
core.work-entity.commitment.cancel
Cancel work entity commitment
skip: step.close_open equal false
outcome
switch
Map create new}}/{{step update open}}/{{step close open to one of: false/false/true, false/true/false, true/false/false
card
to_summary
Format results as a summary card
▼
Output
summary
card
Uses (4 operations)
Tasks & notes
List work entity
core.work-entity.list
Tasks & notes
Create work entity commitment
core.work-entity.commitment.create
Tasks & notes
Update work entity commitment
core.work-entity.commitment.update
Tasks & notes
Cancel work entity commitment
core.work-entity.commitment.cancel
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.
What it's allowed to do
Read
Tasks & notes
core.work-entity.list
read-only
Write
Tasks & notes
core.work-entity.commitment.create
external change
Write
Tasks & notes
core.work-entity.commitment.update
external change
Write
Tasks & notes
core.work-entity.commitment.cancel
external change