Package Information
Available Nodes
Documentation generating…
Documentation
n8n-nodes-becda
n8n community node for the Becda decision API. Becda suggests a code (for example an accounting code for an invoice line) for a record, learns from the codes that people approve, and tells you when a suggestion is safe to process without a person.
Installation · Credentials · Operations · Example workflow · Notes
Installation
Follow the community nodes installation guide and install the package n8n-nodes-becda.
Credentials
You need a Becda account and an API key. A free 14-day Sandbox is available at becda.com. Then:
- In n8n open Credentials, choose Create credential and search for Becda API.
- Paste the API Key and the Tenant ID from your Becda portal.
- Leave Base URL as it is, and save. n8n runs the credential test and shows a green banner when the key works.
The fields:
| Field | Meaning |
|---|---|
| API Key | Your Becda key. A read-only key (becda_ro_...) can Predict, Predict Batch, Status and Feedback. |
| Tenant ID | The tenant (company) the key belongs to. The node never asks for a tenant again. |
| Base URL | Default https://api.becda.com. Change it only for a test or self-hosted server. |
The credential test calls GET /v2/tenants/{tenant}/whoami. Every request carries the header X-Becda-Client: n8n/<package version>.
Operations
The node uses the /v2 API.
| Resource | Operation | What it does |
|---|---|---|
| Record | Predict | Suggest a code for one record. Optional Text and Item ID. Uses one decision. |
| Record | Predict Batch | Up to 1000 records per request. Longer lists are split automatically. |
| Record | Learn | Teach a code a person approved: Fields, Code, Date (YYYYMMDD), optional Text and Item ID. |
| Record | Learn Batch | Teach many past records. Same split into 1000. |
| Record | Rollback | Undo one wrongly taught record. |
| Tenant | Get Status | Observation counts, alarm state and closed codes. |
| Feedback | Send | Send a bug report, feature request or accuracy note. |
Fields is a JSON object, for example {"supplier": "T12", "unit": "pcs", "vat": 20}. Use the same field names and value formats when you learn and when you predict.
Item ID is optional. Send the same ID to Predict and to Learn (for example invoice-uuid:line) and Becda can count how often its suggestions are accepted. Only a salted hash is kept.
Batch operations read the records from the input items (each item is one record with fields, and for learning also code and date) or from one JSON array. A bad record does not stop the others: it comes back as an item with an error.
Rollback runs as a background job on the server and can take several seconds on large tenants. By default the node waits for it: set Poll Interval and Timeout, or turn off Wait for Completion to get the job ID right away. An Idempotency Key makes a retry return the same job.
Example workflow
examples/predict-and-route.json asks Becda for a code and then routes the record: when Becda marks the answer as safe (auto_approved) the flow processes it, otherwise it asks a person. In n8n choose Import from file, select the JSON, then pick your Becda API credential on the Becda node.
Notes
- Errors from the API are shown with the server message and error code. A read-only key used for Learn, Learn Batch or Rollback gives a clear message (
read_only_key, HTTP 403). - Do not put personal data in
TextorFields. Tax IDs and similar values can be sent as a salted hash. - The node has no runtime dependencies.