Agents that take work off your team.
Reviewed, tested and shipped like code.
Each agent is a file in your codebase, with the functions it calls right next to it. Your team reviews and tests every change like the rest of its software, and connic runs the agents.
Finance work you can hand to agents.
Each job is a few files in one project: the agent, the functions it calls and the checks your team agreed on.
Suppliers email PDFs to the payables inbox, and the agent reads and books each one. Invoices over €50,000, or ones that fail a check, wait for a person.
An accounting firm keeps the books for many clients. The agent loads each client's accounts and rules first, proposes the booking, and a bookkeeper confirms it.
The agent finds the invoice in your ERP and replies with the payment date, with bank details masked. Disputes go to a person.
Every morning the agent matches the bank statement against open invoices. Your team only sees the payments it couldn't place, each with a suggestion.
Changes go live only after review and tests.
A new model, an extra tool or a stricter check is an edit to a file. Your team reviews it like any code change, and connic runs your test cases before it goes live.
- Models change only when you change them
- The agent file names the exact model, so it changes only when someone edits that line.
- Failing tests stop the deployment
- A deployment goes live only when every test case passes. With Git connected, the same tests run on every proposed change.
- Roll back without a rebuild
- Turn an earlier successful deployment back on, and it serves traffic again.
From an empty folder to a live agent, without building a platform.
Every save reaches a private cloud environment within seconds, so the next run already uses it. When the tests pass, one command puts it live.
- With or without Git
- Deploy the project folder with one command, or let a push to a branch deploy it.
- Ready for AI coding agents
- One command adds connic's playbook to the project, so a coding agent can write and test agents with it.
Every rule of the invoice inbox is a file you can read.
The invoice agent from the top of this page, file by file. Files named after the agent are picked up with nothing to register.
Model, fallback, prompt, tools and output schema in one file.
version: "1.0"
name: invoice-processor
description: "Books supplier invoices from the payables inbox"
model: connic/gpt-5.6-sol
fallback_model: connic/claude-sonnet-5.5
system_prompt: |
Read the attached invoice into the invoice schema.
Find the supplier, then book the invoice to its account.
If booking is refused, set status to needs_review
and put the reason in note.
tools:
- invoices.find_supplier
- invoices.save_invoice
output_schema: invoicePlain async functions. Type hints and docstrings become what the model sees.
import os
import httpx
ERP_URL = os.environ["ERP_URL"]
async def find_supplier(vat_id: str) -> dict:
"""Look up a supplier and its default expense account.
Args:
vat_id: VAT ID printed on the invoice, e.g. DE312456789
"""
async with httpx.AsyncClient() as client:
resp = await client.get(f"{ERP_URL}/suppliers", params={"vat_id": vat_id})
return resp.json()
async def save_invoice(supplier_id: str, account: str, net: float, total: float, lines: list[dict]) -> dict:
"""Book the invoice in the ERP.
Args:
supplier_id: ID returned by find_supplier
account: Expense account, e.g. 4710
net: Net amount in EUR
total: Gross total in EUR
lines: Line items with description and net amount
"""
async with httpx.AsyncClient() as client:
resp = await client.post(
f"{ERP_URL}/invoices",
json={"supplier_id": supplier_id, "account": account, "net": net, "total": total, "lines": lines},
)
return resp.json()Runs before every tool call and stops a booking over €50,000 or one whose lines don't add up.
from typing import Any
from connic import AbortTool
async def before(tool_name: str, params: dict[str, Any]) -> dict[str, Any]:
if tool_name != "save_invoice":
return params
if params["total"] > 50_000:
raise AbortTool({"error": "Over €50,000: book by hand."})
line_sum = sum(line["amount"] for line in params["lines"])
diff = round(abs(line_sum - params["net"]), 2)
if diff > 0.01:
raise AbortTool({"error": f"Lines are €{diff:.2f} off the net total."})
return paramsThe JSON Schema every result must match, including the status the payables app shows.
{
"type": "object",
"properties": {
"supplier": { "type": "string" },
"invoice_number": { "type": "string" },
"invoice_date": { "type": "string", "description": "YYYY-MM-DD" },
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": { "type": "string" },
"amount": { "type": "number" }
},
"required": ["description", "amount"]
}
},
"net": { "type": "number" },
"vat": { "type": "number" },
"total": { "type": "number" },
"status": { "type": "string", "enum": ["booked", "needs_review"] },
"note": { "type": "string" }
},
"required": ["supplier", "invoice_number", "lines", "net", "total", "status"]
}Files, payloads and expected results. A deployment goes live only when they pass.
version: "1.0"
tests:
- name: extracts_totals
payload: "Book this invoice"
files:
- velmora-INV-2026-4471.pdf
expected_tool_calls:
- invoices.save_invoice: params.account == "4710"
expected_result: output.total == 1284.61
- name: reads_vat
payload: "Book this invoice"
files:
- velmora-INV-2026-4471.pdf
expected_result: output.vat == 205.11