AIST Messenger
AIST Messenger: people and AI in one workspace
A working conversation should lead to action without losing context. In AIST Messenger, people discuss a task, involve an agent and control its actions in the same workspace.
My role
Cofounder and CTO at ONIIR. Developing the messenger and AI integrations with the team.
The challenge
Bring channels, direct messages and AI tools together while keeping clear boundaries: what each participant can see, whose permissions the agent uses and who can approve an action.
Product interface
Real interface. Data is covered by opaque blocks within the image; this is not a loading state.

How it works
- 01
Channel, thread or direct message
- 02
Agent receives permitted context
- 03
Tool call and action approval
- 04
Result and realtime update
Main processing stages; no customer data.
Engineering decisions
Persist the event with the change
A message and its delivery event are written in one PostgreSQL transaction. A separate worker publishes events to Centrifugo and can retry after a failure. Delivery may repeat, so consumers must account for duplicate events.
Approval is part of execution
The agent persists conversation state and a pending tool call, pauses for a user decision and resumes afterwards. Approval rights depend on whether the connection uses a personal identity or a service account.
Integrations retain user identity
MCP connections distinguish personal and service credentials. Private channels and direct messages require membership, including for realtime subscriptions. Connecting an agent must not grant it access to every conversation.
What we built
A messenger with channels, threads, files, search and agents that can use external tools. Action approvals and server-side access checks are part of execution, rather than interface-only controls.
Self-hosting does not automatically keep all data inside the company: context may be sent to the configured LLM provider. Models, context scope and integration permissions need explicit configuration.
Technology
- TypeScript
- Next.js
- Fastify
- PostgreSQL
- Centrifugo
- MCP
Product context
AIST Messenger is part of ONIIR’s corporate AI tooling. MCP connects business systems; for example, the Superset connector implements short-lived tokens issued under a user identity.