sync_abaninja
Mirror AbaNinja into CallPilotAI so the data can be analysed and reconciled: addresses (companies AND private persons, the same list as app.abaninja.ch/addresses/list), master data (products, product groups, time-tracking employees), documents (quotes and invoices) and their positions. AbaNinja stays the leading source — nothing is ever written back. Positions are fetched one document at a time because AbaNinja's list endpoints do not return them, so a single call fetches at most max_positions documents and reports how many are still outstanding. The job is done when offen is 0, not when the call returns. Run it again to continue.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_abaninja"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Default 'all': addresses, master data (products, product groups, employees), documents, then one batch of positions. | |
| max_positions | No | How many documents to fetch positions for in this call (default 60, max 300). Each one is a separate API request. | |
| positions_type | No | Restrict the position batch to one document type — quotes first is usually what you want. |