Skip to main content
connic

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.

payables-agents
agents/invoice-processor.yaml
tools:
- invoices.find_supplier
- invoices.save_invoice
tools/invoices.py
async def save_invoice(
supplier_id: str,
account: str,
net: float,
total: float,
lines: list[dict],
) -> dict:
"""Book the invoice in the ERP.
Today, 38 invoices36 booked2 needs_review

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.

Payables
payables.example.com/invoices/INV-2026-4471
PayablesInboxBooked
From billing@velmora.example.com · 09:12INV-2026-4471.pdf
VELMORA PACKAGING
Hafenstraße 12 · 28217 Bremen
Invoice INV-2026-4471
27 Oct 2026
Shipping cartons 60×40×40, 400 pcs696.00
Stretch film 500 mm, 24 rolls283.20
Pallet delivery100.30
Net1,079.50
VAT 19%205.11
Total EUR1,284.61
Payable within 30 days without deduction.
Read by the invoice agent
Supplier
Velmora Packaging GmbH
Invoice no.
INV-2026-4471
Invoice date
2026-10-27
Due
2026-11-26
Net
€1,079.50
VAT 19%
€205.11
Total
€1,284.61
  • 3 lines add up to the net amount
  • VAT is 19% of net
Booked to 4710 Packaging09:14

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.

Client Books
books.example.com/clients/hartwig-dental/proposals
Client Books
Clients
Hartwig Dental Practice
Brenner Bakery
Okafor Architects
Lindqvist Yoga Studio
Hartwig Dental Practice · October
Booking proposals
Proposed by the booking agent with this client's chart of accounts and 14 booking rules, loaded at 09:02.
SupplierAmountAccountWhy
Krüger Dental Lab€2,416.803100 Third-party servicesClient rule: lab work
Practice software subscription€189.004964 LicencesClient rule: software
Hahn Tools€312.454985 Small toolsUnder €800 net
Municipal utilities€148.20Bookkeeper decidesNo rule matches
1 left for youConfirm 3 bookings

The agent finds the invoice in your ERP and replies with the payment date, with bank details masked. Disputes go to a person.

Mail · payables@
mail.example.com/payables/inbox/88213
Compose
Inbox12
Sent
Disputes2
Mara Lindholm10:41
Payment status RE-88213?
Answered
Pieter de Vries10:18
Short delivery on 4410-B
Forwarded to Jonas
Holloway Print09:55
Remittance advice for 2026/1187
Answered
Payment status RE-88213?
Mara Lindholm · accounts@tarnholm.example.com10:37

Hi, we haven't received payment for invoice RE-88213 over €612.35 yet. Could you check? Thanks, Mara

Accounts Payable · payables@example.com10:41

Hi Mara, we paid RE-88213 over €612.35 on 28 October with the reference PAY-2026-1043. It should reach your account within one or two business days.

Best regards, Accounts Payable

Sent by the payables agent after checking the ERP

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.

Bank matching
finance.example.com/bank-matching/2026-10-30
Statement of 29 Oct · Main account
Bank matching
Ran at 06:00, finished 06:07
214
Payments
211
Matched
3
To check
To check before booking
€1,190.00
Baumann Electrical · INV 4410 part
Half of INV-4410 (€2,380.00). The customer may pay in two parts.
€3,000.00
Café Rosmarin · no reference
Two open invoices add up to this: INV-4388 (€1,800.00) and INV-4402 (€1,200.00).
−€58.31
Bank charges · Account fee Q3
No open invoice. Looks like a bank fee for the cost account.

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.
#212 · Newer model for invoices, flag duplicates
code.example.com/finance/agents/reviews/212
Newer model for invoices, flag duplicates #212
Openjana.weiss · invoice-model-update → main
agents/invoice-processor.yaml+7 -1
name: invoice-processor
model: connic/gpt-5.6-terra
model: connic/gpt-5.6-sol
fallback_model: connic/claude-sonnet-5.5
tools:
- invoices.find_supplier
- invoices.flag_duplicate
- invoices.save_invoice
output_schema: invoice
guardrails:
input:
- type: prompt_injection
mode: block
connic/pr-testsAll tests passed
reviewApproved by Tomasz Nowak
Merge

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.
~/payables-agents
Scaffold
$ pip install connic-composer-sdk
$ connic init payables-agents --skill
Develop
$ connic dev
→ Validating project files...
✓ 1 agent(s): invoice-processor (agents/invoice-processor.yaml)
→ Watching for file changes...
[14:02:11] → Detected change: invoices.py
[14:02:12] ✓ Uploaded 18342 bytes
Test
$ connic test
PASS invoice-processor::extracts_totals 1/1 100%
PASS invoice-processor::reads_vat 1/1 100%
✓ 2/2 cases passed.
Deploy
$ connic deploy --env production --yes
→ Validating project files...
✓ Lint passed
→ Packaging upload...
✓ 9 files, 24,816 bytes
✓ Deployment created.

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.

agents/invoice-processor.yaml

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: invoice
tools/invoices.py

Plain 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()
hooks/invoice-processor.py

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 params
schemas/invoice.json

The 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"]
}
tests/invoice-processor.yaml

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

Frequently Asked Questions

Yes. The functions an agent calls are ordinary code in your project and can use any package you add. Your own code can also run before each run, around each action the agent takes, and as an extra check on what goes in and out.

Turn an earlier successful deployment back on, and it serves traffic again without a rebuild. Because the model, prompt and functions are files, every change is also a diff you can read and revert. The model changes only when someone edits the line that names it.

Every project can use connic's EU-hosted models without an account at a provider. With your own keys you can also use OpenAI, Azure OpenAI, Anthropic, Google Gemini, OpenRouter, AWS Bedrock, Google Vertex AI or any OpenAI-compatible server.

One command converts a LangChain, LangGraph or Google ADK project into agent files and functions, then checks the result. A report lists every part that still needs manual work.