Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Agents in the close

    Describe a check in plain English and read what it would have flagged before it goes live; let the AI review flag inconsistent coding and unusual activity with its reasoning; run the staged close agent through collect, book, reconcile, schedule, review and report; let the bank reconciler prepare a reviewable workpaper; accept accrual proposals with their pattern and reversal; approve the journals an agent prepared; switch on automated bookkeeping; assemble report packages by fixed rules.

    Everything on this page is an agent or a provider method writing proposals. Nothing here posts by itself: a person approves, dismisses, signs or resumes. Agents run as you, under your role, and every write follows the action policies (Settings → AI → Action policies).

    Describe a check (plain-English check builder)

    Under Settings → Close → Check library, choose Describe a check and write what to flag, for example flag any manual journal over AED 20,000 without an attachment. The sentence is read into a condition over the pack's vocabulary (the record source: journal entries, bank lines, expenses or bills; the fields amount, description, account code, counterparty, attachment, source, status, date, reference; the operators). The dialog shows:

    • How it was read, in one sentence, in English and Arabic, with a confidence. Edit the rows if the reading is off.
    • What it would have flagged last period: the count and the rows of the last closed period (or the last period that ended, or the previous month), each linked to its record. Nothing is saved yet.
    • Apply to: this organisation (a custom check with the key, name and severity), or a template, whose future periods then carry the check and its threshold. A firm applies it to a client by working in the client's organisation.

    The check then runs with the library on every Run checks and nightly.

    Anomaly detection in review

    Findings → Review for anomalies asks the provider to read the period's entries, bank lines, bills and expenses against each counterparty's history (usual account, usual class, amount band over the twelve months before the period) and to flag:

    KindWhat it means
    Inconsistent codingA vendor booked to an account other than its usual one
    Unusual activityAn amount above three times the counterparty's largest past amount, a manual entry on a weekend day, a round manual amount
    Class or category inconsistencyA line carrying a different class or category than the counterparty usually does
    Missing dataA control-account line without a contact, a bill line without a VAT category, a bill without a supplier

    The candidates become findings of the builtin check Anomaly found by the AI review, marked AI review with the kind and the reasoning (why, in words, with the figures). Dismiss asks for a reason: the finding stays dismissed on the next run (its fingerprint is kept), the reason is audited, and the record is never raised again for the same kind. Act on the record instead and the finding resolves itself.

    Without the AI add-on the deterministic reviewer runs the same rules; with it the model reasons over the same context.

    The staged close run

    Open a period and choose Run the close agent in its header: it opens the Close agent tab, where the Run the close agent button on the Close agent card starts the run (Run again once a plan exists). The close runner, a library agent created on first use, drafts a plan over the pack's six stages and works them in order:

    1. Collect: the reconciliation tasks and whether a statement covers each bank account; what is missing is listed.
    2. Book: the bank lines still in review and the accrual proposals for the period; unposted documents become proposals, never postings.
    3. Reconcile: every reconciliation task's figures; a difference or a statement line without a match is an exception.
    4. Schedule: the active schedules and the detected ones waiting for a person.
    5. Review: the checks, the anomaly review, the findings and the flux.
    6. Report: the final review figures.

    Each stage records its status, results and notes on the plan. A stage that cannot finish is escalated: the reason, the recommended action and the evidence used (deep links) land on the stage, on the run and as a task for the owner in the group Exceptions; the run pauses. Fix the cause (match or exclude the line, book the difference), then Resume the run from the Agents console: the stage is re-checked with fresh reads and the remaining stages run. The plan panel shows the progress, the current stage and the run link.

    The bank reconciler and its workpaper

    Assign a reconciliation task to the Bank reconciler (the task dialog, Assign to an agent). The run reads the task's account and period, lists the unmatched lines, scores the candidates and matches a line only when the best candidate scores 0.8 or more; the action policy for match decides whether the match applies or waits for a person. It then writes the workpaper onto the task: an Excel file in the document hub (folder Reports) with the summary (statement and ledger balances, the difference), every match with its evidence (the line, what it matched, the entry, the score, the source) and the unmatched lines as exceptions. The task shows Prepared by the agent; the agent signs nothing. A line without a clear match pauses the run with the open lines as evidence and the recommended action. On a receivables or payables task (an account no bank account posts to) the run writes the ledger balance and the open items into the workpaper and pauses on a difference between the ledger balance and the open items that belong to a customer, a supplier or a document: the amount a manual journal put on the account that belongs to nobody. Write workpaper on the task dialog writes it by hand.

    Accrual proposals in the checklist

    On the Checklist tab, the period's accrual proposals have their own Accrual proposals card below the checklist, shown when the period has any (from the accruals proposer, or Propose accruals under Schedules). It lists the vendor, the amount, the account, the pattern each was derived from (the recurring bill profile, the average of the past bills, the service period) and the expected reversal date (the first day after the period, as the accrual auto-reverses). Accept creates the accrual schedule the runner posts on the period end; Dismiss records the reason. Nothing posts from a proposal.

    Journals an agent prepares

    An agent drafts an entry with its reason and evidence in the description (prepare_journal_entry) and submits it into the approval path with source agent; the approvers are the owners, admins and approvers other than the member the agent runs as. Journal Entries → Prepared by agents lists these drafts with the agent and the run. A person approves in the Approvals inbox; approving posts the entry as the approver (a write role), attributed to the agent in the audit log. The preparer never posts.

    Automated bookkeeping

    Settings → AI → Automated bookkeeping → Enable all creates or enables the four continuous library agents together: the vendor coder on every bank import (lookups, coding skills and client memory, proposals in the triage), the bank reconciler, the accruals proposer and the anomaly reviewer. Their runs appear on the Agents console; what they leave for a person waits in the review queue (Bank triage, Approvals, the close findings). Nothing posts beyond the action policies. Switching off disables the four agents and keeps every run.

    Report packages

    Reports → Exports → Report packages holds saved definitions: the report keys (statements and library reports), the period kind, the comparison column, both ageings, the flux of the close period, the insights narrative and the recipients. Run now assembles the package for the chosen close period (or the month just ended) into PDF and Excel files in the document hub (folder Reports, linked to the period's report-stage task when one exists) and records the run with its files. A definition with fixed rules gives the same files month to month; the report packager agent runs the saved definition each month, and the close runner's report stage reads the same figures.

    REST and MCP

    POST /close/checks/draft, POST /close/checks/preview, POST /close/templates/{id}/checks, POST /close/findings/{id}/dismiss, POST /close/periods/{id}/anomalies, POST /close/periods/{id}/agent-run, GET /close/periods/{id}/agent-plan, PATCH /close/agent-plans/{id}, POST /close/agent-plans/{id}/escalate, GET/POST /close/tasks/{id}/workpaper, GET /close/periods/{id}/accrual-proposals, POST /ledger/entries/prepare, GET /ledger/entries/prepared, /reports/packages (CRUD, /run, /runs), PATCH /settings/ai {automatedBookkeeping}. MCP tools: draft_close_check, preview_close_check, save_close_check, dismiss_close_finding, detect_close_anomalies, run_close_agent, get_close_agent_plan, draft_close_agent_plan, update_close_agent_plan, escalate_close_exception, get_close_task_reconciliation, get_close_workpaper, write_close_workpaper, get_close_final_review, list_close_accrual_proposals, prepare_journal_entry, list_prepared_entries, list_report_packages, save_report_package, run_report_package, list_report_package_runs.

    Walkthrough

    1. Settings → Close → Check library → Describe a check: type flag any manual journal over AED 20,000 without an attachment, choose Read it, read the interpretation and the hits of the last closed period, then Apply.
    2. Open the period → Findings → Review for anomalies: read a finding marked AI review with its reasoning; Dismiss it with a reason; run again and confirm it stays dismissed.
    3. Period header → Run the close agent opens the Close agent tab; click Run the close agent on the card and follow the stages; on an exception open the task in Exceptions, fix the cause and Resume the run from the Agents console.
    4. Open a reconciliation task → Assign to an agent → Bank reconciler → Run now; read the workpaper in the document hub; sign as reviewer yourself.
    5. Checklist tab → the Accrual proposals card: read the pattern and the reversal date, Accept one and find the schedule under Schedules.
    6. Journal Entries → Prepared by agents → open the Approvals inbox and approve the entry; the journal shows it posted by you with the agent as preparer.
    7. Settings → AI → Automated bookkeeping → Enable all; import a bank statement and watch the agents' runs on the Agents console.
    8. Reports → Exports → Report packages → New package with fixed rules → Run now → open the files in the document hub; run it again next month and compare.

    Still stuck? Contact support