Skip to content

How-to

Review a draft ​

This guide shows what to do with a draft: a call an agent wanted to make while nobody was watching. It assumes an agent that runs on a schedule; in demo mode, the Inbox already holds two mail drafts.

An agent on a schedule does not wait for an answer. When a call asks, nocturn keeps the call with everything it would do as a draft, tells the agent it is not done yet, and the run carries on.

1. Open it ​

In the Inbox, a draft has draft in its left column, the tool and its target as its name (mail_send → alice@example.com), and Draft to review beneath. Tap Review.

A mail draft from the agent mail-morning: To alice@example.com, the subject Re: Dinner on Friday, and the body, with Ask for changes at the bottom.A mail draft from the agent mail-morning: To alice@example.com, the subject Re: Dinner on Friday, and the body, with Ask for changes at the bottom.

The page shows who wrote it (From mail-morning) and the call as a form: for a mail, the recipients, the subject, the body and the attachments. What you approve is exactly what goes.

2. Decide ​

You want toDo this
send it as it ishold Hold to approve
change it, then sendedit the fields, then hold Hold to send
have the agent rewrite ittype what to change into Ask for changes, such as "shorter"
drop ittap Reject

When you ask for changes, the agent writes a new draft, and it replaces this one. The old one shows Replaced, with Open it to go to the new draft.

3. Check the outcome ​

The draft keeps its outcome at the top: Approved · ran, Changed and approved · ran, Sent back, Rejected or Did not run.

An approved draft runs under the permission tree as it is now. If the call would reach something the draft did not show, such as another host, that part asks again as a new draft.

Drafts run out ​

A draft waits seven days. Nobody answered by then, it is dropped, and the agent's run is told that the call did not run. To change the time, set parkFor in the workspace's workspace.json:

json
{ "parkFor": "72h" }

Make an agent wait instead ​

An agent with a schedule parks by default. To have it wait for an approval as a chat does, write park: false into its frontmatter:

md
---
when: "0 7 * * *"
park: false
---

Its run then waits for your answer on the phone, two minutes at most.

nocturn is open source. Example hosts and people on these pages are made up.