Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Approval thresholds: confidence and materiality

    Set which AI actions apply by themselves above a confidence and under an amount, and which wait for review; route material agent postings to approvers who are never the requester; set the autonomy of each agent task, knowing a discrepancy always pauses.

    Two settings decide what an agent, the assistant or the categorisation job may do without a person: the action policies say whether to ask, by confidence and amount; the posting approval tiers say who approves, by materiality. The default is conservative: everything that posts to the ledger waits for review; only a categorisation under 1,000 at confidence 0.9 applies by itself.

    Action policies: auto or review

    Settings → AI → Action policies lists one row per action type and source:

    Action typeWhat it coversPack default
    Categorise a bank lineA statement line coded to an accountAuto at confidence 0.9 or more and 1,000 or less
    Match a bank lineA line matched to an invoice, bill, payment or transferReview
    Post an entryJournals, postings, payments, reversals, importsReview
    Create a documentInvoices, bills, expenses, purchase orders, creditsReview
    Create a schedulePrepaids, accruals, assets, loans, deferred revenueReview
    ApproveDecisions, sign-offs, reviewsReview
    Send or submitAnything that reaches the FTA, a buyer or a vendorReview

    Auto applies the action as a change batch attributed to the agent, undoable in one call from the run or the Batches tab. Review leaves it as a proposal: the stored call with its preview, a task in the close period's Proposed changes group when one covers the date, and a request in the Approvals inbox with the source badge Agent and a link to the run. Approving applies the call as the agent, approved by you; declining leaves nothing.

    A policy's source narrows it to agents, the assistant, rules or the AI categorisation job (Any covers all). The organisation's row wins over the pack default; Back to the default removes it. Only owners and admins change the policies.

    The editor refuses Auto for Post an entry, Approve and Send or submit without an explicit Maximum amount (policy_requires_amount): a posting never applies by itself without a ceiling you chose. Confidence below the minimum, an amount above the maximum, or no confidence at all, each falls back to review; the run's step shows the reason (below_confidence, above_amount, policy_review, materiality, pause_always).

    The categorisation job reads the same policy: after the provider codes new bank lines, the lines at or above the confidence floor and under the ceiling post by themselves (audit action bank.policy_auto_applied, batch tool auto_categorise); the rest wait in Needs review.

    Materiality: who approves

    The posting approval tiers of Settings → Accounting → Posting approvals (source Agent or AI, an amount from, optional accounts, the approvers by user or role) route an agent's posting at or above the amount to approval whatever the policy says. The approvers are the tier's, minus the member the agent runs as: the approver is never the requester, the same segregation of duties as the close sign-offs (same_user). Without a tier, a review proposal goes to the owners, admins, approvers and members allowed to reopen periods, again minus the requester. A tier that leaves nobody else refuses tier_without_approver; add an approver before the agent runs.

    The materiality route also carries the warning the preview raised (approval_tier) into the run's step, so you can read on the run why a posting went to the inbox.

    Autonomy per task

    A close task assigned to an agent has its own Autonomy:

    • Autonomous: the policies decide what applies.
    • Pause on discrepancy (the default): the same, and the run pauses on a discrepancy.
    • Pause always: every write becomes a proposal for review.

    A discrepancy pauses the run whatever the setting: a reconciliation difference or an unmatched line the agent cannot explain, a warning on a preview (a large amount, a date near a lock), a refused tool, or a figure outside the range the agent's instructions expect. The run shows the escalation (reason, recommended action, evidence) and the task shows the pause banner; a person fixes the cause and presses Resume, or Stop here.

    What is logged

    Every policy decision is on the run's step (Policy: auto (policy_auto)). Every auto-applied action is a batch with its before and after values. Every proposal is an approval request with the source and the run. Policy changes are audited (agents.policy_saved, agents.policy_deleted). See Agents, playbooks and guardrails and Audit log.

    REST and MCP

    GET/POST /settings/ai/action-policies, DELETE /settings/ai/action-policies/{id}; the function ledger_action_policy(org, action, source, confidence, amount) is what the agent loop, the assistant and the categorisation job consult. MCP: list_action_policies, save_action_policy (never in an agent's tool list). The tiers: GET/POST /settings/posting-approval-tiers.

    Still stuck? Contact support