{subject}, which you fill with the paths of your own documents. Writing a context recipe shows how to preview one with dry_run and create it. This is version 1 of the catalogue.
A placeholder that is optional can be left out, and then what it fills is left out too: a fields entry, a last_n entry, or an outcome rule.
Ticket triage: is it urgent?
For support queues that need the tickets that can’t wait at the top. It reads the ticket’s subject and first message, its latest three messages when the conversation is an array, and the customer’s plan if you have one. Its status, assignee and tags are left out, so changing them re-runs nothing. Readp or the urgent threshold to sort or alert.
from_starter: ticket_triage.urgency
The definition, with its placeholders:
Ticket triage: which team should take it?
For routing tickets to a team. It reads the same parts of a ticket as the urgency starter, so both go to the engine in one request, and picks billing, technical, account or sales, or none_of_the_above when none fits. Rename the options to your teams by editing the definition the dry run returns. Usevalue as the answer: a choice’s probabilities are overconfident until you post outcomes.
from_starter: ticket_triage.routing
The definition, with its placeholders:
Moderation: does this post break a rule?
For user-generated posts, comments and reviews. It reads the post’s text and title. The criteria list common community rules: replace them with your own by editing the definition the dry run returns. Likes, views and replies re-run nothing. Hide above thehide threshold and send the band between review and hide to a person. To show the post it replies to as well, add a relation; see the referenced document guide.
from_starter: moderation.breaks_rule
The definition, with its placeholders:
Churn risk: will this account cancel within 30 days?
For B2B and subscription accounts, where the signs are in the account’s tickets and invoices rather than the account itself. It judges only accounts, and reads each one’s name and plan, its latest eight tickets and a summary of its invoices from the last 180 days: how many, and the latest status. A new ticket or invoice re-judges the account. It predicts 30 days ahead, so an account that has not cancelled 30 days after an answer counts as a no, and, if you give the status path, an account whose status becomes cancelled counts as a yes: calibration learns from both without you posting anything.from_starter: churn_risk.at_risk
The definition, with its placeholders:
Lead quality: how good is this lead?
For inbound leads from forms, sign-ups or chats. It reads the company, the person’s role and what they wrote, and the company size and source if you have them, and scores the lead from 1 (not a fit) to 5 (ready to buy). Readscore as a position on the scale rather than an exact level: the sales_ready threshold sits between levels 3 and 4.
from_starter: lead_quality.score
The definition, with its placeholders:
Review queue: does a person need to look at this?
For any flow where most items can be handled automatically and some need a person: refund requests, automated replies, applications, claims. It reads the item’s content and, if you have them, its summary and category. Items above thereview threshold go to the queue; lower the threshold to review more.
from_starter: review_queue.needs_review
The definition, with its placeholders: