A systemis your software connected to Qaalia, wherever it is: your CRM, your inventory, your school's system or the API of a service you use. Its operations are what your agent can do in it (register a customer, check inventory, create a booking) and each one has its permission. Then you just write what you want, for example «Enroll Juan Pérez in Chemistry», and the agent picks the operation and runs it in your system.
System types
When you add a system, Qaalia asks you how it connects. Whichever you choose, your system becomes an MCP server for your agent, with a permission for each tool. There are three types:
Which one do I choose?
What your system needs
For Qaalia to automate it, your system must be able to receive HTTP calls: an API (REST) or an MCP server. Ideally it publishes its OpenAPI (Swagger) specification: that way Qaalia discovers all its operations on its own.
Qaalia creates its MCP server
For a system with an API on the internet, even if it doesn't have an MCP server. Qaalia creates your system's MCP server with its tools, and your agent uses it like any other MCP server.
Add the system
In Qaalia Chat → Systems, choose the agent, click Add system and choose Qaalia creates its MCP server. Give it a name (for example, «My store»).
Paste the address
It can be any of these; Qaalia recognizes which one it is:
- The specification:
https://api.tu-sistema.com/openapi.json(JSON or YAML). - The API address: Qaalia looks for its specification at the usual paths (
/openapi.json,/swagger.json,/v3/api-docs…). - A documentation page: Qaalia reads its text and extracts the operations.
If you don't have an address, turn on Paste the documentation or curl examples, paste it and, if needed, enter the API's base address.
Add the credential, if your API asks for one
Write the header name (for example, Authorization or X-API-Key) and its value (for example, Bearer tu_llave). It's stored encrypted, the AI never sees it and it's only sent to this system's address.
Choose its tools
Click Analyze. You'll see the tools found, the address they'll be called at and the result of up to 3 real reads with your credential, to confirm the connection works. Choose which ones the server will have (up to 200) and click Create MCP server.
Choose their permissions
Its tools open: decide each one's permission. You can now ask the agent for things.
It's on my machine or my network
For a system that runs on a computer, a server or your business's network and isn't on the internet. You connect it with the Qaalia Connector, a small program you install once on that machine, as a service or with Docker, that turns your system into an MCP server for your agent. Your system is never exposed to the internet: the Connector only opens outbound connections.
The Connector can publish three things, together or separately:
- Your system's local API, for example
http://localhost:3000. If it publishes its OpenAPI specification, its operations show up on their own. - A folder the agent can read (CSV, JSON, TXT, Markdown…). It never writes to it or leaves it.
- Local MCP servers that run as a command, for example your database's or a desktop program's.
How it works
You ask the agent for something
For example, in Qaalia Chat: «Enroll Ana Ruiz in Physics». The agent picks the registrar_estudiante tool.
Qaalia gets it ready for your machine
Qaalia can't get into your machine, so it leaves the call (already checked against its permission) for the Connector to pick up. If it isn't picked up within 30 seconds, it expires and never runs.
The Connector picks it up and runs it
The Connector is always in touch with Qaalia. It picks up the call, Qaalia confirms it's still valid, and only then does it call your local API, read the folder or use the local MCP server.
Your system responds and the agent continues
The Connector returns the response to Qaalia and the agent continues: it replies to you or uses another tool.
Before you start
- On that machine, Node.js 18 or later (includes
npx) or Docker. Check it withnode -v. - Your system turned on and its local API running, for example at
http://localhost:3000. - For Qaalia to discover your API's operations, publish its specification at
/openapi.json(see Prepare your system).
Connect it step by step
Add the system
In Qaalia Chat → Systems, click Add system and choose It's on my machine or my network. Write its name and its API's local address (for example, http://localhost:3000). Optionally, a folder and your local MCP servers, one per line as name=command.
Copy the command
Click Get the command. Qaalia shows you a command with a one-time code that expires in 15 minutes (if it expires, click New code):
npx qaalia conector XXXXXXXX --servidor https://… --api http://localhost:3000Paste it into a terminal on that machine
The Connector connects, publishes your system's tools and waits for work:
✔ Qaalia Connector: «Escuela» (API http://localhost:3000) 12 herramientas publicadas. Elige el permiso de cada una en Qaalia → Sistemas. Para que arranque solo con el equipo: npx qaalia servicio instalar Esperando trabajo de tu agente…10:42:07 ✓ registrar_estudiante · 84 msThe Qaalia screen detects the connection on its own.
Leave it as a service
Stop the Connector with Ctrl+C and run:
npx qaalia servicio instalarIt becomes an operating system service (systemd on Linux, launchd on macOS and Task Scheduler on Windows): it starts on its own with the machine and restarts if it fails. You no longer need an open terminal.
Choose the permissions
Click Choose permissions and decide what the agent can do with each tool. You can now ask it for things.
loginctl enable-linger; if it can't, it shows you the command to do it.With Docker
On a server, NAS or VPS with Docker, choose the Dockertab when you get the command. A single command connects the machine and keeps it running; when it restarts, it uses what's saved in its volume:
docker run -d --name qaalia-connector --restart unless-stopped \ --add-host=host.docker.internal:host-gateway -v qaalia:/data \ -e QAALIA_CODIGO=XXXXXXXX \ -e QAALIA_SERVIDOR=https://… \ -e QAALIA_CONFIG=/data \ -e QAALIA_API=http://host.docker.internal:3000 \ node:20-alpine npx -y qaalia conector --servicioInside the container, localhost is the container itself: Qaalia already replaces localhost with host.docker.internal in the command. With Docker, the API and the local MCP servers are published.
Command options
Other commands:
npx qaalia servicio instalar: leaves the Connector as an operating system service.npx qaalia servicio estado: shows whether the service is running.npx qaalia servicio quitar: removes the service from this machine.npx qaalia conector: reconnects what's saved on this machine, without asking for another code.npx qaalia ayuda: shows the help.
If the machine disconnects
- Machine off or offline: if the Connector gives no signal for 45 seconds, the system shows as Machine disconnected and the agent tells you right away, without running the action.
- Nothing runs late: a call the Connector doesn't pick up in time expires, even if the machine comes back later.
- If it drops in the middle of an action: Qaalia doesn't repeat it on its own, so it doesn't record something twice. The agent tells you it may have been applied and asks you to check in your system.
Connector security
- It never opens a port: it only makes outbound connections to Qaalia.
- It only calls the API, only reads the folder and only uses the local MCP servers you specified when connecting. Qaalia can't expand that scope.
- It only runs tools you allowed or approved, and only if Qaalia confirms the call is still valid.
- It identifies itself with a key stored on your machine (
~/.qaalia); Qaalia only stores a fingerprint of it. - When you delete the system in Qaalia, the Connector is disconnected.
Limits
- Qaalia never gets into your database on its own: it uses your API or the local MCP server you connected.
- Each call to your machine can take up to 40 seconds.
- Files in the folder must be text and weigh up to 2 MB. The agent reads large ones in parts.
- If the machine is off, your agent can't use it: keep it on a machine that's always on, or on a server with Docker.
I already have an MCP server
If your system or an application (Notion, Linear, GitHub…) offers a remote MCP server, choose I already have an MCP server when adding the system, paste its address and connect it. Its tools appear with their permission, just like operations. See MCP servers. If your MCP server runs as a command on your machine, connect it with the Qaalia Connector.
Manual operations
If Qaalia didn't find an operation, or your API has an endpoint that isn't in its documentation, add it by hand (what used to be creating a tool or webhook). In Systems, on the system's card (section Created by Qaalia), click Manual operations and then Add manual operation.
- They're available in the systems Qaalia creates: those on the internet and those on your machine or network.
- They use the system's base address and credential: you only write the path, and it can never leave that address. On your machine, it's a path of your local API and the Qaalia Connector calls it.
- They're one more tool of the system's MCP server. When you save, its tools open so you can choose its permission, and the Connector never replaces it when it publishes its own again.
- They're not available in I already have an MCP server: its tools are the ones that server publishes.
- In the systems you already had (like «Mi sistema»), they work as always: open the system, click Operations and then Add manual operation.
registrar_estudiante. It must be unique within the system./clientes; on your machine, the one of your local API. Use {dato} for data inside the path: /clientes/{id}.Permissions and approvals
Each operation arrives with a suggested permission based on what it does. You can change it whenever you want:
- Approvals appear above the Qaalia Chat bar, with the operation and its data. You can reject, approve just that once or always allow it.
- In a bulk operation you approve only once for the whole batch.
- Long tasks wait for your decision and continue on their own when you approve.
Use your systems
To test an operation, click Try on it: Qaalia Chat opens with the request ready to send. If you ask for hundreds of records at once, for example from an attached Excel file, Qaalia turns it into a long task that advances in batches and saves its progress.
How Qaalia calls your system
When the agent uses an operation, your system receives a request like this:
POST https://api.tu-negocio.com/qaalia/registrar-estudianteContent-Type: application/jsonIdempotency-Key: 4c9a1e2f-…Authorization: Bearer tu_llave{ "nombre": "Juan Pérez", "curso": "Química" }- The data goes in the body as JSON. With
GET, it goes in the URL as parameters. Path data ({id}) is placed in the address. Idempotency-Keyis unique per action (the Qaalia Connector and the operations of the systems you already had send it): use it to avoid repeating a record if it arrives twice.- Whatever your system responds (up to 20,000 characters) is delivered to the agent as the result.
- For a system on your machine, the request is the same, but the Qaalia Connector makes it to your local API.
Timeouts and retries
If the agent needs several actions at once, Qaalia runs them in parallel, up to 8 at the same time.
Endpoint example
// POST https://api.tu-negocio.com/qaalia/registrar-estudianteapp.post("/qaalia/registrar-estudiante", async (req, res) => { if (req.get("Authorization") !== `Bearer ${process.env.QAALIA_WEBHOOK_SECRET}`) { return res.status(401).json({ error: "No autorizado" }) } // Si Qaalia reintenta la misma acción, no la registres dos veces. const clave = req.get("Idempotency-Key") const previa = await buscarPorClave(clave) if (previa) return res.json(previa) const { nombre, curso } = req.body const matricula = await registrarEstudiante({ nombre, curso, clave }) res.status(201).json({ ok: true, matricula: matricula.codigo })})Prepare your system
If your system doesn't have an API yet, or you want the agent to understand it better, these rules make Qaalia discover everything on its own and the agent choose well:
- Publish your OpenAPI specification at
/openapi.json. Frameworks like FastAPI (Python), NestJS or ASP.NET generate it automatically. - A clear name per operation (
operationId):crear_cliente,listar_clientes. It's the name the agent will see. - Describe when to use it (
summaryanddescription) and each piece of data with its description. - Use the right method:
GETto read,POSTto create,PATCH/PUTto edit,DELETEto delete. The suggested permission depends on it. - Identifiers in the path and filters in the query:
/clientes/{id}and/clientes?q=ana. - Flat JSON body: the fields directly, without wrapping them in another object.
- Allow searching by name or email, not just by id: that way the agent finds records from what you write.
"/estudiantes/{estudiante_id}": { "patch": { "operationId": "actualizar_estudiante", "summary": "Actualiza los datos de un estudiante", "description": "Úsala cuando pidan cambiar su curso o su teléfono.", "parameters": [{ "name": "estudiante_id", "in": "path", "required": true, "schema": { "type": "integer" } }], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CambiosEstudiante" } } } } }}Limits per plan
Systems are measured by usage: each time your agent runs an operation (on the internet, on your machine or MCP) it counts as one execution, whether it comes from Qaalia Chat, your API or a trigger. Retrying the same operation doesn't count again and messages are unlimited. Check your usage in Usage, inside your dashboard.
Best practices
- One operation, one action:
crear_clienteandactualizar_clientework better than a generic operation. - Import only what the agent needs: fewer operations, better decisions.
- Describe the when: the agent picks the operation by its description, not by its address.
- Respond with clear JSON: include what the agent needs to continue, such as the code of the created record.
- Respond quickly: if an operation takes long, accept it and process it in the background.
- Meaningful errors: a message like «The Chemistry course is full» lets the agent explain it to the user.
Frequently asked questions
Does Qaalia connect to my database?
My system is old and has no API, can I connect it?
Is my system exposed to the internet with the Qaalia Connector?
Do I have to keep a terminal open?
npx qaalia servicio instalar or with Docker, the Connector starts on its own with the machine and restarts if it fails.
