A Play is an automated email flow. Use the management helper to inspect its definition and execution history. Use the inspection helper for previews and current email controls.
For Plays suggested from recorded activity, start with Review suggested opportunities. Discovery evidence and preparation do not replace exact Play approval.
Read the current state
With BARUA_MANAGEMENT_KEY and the installed skill:
node "$BARUA_SKILL/scripts/manage.mjs" capabilities
node "$BARUA_SKILL/scripts/manage.mjs" play-catalog
Success returns the allowed operations and the available Plays. Use a returned Play slug with play --play-id and play-definition --play-id. Do not invent a Play ID. Follow returned version cursors when reading version history.
Propose a change
To write or revise exact emails, open manage.mjs authoring-inbox --area plays with a connection that has play:write. When enabled, the inbox lists requests for copy, feedback and translations. Open the request, read the draft context, preflight the change, then save and submit it for review. You can also start a new Play from a free identifier. Read the writing workflow for the commands and version checks.
Choose an example from the email design library when drafting. Read Propose and operate a Play for revision and validation requirements. Use play-validate and play-simulate before submitting changes for approval.
Play changes require play:write; launch authority is separate. A broader setup review is optional. Check the requested Play's exact rules and email previews before approval, using the compact reconciliation record described in the management reference. An approved definition does not by itself prove that live admission or sending is enabled.
Style a receipt or order update
In agent authoring mode, the Play's authoring request includes a built-in design and a custom starter for each receipt or order update. Submit a design for each language you want reviewed. The custom starter shows where to place the order details, status, action link and unsubscribe notice. Use supported HTML and inline styles, keep every required slot visible, and edit the subject and wording alongside the design. Barua fills in the recipient's order facts and uses the event's action URL or your website fallback.
Once the order event is ready, Barua can prepare the first built-in version without an agent connected. Open Receipts and order updates in Plays to preview and approve it. The built-in version uses Barua's styling and wording. An existing approval can continue sending while an edit is waiting for review, as long as its sending rules and brand information still apply.
Preview and diagnose
Use inspect.mjs play-preview --play-id with a private input file for a selected revision and step. The inspection reference defines the example preview body and the additional people:read permission for person-based previews.
Use play-runs and play-trace to inspect execution, then play-admissions for admission decisions. Enabled pixel observations can trigger marketing Plays for identified people under the existing marketing basis. Server events remain authoritative for consent and transactional email. A backfill event cannot trigger a lifecycle send.
Verify the outcome
Follow the management proof procedure after the final setup change or resumed operation. Report the observed delivery state and the review package. Read emails and previews shows where to inspect the resulting message.
If a Play is paused or a review is pending, read that state before attempting another action. Recover a blocked task covers retries and owner decisions.