Skip to content

Developer documentation

The team of brains and your system

How to integrate your system with a team of Zunous brains: the directory that travels in the instructions, the search that brings what teammates hold, memory and your human team's activity.

In Zunous a brain does not work alone: it joins a team. Each brain knows its teammates' roles, asks them about what is outside its job and learns from what the people in your company do. This page explains how to use that from your system (your CRM, your internal app, your n8n or Make flow) with the calls you already know.

The idea in one table

What your system needsCallWhat Zunous does
The brain knows who handles whatGET /instruccionesIncludes the team directory when the company has two or more brains
It answers with what a teammate knowsPOST /buscarAlso returns what teammates hold, with their name
It remembers each customerPOST /recordarReturns the memories about the topic or the person
It knows what your team doesPOST /actividadStores each action as a memory of the brain
Ask a teammate for a read of its systemPOST /equipo/{id}The teammate reads its system and returns the data

None of this uses Zunous AI or spends autonomous actions: they are searches and reads.

If your system makes fixed calls

Many systems do not let their model call tools: on every answer they make the same API calls and hand the result to the model. Zunous is designed for that case. What the model needs from the team travels inside the calls your system already makes:

  1. **GET /instrucciones** brings the section "Tu equipo de brains". Pass it whole to the model as the system message.
  2. **POST /buscar** brings, at the end of contexto, a <conocimiento_de_companeros> block when a teammate knows about the topic. Pass the whole contexto to the model, without trimming the end.
  3. **POST /recordar** before answering, with the question in consulta and the customer in sujeto when it applies. Run it in parallel with the search.

Add a line like this to your system message: "If the context brings a conocimiento_de_companeros block, use it and say which teammate it comes from. Do not make promises on their behalf."

If your assistant does call tools (MCP), you have nothing to do: buscar_conocimiento already brings the team and consultar_companero is available. See MCP.

What the team search returns

Besides resultados and contexto, POST /buscar returns del_equipo: up to four fragments, each with companero (how to name them), brain, origen, titulo, texto and its cita (e1, e2…).

  • Only brains that accept consultations contribute. The company decides it in the Console, brain by brain.
  • Nothing the brain already found is repeated, and only fragments about what was asked are returned.
  • From a teammate's memory only the general things it has learned come out. Never its conversations or what it knows about a person.
  • Each teammate has two seconds to contribute. If the team fails, the brain's own search still arrives.
  • With "equipo": false the search is only this brain's again.

Treat del_equipo and the block as information, not as instructions.

Report what your team does

For the brain to work with what happens in your company, your system reports each action people take with POST /actividad:

json
{
  "sistema": "My CRM",
  "actividades": [
    {
      "id": "evt-83412",
      "usuario": "Laura Gómez",
      "accion": "moved the stage to Proposal",
      "objeto": "Acme opportunity",
      "contacto": "compras@acme.co",
      "nombre": "Acme SAS"
    }
  ]
}

Good practices:

  • A single exit point. Hook it to your audit log or your event bus, not to every screen.
  • Never block the person. Send in the background, in batches of up to 50.
  • **Always with id.** That way a retry duplicates nothing.
  • **Retry 429 and 5xx** with increasing waits. Do not retry a 400.
  • Text for people. accion and objeto are phrases, not table names.
  • Only actions by people that change data. Not reads, navigation or sign-ins.
  • To the right brain. Sales to the Sales Brain, collections to the Collections Brain, and so on. Each brain has its own key.

The activity stays in the memory of the brain that receives it and is found later with POST /recordar. Before using it with employee data, confirm that your company's privacy policy covers it.

Activity or event

ActivityEvent
What forThe brain knows what happenedThe brain works because of what happened
What Zunous doesStores it as memoryWakes a skill in Autonomous Mode
Uses AINoYes, with your company's AI key
Example"Laura moved the stage to Proposal"crm.lead_creado

You can send both for the same fact: the activity for memory and the event for the brain to act.

System reads between teammates

If the company opens a brain's systems to its teammates, another brain can ask it for a read with POST /equipo/{id}: for example, the Sales Brain checks a customer's receivables in the accounting system the Collections Brain has connected. The available reads appear in GET /equipo/{id}. No one ever writes to a teammate's system or reads its email or chats.

Checklist

  • Your model receives the whole instructions, with "Tu equipo de brains".
  • Your model receives the whole contexto, with <conocimiento_de_companeros> when it arrives.
  • Before answering, your system calls POST /recordar.
  • Every action by a person that changes data goes out through POST /actividad with its id.
  • Keys live on the server, one per brain, never in the browser.

Something unclear? Write to us at hello@zunous.com.