# Axonaut plugin

The Axonaut plugin lets a Vaubaan Gateway mission use Axonaut without handing the agent a credential. CRM and sales of an Axonaut account: companies, contacts, pipeline, quotations, invoices, payments, projects, tasks and tickets.

Version `0.1.0` · 13 permissions · 4 macro-actions · 41 tools · 2 gateways run this plugin (over the last 90 days).

## How Axonaut is modelled

1 plane, 19 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

- **Account** — One account is the API key of one Axonaut user.
  - Plane `erp` — One Axonaut account: its CRM, sales documents, projects, tickets and products.
    - `account` (1; the resource) — The Axonaut account the API key opens: the resource of an account, one per key.
      - `company` (1 *) — A company of the CRM: a customer, a prospect or a supplier.
        - `delete` (1) — Verb leaf: the deletion of a company.
      - `contact` (1 *) — A contact person of a company (an Axonaut "employee").
        - `delete` (1) — Verb leaf: the deletion of a contact.
      - `opportunity` (1 *) — A deal in the sales pipeline.
        - `delete` (1) — Verb leaf: the deletion of an opportunity.
        - `outcome` (1) — Verb leaf: an opportunity registered as won or lost.
      - `quotation` (1 *) — A quote sent or to send to a company.
        - `outcome` (1) — Verb leaf: a quotation registered as accepted or refused.
      - `invoice` (1 *) — A customer invoice, a numbered accounting document.
      - `payment` (1 *) — A payment received on an invoice.
      - `project` (1 *) — A project of the account.
      - `task` (1 *) — A task, on a project or a company.
        - `delete` (1) — Verb leaf: the deletion of a task.
      - `ticket` (1 *) — A support ticket.
        - `comment` (1) — A comment added to a ticket.
      - `event` (1 *) — A CRM event on a company: a note, a call, a meeting, an e-mail log.
      - `product` (1 *) — A product or service of the catalog.

Marks: 1 exactly one, named; n a finite, known set; * an unknown number, possibly all.

- **Account**: One account is the API key of one Axonaut user.
- **Resource**: Its one resource is the Axonaut company account that key opens.
- **Environment**: No permission of this service depends on an environment: each is held once, whatever the resource. Known: none. Carried by: nothing in the model. Axonaut has no test mode, so no environment applies: the permissions say what a mission may read, change, invoice or delete there, and creating an invoice, which cannot be deleted, asks you first.

## What an agent does at Axonaut: 4 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

1. **Read** — Read the CRM, quotes, invoices, payments, projects, tasks, tickets and products. The agent reads the account: customers and their contacts, the pipeline, quotes, invoices and payments, projects, tasks, tickets and products. The CRM read is kept apart because it carries personal data about people outside the company: at Careful it asks first, while the sales, work and catalog reads run freely. (4 permissions)
2. **Work the CRM** — Keep companies, contacts, notes, the pipeline, tasks and tickets up to date. The agent keeps the day-to-day records up to date: it adds or corrects companies and contacts, logs calls and notes, moves deals through the pipeline, and manages tasks and tickets. Closing a deal as won or lost is kept apart, because reporting and forecasts follow it. (4 permissions)
3. **Sell and invoice** — Create quotations, record their answer, create invoices and record payments. The agent prepares the commercial documents: quotations, the customer's answer to them, invoices and the payments received. Each act is its own permission because each goes further: an accepted quotation creates an order, an invoice is a numbered legal document that cannot be deleted, a payment is an entry in the books. (4 permissions)
4. **Clean up** — Delete companies, contacts, opportunities and tasks. The agent deletes companies, contacts, opportunities and tasks. Alone in its macro-action because a deletion cannot be undone: it is left out at Careful and asks first at every other level, and a deletion also needs the permission to modify that kind of record. (1 permission)

## The map

13 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Careful ×1: Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out. Trusting ×3: Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3. Autonomous ×10: Everything but irreversible actions runs freely; those ask first. Limits ×10.

yes: runs freely; ask me: ask me first; no: not included. A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

### Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

- Sell and invoice: Create an invoice `axonaut.invoice-create`, irreversible — Creates a numbered invoice for a customer: an accounting document that French rules do not let anyone delete, only cancel with a credit note. Careful: no · Trusting: ask me · 60 a day · Autonomous: ask me · 200 a day.
- Clean up: Delete a company, contact, opportunity or task `axonaut.delete-record`, irreversible — Removes a record from the account; Axonaut documents no way to restore it. A deletion also needs the permission to modify that kind of record. Careful: no · Trusting: ask me · 60 a day · Autonomous: ask me · 200 a day.

### Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

- Work the CRM: Mark an opportunity won or lost `axonaut.opportunity-outcome`, costly to undo — Closes a deal in the pipeline: sales reporting and forecasts follow the outcome, and undoing it means correcting them. Careful: ask me · 50 a day · Trusting: ask me · 150 a day · Autonomous: yes · 500 a day.
- Sell and invoice: Mark a quotation accepted or refused `axonaut.quotation-outcome`, costly to undo — Accepting a quotation makes Axonaut create the order from it; an accepted quotation can no longer be refused. Undoing it means correcting the order by hand. Careful: ask me · 50 a day · Trusting: ask me · 150 a day · Autonomous: yes · 500 a day.
- Sell and invoice: Record a payment on an invoice `axonaut.payment-record`, costly to undo — Records money received on an invoice: an accounting entry that marks the invoice paid and feeds the books. Careful: ask me · 50 a day · Trusting: ask me · 150 a day · Autonomous: yes · 500 a day.

### Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

- Read: Read the CRM `axonaut.read-crm`, personal data — Companies, contacts, opportunities and CRM events: names, e-mail addresses, phone numbers and notes about people. Personal data reaches the agent; nothing is modified. Careful: ask me · 1,000 a day · Trusting: yes · 3,000 a day · Autonomous: yes · 10,000 a day.
- Work the CRM: Create or modify companies, contacts and CRM events `axonaut.crm-write`, personal data — Adds or changes customer records and their contact people, or logs a note, call or meeting on a company. Personal data is written; the colleagues of the account see it. Careful: ask me · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.

### Harmless

Runs freely at every level.

- Read: Read quotes, invoices and payments `axonaut.read-sales` — Amounts, terms, customers and who paid what. Commercial data reaches the agent; nothing is modified. Careful: yes · 1,000 a day · Trusting: yes · 3,000 a day · Autonomous: yes · 10,000 a day.
- Read: Read projects, tasks and tickets `axonaut.read-work` — Projects, tasks and support tickets with their descriptions. Nothing is modified. Careful: yes · 1,000 a day · Trusting: yes · 3,000 a day · Autonomous: yes · 10,000 a day.
- Read: Read the product catalog `axonaut.read-catalog` — Products and services with their prices. Nothing is modified. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Work the CRM: Create or modify opportunities `axonaut.opportunity-write` — Adds a deal to the pipeline or changes its amount, probability, step or due date. The sales team sees it in its pipeline. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.
- Work the CRM: Create or modify tasks and tickets `axonaut.work-write` — Adds or changes tasks and support tickets, or comments on a ticket. The team sees the change in its workload. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Sell and invoice: Create a quotation `axonaut.quotation-create` — Creates a numbered commercial document for a customer. Creating it does not send it; the customer sees it only once someone sends it. Careful: yes · 50 a day · Trusting: yes · 150 a day · Autonomous: yes · 500 a day.

Careful: runs freely 6, ask me first 5, not included 2.
Trusting: runs freely 8, ask me first 5.
Autonomous: runs freely 11, ask me first 2.

Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

## A few calls, classified by the plugin

47 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. [The 47 calls, as code](https://github.com/vaubaan/gateway/blob/main/plugins/axonaut/src/examples.ts).

- `axonaut__list_companies {"account":"4242","search":"Globex","is_customer":true,"page":2}`
  - the plugin sees: `axonaut.account[4242].company[*].R`
  - the catalog answers: Read the CRM `axonaut.read-crm`
  - a Careful mission: ask me
- `axonaut__create_company {"name":"Globex","address_city":"Toulouse","is_prospect":true}`
  - the plugin sees: `axonaut.account[4242].company.W`
  - the catalog answers: Create or modify companies, contacts and CRM events `axonaut.crm-write`
  - a Careful mission: ask me
- `axonaut__create_quotation {"company_id":"33","products":[{"name":"Audit day","price":900,"quantity":2,"tax_rate":20}]}`
  - the plugin sees: `axonaut.account[4242].quotation.W`
  - the catalog answers: Create a quotation `axonaut.quotation-create`
  - a Careful mission: yes
- `axonaut__create_invoice {"company_id":"33","products":[{"name":"Audit day","price":900,"quantity":2,"tax_rate":20}],"date":"2026-11-05"}`
  - the plugin sees: `axonaut.account[4242].invoice.W`
  - the catalog answers: Create an invoice `axonaut.invoice-create`
  - a Careful mission: no

## Anything else

A call no permission covers touches `axonaut.uncategorized-write` instead of slipping through. No macro-action holds it; a person ticks it knowingly.

| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
| --- | --- | --- | --- | --- |
| Uncategorized write `axonaut.uncategorized-write`: Catch-all for writes without a dedicated entry. A mission that holds it allows the writes this catalog has not reviewed. | Repairable, at a price (costly to undo) | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |

## Tools

41 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

| Tool | What it does | Usually touches |
| --- | --- | --- |
| `axonaut__list_companies` | List companies | `axonaut.read-crm` |
| `axonaut__get_company` | Read a company | `axonaut.read-crm` |
| `axonaut__list_contacts` | List the contacts of a company | `axonaut.read-crm` |
| `axonaut__get_contact` | Read a contact | `axonaut.read-crm` |
| `axonaut__list_events` | List the CRM events of a company | `axonaut.read-crm` |
| `axonaut__list_opportunities` | List opportunities | `axonaut.read-crm` |
| `axonaut__get_opportunity` | Read an opportunity | `axonaut.read-crm` |
| `axonaut__list_quotations` | List quotations | `axonaut.read-crm`, `axonaut.read-sales` |
| `axonaut__get_quotation` | Read a quotation | `axonaut.read-sales` |
| `axonaut__list_invoices` | List invoices | `axonaut.read-crm`, `axonaut.read-sales` |
| `axonaut__get_invoice` | Read an invoice | `axonaut.read-sales` |
| `axonaut__list_payments` | List invoice payments | `axonaut.read-sales` |
| `axonaut__list_projects` | List projects | `axonaut.read-work` |
| `axonaut__get_project` | Read a project | `axonaut.read-work` |
| `axonaut__list_tasks` | List tasks | `axonaut.read-work` |
| `axonaut__get_task` | Read a task | `axonaut.read-work` |
| `axonaut__list_tickets` | List tickets | `axonaut.read-crm`, `axonaut.read-work` |
| `axonaut__get_ticket` | Read a ticket | `axonaut.read-work` |
| `axonaut__list_products` | List products | `axonaut.read-catalog` |
| `axonaut__get_product` | Read a product | `axonaut.read-catalog` |
| `axonaut__create_company` | Create a company | `axonaut.crm-write` |
| `axonaut__update_company` | Update a company | `axonaut.crm-write` |
| `axonaut__create_contact` | Add a contact to a company | `axonaut.crm-write` |
| `axonaut__update_contact` | Update a contact | `axonaut.crm-write` |
| `axonaut__create_event` | Log a CRM event on a company | `axonaut.crm-write` |
| `axonaut__create_opportunity` | Create an opportunity | `axonaut.opportunity-write` |
| `axonaut__update_opportunity` | Update an opportunity | `axonaut.opportunity-write` |
| `axonaut__set_opportunity_outcome` | Mark an opportunity won or lost | `axonaut.opportunity-outcome` |
| `axonaut__create_task` | Create a task | `axonaut.work-write` |
| `axonaut__update_task` | Update a task | `axonaut.work-write` |
| `axonaut__create_ticket` | Create a ticket | `axonaut.work-write` |
| `axonaut__update_ticket` | Update a ticket | `axonaut.work-write` |
| `axonaut__add_ticket_comment` | Comment on a ticket | `axonaut.work-write` |
| `axonaut__create_quotation` | Create a quotation | `axonaut.quotation-create` |
| `axonaut__set_quotation_outcome` | Mark a quotation accepted or refused | `axonaut.quotation-outcome` |
| `axonaut__create_invoice` | Create an invoice | `axonaut.invoice-create` |
| `axonaut__record_payment` | Record a payment on an invoice | `axonaut.payment-record` |
| `axonaut__delete_company` | Delete a company | `axonaut.crm-write`, `axonaut.delete-record` |
| `axonaut__delete_contact` | Delete a contact | `axonaut.crm-write`, `axonaut.delete-record` |
| `axonaut__delete_opportunity` | Delete an opportunity | `axonaut.opportunity-write`, `axonaut.delete-record` |
| `axonaut__delete_task` | Delete a task | `axonaut.work-write`, `axonaut.delete-record` |

## Connecting an account

**1 of 3 · a key you create and paste** — `API key`

An API key the person creates at Axonaut and pastes once; nobody declares anything beforehand.

**Account** — The whole Axonaut account, as this user, with every right of the user in Axonaut. An Axonaut key has no scope to choose; this gateway gives a mission only the permissions it names, call by call, and a mission reaches only this account.

1. Sign in to Axonaut as the user the agents will act as: ideally a user of its own, whose role in Axonaut matches what agents may do. ([open](https://axonaut.com/en/login))
2. **Settings (Paramètres) › API** — Open the API settings.
3. **Afficher la clé API** — Reveal the API key and copy it.
4. Paste the key here.

Where: [https://axonaut.com/en/login](https://axonaut.com/en/login)

Expiry: Axonaut documents no expiry for API keys: regenerate the key in Settings, API, to end this account.

The connect page asks: API key (secret).

The service's documentation: [https://axonaut.com/api/v2/doc](https://axonaut.com/api/v2/doc)

Disconnecting: Regenerate the API key in Axonaut, under Settings (Paramètres), API.

## Health

2 gateways run this plugin (over the last 90 days).

| Version | Gateways | Calls | Success | Validated |
| --- | --- | --- | --- | --- |
| `0.1.0` | 2 | no call yet | — |  |

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly ([what they mean](/plugins/health)). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

## Links

- [Connect a Axonaut account](/plugins/axonaut#connect)
- [How Axonaut is modelled](https://github.com/vaubaan/gateway/blob/main/docs/handbook/services/axonaut.md)
- [The catalog, as code](https://github.com/vaubaan/gateway/blob/main/plugins/axonaut/src/risk-catalog.yaml)
- [The plugin source](https://github.com/vaubaan/gateway/tree/main/plugins/axonaut)
- The page: [/plugins/axonaut](/plugins/axonaut)
