Module · at the center of the platform
XTM One
Concept

How XTM One works: the platform, the worker and the modules

The two services of XTM One, the stores they keep their data in, what happens when an agent answers, and how OpenCTI, OpenAEV and OpenCRQ connect to it.

XTM OneFor administrators, platform engineers and AI agent builders

XTM One is two services you run, the platform and the worker, on three stores: PostgreSQL, Redis and an S3-compatible object storage. People, schedules, webhooks and the other modules of the XTM platform send it work. To do that work, it calls the AI providers you configure and the tools its AI agents act through. This page explains what each part does, where your data lives, what leaves the deployment when an agent answers, and how OpenCTI, OpenAEV and OpenCRQ connect. It is the model to keep in mind before you deploy the XTM platform or decide what an agent may reach.

WHAT STARTS WORKXTM ONESTORESOUTSIDEPeopleChat, Slack, TeamsTriggersSchedules, webhooks, eventsThe platformOpenCTI, OpenAEV, OpenCRQPlatformAPI, interface, chat, schedulerWorkerRuns, indexing, background tasksStoresPostgreSQL, Redis, S3AI providersLanguage and embedding modelsToolsIntegrations, MCP servers, the platform
  1. People → Platform: ask
  2. Triggers → Platform: start
  3. The platform → Platform: register and ask
  4. Platform → Worker: hands over runs
  5. Platform ↔ Stores: state
  6. Worker ↔ Stores: state
  7. Platform → AI providers: prompts
  8. Worker → AI providers: prompts
  9. Platform → Tools: tool calls
Requests reach the platform, the worker runs background work, both keep their state in the same stores and call out to models and tools

The two services

ServiceImageWhat it doesHow it scales
Platformxtmone/platformServes the interface and the API on port 4000, the chat, the MCP endpoints and the webhooks. Runs the scheduler that starts assignments, polls integrations for new events, and applies database migrations at startup. Runs the agent's loop for chat answers.Add CPU and memory and raise WEB_WORKERS first, then add replicas for availability
Workerxtmone/workerRuns the background work: assignment runs, background tasks delegated to other agents, the indexing of knowledge-base documents. Picks up a run where it stopped after a restart.Add replicas when work waits in the queue; each runs up to WORKER_CONCURRENCY jobs at once (20 by default)

Both read the same configuration. Set the same environment variables on both, such as DATABASE_URL, REDIS_URL and ENTERPRISE_LICENSE: see the XTM One configuration.

Where data lives

DataStore
Agents, assignments, runs, conversations, users, groups, settingsPostgreSQL
Knowledge-base documents and their embeddings, agent memoryPostgreSQL, with the pgvector extension
Uploaded files, attachments, files agents generateObject storage (S3-compatible)
Job queue, cache, short-term memory of a conversationRedis
Traces of each AI interactionPostgreSQL, or ClickHouse when configured

PostgreSQL is the record: back it up. Redis holds nothing that cannot be rebuilt; a run in progress keeps its state in PostgreSQL, so a lost Redis does not lose a run. Integration and channel credentials are encrypted before they are written to the database.

What happens when an agent answers

A chat message and an assignment run follow the same path:

  1. The request reaches the platform, which authenticates the person or the trigger and loads the agent: its instructions, its model, the tools and knowledge it may use.
  2. The platform builds a prompt: the instructions, the context of the request, and the list of tools the agent is allowed to call.
  3. It sends the prompt to the agent's AI provider.
  4. The model answers, or asks for a tool to be run. It never runs anything itself: it returns the name of a tool and its arguments.
  5. The platform or the worker runs the tool: it searches a knowledge base, calls an integration or OpenCTI, hands work to another agent. It returns the result to the model, which may ask for another tool. This repeats until the model writes its answer.
  6. The answer goes back to the person, or to the run's record for an assignment, and the interaction is recorded as a trace.

So the model sees the prompt, the tool descriptions and the tool results, never your credentials nor a whole data source. What is sent to a provider, and how to restrict it, is in Govern how AI is used. Before a tool runs, an agent can be set to ask a person for approval: see How XTM One marks what to trust and what to review.

How the XTM platform connects

OpenCTI, OpenAEV and OpenCRQ register with XTM One. Each presents the registration token set in PLATFORM_REGISTRATION_TOKEN on XTM One, which each holds under its own variable: XTM__XTM_ONE_TOKEN in OpenCTI, OPENAEV_XTM_ONE_TOKEN in OpenAEV, XTM_ONE__TOKEN in OpenCRQ. Each registers again regularly: that registration is also its heartbeat. Once a platform is registered:

How to register the platforms is in Connect the modules to each other.

Who runs it

Filigran can host XTM One for you, or you run it on your own infrastructure, connected or air-gapped. Hosted by Filigran, you reach it by a URL, configure models, sign-in and agents from the screens, and Filigran handles the infrastructure, upgrades and backups. Self-hosted, you run the two services and the three stores, behind a reverse proxy that terminates HTTPS, with the rest of the XTM platform: see Install with Docker Compose.

ExampleThe weekly Velvet Harbor brief, from trigger to Slack

At Grand Meridian Hotels, XTM One runs at https://xtm-one.grand-meridian.example, with OpenCTI registered. Every Monday at 08:00, Europe/Paris, the assignment Weekly Velvet Harbor brief of the agent Velvet Harbor watcher comes due:

  1. The platform's scheduler sees it is due and creates a run, which the worker picks up.
  2. The worker loads the agent Velvet Harbor watcher and sends its prompt to the model Sophie Laurent chose for it.
  3. The model asks for the new OpenCTI reports on Velvet Harbor. The worker calls OpenCTI with the agent's rights and returns the reports.
  4. The model asks for the knowledge base Grand Meridian security policies, to word the brief as the crisis communication playbook requires. The worker searches it in PostgreSQL.
  5. The model writes the brief. The worker records the run and its trace, and posts the brief to the CTI team.

Camille Roux reads it on Monday morning. If she wants to know which reports it used, the run's record lists each tool call, as Review what agents did shows.

What's next

NextHow access works in XTM One
XTM One
The AI layer at the center of the XTM platform: agents that work across OpenCTI, OpenAEV and OpenCRQ.

Published

Overview