Repository navigation
feat(automations): five starter automations, switched off, and a journey test from an email to a yes - #606
Merged
Conversation
…ions/starters Five ready-made drafts (school emails, router alerts, a morning digest, no reply in two days, webhook to note) that POST /automations takes as they are. Nothing is stored until someone saves one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AjJqXgjj1cNdKGRQbX5frb
An email from a mailbox watch (sources._ingest) is email.received; an automation saved over the API matches it when the stream is followed; its ask_model step (stand-in model) feeds a notify to me, done at once, and a notify to a Matterbridge gateway, which waits as an approval; approved over the API it is posted; and the timeline lists the email, the run and the decision linked by cause. Only the model, channels.tell and Matterbridge are stand-ins. Runs in the embedded and the server suites. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AjJqXgjj1cNdKGRQbX5frb
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AjJqXgjj1cNdKGRQbX5frb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: every automation started from a blank builder or a sentence. No test followed one email all the way through an automation, an approval and the timeline.
After:
GET /api/v1/automations/starterslists five ready-made drafts. Each is whatPOST /automationstakes, switched off:familyroom asks you first.Nothing is stored. A starter is saved only when someone saves it, and runs only once it is turned on.
A new journey test follows an email from arrival to the timeline:
Motivation and Context
Workflow studio M12, Build steps 3 (starters) and 4 (journey test). Starters stay off by default, as the brief says: listing them changes nothing that runs. The builder shows them in the next PR.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).test_automation_starters.py, 4 tests: every starter saves as it is and stays off; signed-in only; each call returns copies; the school starter tells you at once and asks before posting.test_automation_journey.py: the email-to-approval journey. It passes in the embedded and the server suites.docs/automations.md(Starters),docs/api.md, README,docs/requirements.md.Local CI on these commits (
ci/local-ci.sh): FastAPI embedded pass, FastAPI server pass and Next.js pass, all stacked on #600 before it merged. pre-commit pass on this head.make openapiregenerated the client, which is unchanged on today's main.Done questions (AGENTS.md)
save_automationas they would any draft.Generated by Claude Code