Mailzero Assistant

Create a standing delegation

Hand a kind of matter to an agent or a person once. match is an explicit predicate, never a model call: any of senderAddress, senderDomain, organisation, workKeyPrefix, senderKind, mailboxIds, labels, subjectPattern (anchored, case-insensitive), minOccurrences, minConfidence (the calibrated classifier's probability on a category: label, 0.5 to 1); every stated condition must hold. Rules are ordered and the first match wins; the level is observe unless said otherwise. A matching rule hands the next matching item to the assignee, tells it through the delegation notice, and Today shows why. Requires assistant:write; an agent token is refused.

post/api/assistant/rules

Request

  • Base URL: https://domani.run
  • URL: https://domani.run/api/assistant/rules
  • Auth: HTTP bearer

Request body

namestring
enabledboolean
positioninteger

Rules are tried in this order; the first match wins

assignee_type'agent' | 'member'
assignee_refstring

The agent identity slug, or the member's user id

level'observe' | 'triage' | 'draft' | 'guarded_send' | 'operate'

The autonomy granted; observe by default

Response

The rule

idstring required
namestring required
enabledboolean required
positioninteger required
level'observe' | 'triage' | 'draft' | 'guarded_send' | 'operate' required
match_countinteger required
last_matched_atstring date-time nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.