Skip to content

Client Applications & UX

Precis

This document is the canonical reference for everything Thinklio presents to its users. It covers the plain-language user guide that explains what the product does and how to work with it; the detailed UI specification for the Thinklio app at app.thinklio.ai (pages, layout, components, states, role-based visibility); the documentation and developer portal that powers /docs and /developer on the marketing site; and the internationalisation architecture that governs how every surface adapts to language, locale, and formatting conventions.

It absorbs four pre-consolidation documents that each described one facet of the same surface area: old doc 12 (user guide), old doc 18 (internationalisation discussion paper), old doc 23 (app UI specification), and old doc 29 (docs and developer UI).

The document is organised into four parts. Part A is the end-user guide, written for individuals, team members, and administrators. It introduces agents, composition and delegation, Agent Studio, knowledge, channels, tools, jobs, and governance in the order a new user encounters them. Part B, which held the app's UI specification, now points to where the built app is described: the shell proposal, the shared design system and kit, doc 07 and Help. Part C covers the documentation and developer portal: the unified schema that powers both /docs and /developer, the shared layout components, the developer-only code panel and endpoint cards, the route structure, and the content organisation. Part D is the internationalisation architecture: nine target languages at launch, the two translation surfaces (deterministic platform strings versus generative agent responses), locale resolution rules, the resource bundle layout, agent response localisation via system prompt injection, data model additions, CJK considerations, phasing, and the open questions ADR-017 defers to formal specification.

Several editorial updates in this consolidation reflect the Convex + Clerk architecture adopted since these source documents were written. Authentication throughout the app is handled by Clerk (not Supabase Auth); REST-style API calls are replaced by Convex queries, mutations, and actions (not handwritten HTTP endpoints); platform string formatting is handled in TypeScript using the Intl API and a catalogue library (not golang.org/x/text). Every such change is noted in-place, and the original API contracts are preserved in the archive. The functional behaviour described (role-gated UI, briefing structure, i18n resolution order) is unchanged.

Part A is the place to start if you are new to Thinklio. For the app's UI, Part B points to where it's described now. Part C is the place to start if you are working on public documentation or the developer portal. Part D governs every surface and should be consulted whenever a string, date, number, currency, or agent-generated response crosses a locale boundary.

Table of contents


Part A: End-user guide

4 November 2026: the end-user guide people read is Help (docs/help/, at /help in the app). Part A is kept as background and isn't kept up to date.

Part A is written for the people who actually use Thinklio: individuals running a personal agent, team members sharing agents with colleagues, and administrators configuring agents for their organisation. It describes the concepts in the order a new user encounters them and uses language suitable for product help content. Sections 2 onwards correspond to the pages that render in the /docs portal described in Part C.

1. Welcome to Thinklio

Thinklio gives you AI agents that think, act, and learn on your behalf. Whether you're using a personal assistant agent or your organisation has deployed agents for your team, this guide helps you get the most from Thinklio.

2. Getting started

2.1 For individual users

  1. Sign up. Create your account at thinklio.ai.
  2. Create your agent. Choose a template or start from scratch. Give your agent a name and tell it what you'd like help with.
  3. Connect a channel. Link your Telegram account (more channels coming) so you can chat with your agent wherever you already communicate.
  4. Start talking. Send your agent a message. It will respond based on its knowledge and the tools available to it.

2.2 For team members

  1. Accept your invitation. Your team admin will send you an invite to join the team on Thinklio.
  2. Access your team's agent. Once you've joined, you can interact with the agents assigned to your team.
  3. Contribute to team knowledge. As you work with the agent, it learns from your chats. Information relevant to the team is shared; personal details stay private.

2.3 For administrators

  1. Set up your account. Create your account and configure billing.
  2. Create agents. Build agents for specific purposes (customer support, research, project management) or use templates.
  3. Compose agents. Use Agent Studio to build sophisticated agents that delegate to specialist agents.
  4. Assign agents to teams. Give your teams access to the agents they need, with appropriate permission restrictions per team.
  5. Configure policies. Set rules about what agents can do, how much they can spend, how deep delegation chains can go, and what requires approval.

3. Core concepts

3.1 Agents

An agent is your AI assistant. Each agent has its own personality, knowledge, and capabilities. Some agents are generalists, good at many things. Others are specialists, deeply knowledgeable about a specific domain.

Agents can:

  • Answer questions using their knowledge
  • Use tools (search the web, manage tasks, call APIs)
  • Delegate to other specialist agents for specific tasks
  • Dispatch long-running work and deliver results when ready
  • Remember context from your chats
  • Learn and improve over time

3.2 Agent composition and delegation

Agents can work together. A personal assistant agent can delegate to specialist agents: a scheduler agent for calendar management, a research agent for information gathering, a domain expert for specialised questions.

From your perspective, you interact with one agent. Behind the scenes, it coordinates with its delegates to get you the best result. All of this is tracked, governed, and cost-attributed the same as direct interactions.

Your administrator configures which agents can delegate to which, and what each delegate is allowed to do. The same scheduler agent might have full calendar access when serving one team and read-only access for another.

3.3 Agent Studio

Agent Studio is the visual tool for composing agents. Team leads and administrators use it to:

  • Define an agent's personality and instructions
  • Attach specialist agents as delegates
  • Configure what each delegate can do
  • Upload knowledge documents
  • View the delegation structure as a visual graph
  • Use templates for common compositions (for example, "Personal Assistant with Scheduler and Research")

3.4 Knowledge

Your agent builds knowledge from every interaction. This knowledge is organised in layers:

  • What the agent knows: its built-in domain expertise.
  • What your organisation has shared: policies, procedures, reference material.
  • What your team has discussed: shared project context, client details, decisions.
  • What it knows about you: your preferences, your context, your history.

Your personal knowledge is private. Your teammates cannot see what the agent knows about you specifically, even when you're sharing the same agent.

When your agent delegates to another agent, each agent maintains its own knowledge. The scheduler agent's knowledge about your meeting preferences stays with the scheduler. Your personal assistant benefits from this indirectly: next time it delegates to the scheduler, the scheduler already knows your preferences.

3.5 Channels

You can talk to your agent through different communication tools:

  • Telegram: chat with your agent in Telegram.
  • Web chat: interact through a browser.
  • API: connect your own applications.

Your chat continues seamlessly across channels. Start a chat in Telegram and pick it up on the web: your agent remembers the context.

3.6 Tools

Agents can use tools to take actions beyond just chat:

  • Search the web for current information
  • Create and manage tasks
  • Call external APIs and services
  • Execute workflows
  • Delegate to other specialist agents

Tool access is controlled by your administrator. Some tools are read-only (searching, looking things up), others can make changes (creating tasks, sending messages), and some require your explicit approval before the agent proceeds. The same agent may have different tool permissions depending on which team it is serving.

3.7 Jobs and deferred work

Some tasks take longer than a quick response. When you ask your agent to do something that will take a while (a comprehensive research task, a document generation workflow, or something that needs human review) the agent will:

  1. Acknowledge your request
  2. Start the work in the background
  3. Let you know when results are ready (or when useful partial results are available)

You can continue chatting with your agent while the work is in progress. The results will be delivered in the same chat when they are ready.

If you change your mind, you can ask your agent to cancel a pending task.

3.8 Governance

If you're part of an account, your administrator sets policies that govern what agents can do. This might include:

  • Which tools agents can access
  • How much agents can spend per interaction
  • What topics are off-limits
  • What actions require human approval
  • How many levels of agent-to-agent delegation are allowed

These policies exist to make agents trustworthy in professional settings. You'll see clear messages when a policy affects an agent's response.

4. Using your agent

4.1 Chats

When you send a message to your agent, it:

  1. Gathers relevant context (your history, team knowledge, your preferences)
  2. Thinks about what you need
  3. Takes action if needed (uses tools, delegates to specialists, starts background work)
  4. Responds with its answer or result

Each chat is tracked as a session. Within a session, the agent remembers what you've discussed. You can start a new session when you want a fresh context.

4.2 Commands

Command details will be added as features are implemented.

4.3 Tips for better interactions

  • Be specific. "Summarise the key points from our project discussion last week" works better than "What happened?"
  • Provide context. If you're asking about something new, give the agent enough background to help effectively.
  • Correct mistakes. If the agent gets something wrong, tell it. It will learn from corrections.
  • Use tools explicitly. "Search for the latest research on X" tells the agent you want it to use its search capability.
  • Ask about progress. If you've asked the agent to do something that takes a while, you can ask how it's going.

5. Privacy and data

5.1 What your agent remembers

Your agent extracts and stores facts from your chats to serve you better over time. These facts include things like your preferences, project details, and contextual information.

5.2 What's private

Your personal knowledge (facts about you, your preferences, your private context) is visible only to you. No one else on your team can see it, even if you share the same agent.

When your agent delegates to another agent, the delegate works from its own knowledge. Your full chat history is not forwarded to the delegate.

5.3 Your data rights

  • Export. You can export all your data at any time.
  • Delete. You can request deletion of your personal data.
  • Portability. If you leave a team, your personal knowledge goes with you.

6. Troubleshooting

Agent not responding?

  • Check that the agent is active (not paused)
  • Check your channel connection
  • Try sending a simple test message

Agent giving irrelevant answers?

  • Start a new session for a fresh context
  • Be more specific in your request
  • Check if relevant knowledge has been captured

Budget exceeded?

  • Contact your team or account administrator
  • Your agent will inform you when budget limits are reached

Long-running task not completing?

  • Ask your agent about the status of the task
  • Tasks have timeout limits: if a task exceeds its deadline, you will be notified
  • You can ask your agent to cancel a pending task

7. Getting help

Support channels will be documented as they're established. The up-to-date set of support surfaces always lives under the /docs portal described in Part C.


Part B: Thinklio app UI specification

Replaced, 4 November 2026. The specification that stood here (April 2026: a sidebar with an Administration section, Briefing, the old pages and component library) no longer describes the app. The app is built and described in these places instead:

  • The shell, the views and the places: One Shell, Modules and Integrations (§ 2 the shell, § 3 the collection surface, § 10 the order of work), with its plans: the shell and the views and one shell for both apps.
  • The look and the controls, shared with RippleBase: ~/dev/docs/ui-ux/design-system.md (§ 2a the shell, § 7.2 the fonts) and ~/dev/docs/ui-ux/simplicity-principles.md. The components are RippleBase's kit, copied into apps/web/src/kit/; the rules for using it are in apps/web/CLAUDE.md.
  • Settings, roles and who sees what: doc 07 § 4.2, with the decisions DEC-59 (settings by level) and DEC-60 (the four roles).
  • What each page does, for the people using it: Help, in docs/help/ (shown in the app at /help and in each page's "?").
  • The data each screen reads: doc 04, generated from schema.ts.

Part C: Documentation and developer portal UI

Part C specifies the documentation and developer portal that lives on the Thinklio marketing site (not the authenticated app). Two experiences share a layout system and a unified schema:

  • /docs: user documentation for end users, team members, and administrators.
  • /developer: developer documentation with API references, code examples, and integration guides.

The developer variant adds a two-column layout with a code panel on the right and endpoint cards in the content stream. Everything is driven from the same schema; the developer-only surfaces are optional extensions.

1. Overview

The portal is built on the same Next.js App Router codebase as the rest of thinklio.ai. All documentation components live under src/components/docs/. The initial implementation uses local TypeScript data files that mirror the database schema exactly, so the migration to the production backend is a pure data-loading change (see section 7).

2. Data model

A unified schema supports both documentation types. The same tables serve user docs and developer docs, differentiated by a doc_type discriminator. The schema below shows the Postgres reference (how it was first designed); in the Convex + Clerk architecture, these tables are defined in convex/schema.ts with equivalent shape (string unions replace Postgres enums, v.id("doc_section") replaces UUID foreign keys, system fields _id and _creationTime replace manual id / created_at columns). See 04-data-model.md for the canonical Convex form.

2.1 Tables

doc_section: top-level navigation groups.

  • id (PK)
  • doc_type (enum: user, developer)
  • slug (text, unique per doc_type)
  • title (text)
  • description (text, nullable)
  • icon (text, nullable; Phosphor icon component name)
  • sort_order (int)
  • status (enum: draft, published, coming_soon, beta, deprecated)

doc_page: individual pages within a section.

  • id (PK)
  • section_id (FK → doc_section)
  • slug (text, unique per section)
  • title (text)
  • description (text, nullable)
  • content (text; markdown)
  • audience (text array; for example, ['individual', 'team', 'admin'])
  • sort_order (int)
  • status (enum)

api_endpoint: API endpoint definitions (developer docs only).

  • id (PK)
  • page_id (FK → doc_page)
  • method (enum: GET, POST, PUT, PATCH, DELETE)
  • path (text; for example, /v1/channels/{channel_id}/messages)
  • summary (text)
  • description (text, nullable; markdown)
  • request_body (JSON, nullable)
  • parameters (JSON, nullable; array of { name, in, type, required, description })
  • response_body (JSON, nullable)
  • status (enum)
  • sort_order (int)

api_code_example: code examples per endpoint, one row per language.

  • id (PK)
  • endpoint_id (FK → api_endpoint)
  • language (text: curl, python, typescript, go)
  • label (text; display label, for example cURL, Python)
  • code (text)
  • sort_order (int)
  • Unique constraint: (endpoint_id, language)

2.2 Reference SQL schema

The reference SQL schema below is preserved for archival completeness. The production deployment uses the equivalent Convex schema definitions.

CREATE TYPE doc_type AS ENUM ('user', 'developer');
CREATE TYPE doc_status AS ENUM ('draft', 'published', 'coming_soon', 'beta', 'deprecated');
CREATE TYPE http_method AS ENUM ('GET', 'POST', 'PUT', 'PATCH', 'DELETE');

CREATE TABLE doc_section (
  id            UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  doc_type      doc_type NOT NULL,
  slug          TEXT NOT NULL,
  title         TEXT NOT NULL,
  description   TEXT,
  icon          TEXT,
  sort_order    INT NOT NULL DEFAULT 0,
  status        doc_status NOT NULL DEFAULT 'published',
  created_at    TIMESTAMPTZ NOT NULL DEFAULT now(),
  updated_at    TIMESTAMPTZ NOT NULL DEFAULT now(),
  UNIQUE (doc_type, slug)
);

CREATE TABLE doc_page (
  id            UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  section_id    UUID NOT NULL REFERENCES doc_section(id) ON DELETE CASCADE,
  slug          TEXT NOT NULL,
  title         TEXT NOT NULL,
  description   TEXT,
  content       TEXT NOT NULL,
  audience      TEXT[],
  sort_order    INT NOT NULL DEFAULT 0,
  status        doc_status NOT NULL DEFAULT 'published',
  created_at    TIMESTAMPTZ NOT NULL DEFAULT now(),
  updated_at    TIMESTAMPTZ NOT NULL DEFAULT now(),
  UNIQUE (section_id, slug)
);

CREATE TABLE api_endpoint (
  id            UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  page_id       UUID NOT NULL REFERENCES doc_page(id) ON DELETE CASCADE,
  method        http_method NOT NULL,
  path          TEXT NOT NULL,
  summary       TEXT NOT NULL,
  description   TEXT,
  request_body  JSONB,
  parameters    JSONB,
  response_body JSONB,
  status        doc_status NOT NULL DEFAULT 'published',
  sort_order    INT NOT NULL DEFAULT 0,
  created_at    TIMESTAMPTZ NOT NULL DEFAULT now(),
  updated_at    TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE TABLE api_code_example (
  id            UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  endpoint_id   UUID NOT NULL REFERENCES api_endpoint(id) ON DELETE CASCADE,
  language      TEXT NOT NULL,
  label         TEXT NOT NULL,
  code          TEXT NOT NULL,
  sort_order    INT NOT NULL DEFAULT 0,
  UNIQUE (endpoint_id, language)
);

CREATE INDEX idx_doc_section_type ON doc_section(doc_type, sort_order);
CREATE INDEX idx_doc_page_section ON doc_page(section_id, sort_order);
CREATE INDEX idx_api_endpoint_page ON api_endpoint(page_id, sort_order);
CREATE INDEX idx_api_code_example_endpoint ON api_code_example(endpoint_id, sort_order);

2.3 Current implementation (fake data)

The UI currently uses local TypeScript data files that mirror the database schema shape exactly. Migrating to the production backend requires only:

  1. Apply the equivalent Convex schema.
  2. Insert the data from the TypeScript files.
  3. Replace the data imports in src/data/index.ts with Convex queries (useQuery(api.docs.getNavigation), etc.).

Data files:

  • src/data/user-docs.ts: user doc sections and pages (sourced from Part A of this document).
  • src/data/developer-docs.ts: developer doc sections, pages, endpoints, and code examples (sourced from 09-external-api-and-tool-integration.md).
  • src/data/index.ts: unified lookup functions (getNavigation, getPage, getPrevNextPages, and so on).

Type definitions:

  • src/types/docs.ts: TypeScript interfaces matching the schema.

3. UI components

All documentation components live in src/components/docs/.

3.1 Shared components (used by both /docs and /developer)

Component Type Purpose
DocsLayout.tsx Client Layout shell: sidebar + content area + optional right panel
DocsSidebar.tsx Client Collapsible navigation tree. Desktop: fixed 256px sidebar. Mobile: slide-in drawer
DocsBreadcrumb.tsx Server Breadcrumb navigation (Docs > Section > Page)
DocsContent.tsx Server Renders markdown content as styled HTML with a built-in parser
DocsPagination.tsx Server Previous / Next page navigation at the bottom of pages
StatusBadge.tsx Server Renders status badges (Coming Soon, Beta, Deprecated)

3.2 Developer-specific components

Component Type Purpose
CodePanel.tsx Client Right-side code panel with language tabs, syntax highlighting (prism-react-renderer), copy button, sticky positioning
EndpointCard.tsx Client API endpoint display: method badge, path with parameter highlighting, parameters table, request / response schemas
ApiKeyPlaceholder.tsx Client Styled API key display with masking and copy button

3.3 Layout architecture

┌──────────────────────────────────────────────────────┐
│ Header (from root layout)                             │
├──────────┬───────────────────────┬───────────────────┤
│ Sidebar  │  Content Area         │  Code Panel       │
│ (256px)  │  (flex-1)             │  (developer only) │
│          │                       │  dark bg, sticky   │
│ fixed    │  Breadcrumb           │  language tabs     │
│ left     │  Page title           │  syntax highlight  │
│          │  Prose content        │  copy button       │
│          │  Endpoint cards       │  API key inject    │
│          │  Prev/Next nav        │                    │
├──────────┴───────────────────────┴───────────────────┤
│ Footer (from root layout)                             │
└──────────────────────────────────────────────────────┘

Mobile: sidebar collapses to a hamburger-triggered drawer. Code panel stacks below content.

4. Route structure

/docs                           → Redirects to first page
/docs/[section]/[page]          → User documentation page

/developer                      → Redirects to first page
/developer/[section]/[page]     → Developer documentation page (with code panel)

Both use Next.js App Router dynamic segments with useParams().

5. User docs content structure

Sourced from Part A of this document (the end-user guide):

Section Pages
Getting Started For Individual Users, For Team Members, For Administrators
Concepts Agents, Agent Composition, Agent Studio, Knowledge, Channels, Tools, Jobs & Deferred Work, Governance
Using Your Agent Chats, Commands, Tips for Better Interactions
Privacy & Data What Your Agent Remembers, What's Private, Your Data Rights
Troubleshooting Common Issues, Getting Help

6. Developer docs content structure

Sourced from 09-external-api-and-tool-integration.md:

Section Status Pages (with endpoints)
Overview Published Introduction, Authentication, Versioning, Error Handling
Channel API Beta Send Message (POST), List Messages (GET), Sessions (POST, GET)
Platform API Coming Soon Agents (GET, POST, GET/:id, PATCH/:id), Jobs (POST, GET/:id), Knowledge (POST, GET), Usage (GET)
Integration API Coming Soon Tool Registration (POST), Tool Execution (contract description), Event Subscriptions (POST)
Cross-Cutting Concerns Published Governance, Cost Attribution

All code examples include cURL, Python, TypeScript, and Go variants with a YOUR_API_KEY placeholder.

7. Backend migration plan

When ready to move from fake data to the production backend:

  1. Apply the Convex schema definitions (section 2.1, adapted from the reference SQL in section 2.2).
  2. Insert the fake data (scriptable from the TypeScript data files).
  3. Create a data access layer in src/lib/docs/ that calls Convex queries instead of reading local files.
  4. Update src/data/index.ts to re-export the Convex-backed access layer.
  5. The component layer requires no changes: it consumes the same TypeScript interfaces regardless of data source.

8. Design decisions

Why a built-in markdown parser instead of a library? The content is authored by us, not user-generated. A simple parser handles the patterns we use (headings, lists, bold, inline code, paragraphs) without adding a dependency or processing overhead. If content complexity grows, a library like react-markdown can replace it.

Why fake data files instead of MDX? The data files mirror the exact shape of the database tables. This means the migration to the production backend is a data insertion exercise, not a content format migration. MDX would have required a build-time processing step and a different content authoring workflow.

Why 'use client' on doc pages? The documentation pages use useParams() for dynamic routing and useState for sidebar and code panel interactions. This makes them client components. Metadata is handled via parent layout.tsx files which remain server components.

Why a unified schema for both doc types? Both types share the same structural pattern (sections → pages). The developer variant extends with optional endpoint and code example relations. A single schema avoids duplication and allows shared navigation and lookup logic.

Dependencies added: prism-react-renderer for syntax highlighting in the developer docs code panel.


Part D: Internationalisation

Part D outlines Thinklio's internationalisation (i18n) architecture. It identifies the translation surfaces, proposes a locale resolution model, and flags decisions that need to be settled before a formal specification is written. Frontend marketing-website localisation is out of scope and handled separately.

The source for Part D (old doc 18) was written when Thinklio's backend was expected to be Go + PostgreSQL. The architecture in this part has been editorially translated to the current TypeScript + Convex stack: resource bundles are loaded by the Next.js app and Convex actions rather than by Go services, message formatting uses the platform's native Intl API (supplemented by a catalogue library such as i18next or @formatjs/intl), and data model references use Convex-style singular table names. Decisions, phasing, and the ADR remain unchanged.

1. Target languages

Language BCP 47 Tag Script Notes
English en Latin Platform default. Locale variants (en-AU, en-GB, en-US) supported via regional overrides
Spanish (neutral) es Latin Latin American neutral; avoids Castilian-specific conventions
Brazilian Portuguese pt-BR Latin Not European Portuguese
French fr Latin
German de Latin
Italian it Latin
Japanese ja CJK No plurals. Requires CJK-aware line breaking and text measurement
Korean ko CJK No plurals. Honourifics and formality levels affect agent tone
Simplified Chinese zh-Hans CJK No plurals. Distinct from Traditional Chinese (zh-Hant)

English locale variants share the base en resource bundle, with per-locale overrides for spelling, date format, and currency conventions. The platform default is en. Adding a new language requires a new resource bundle and a registry entry; no code changes.

2. Two translation surfaces

Thinklio has two fundamentally different categories of translatable content, and each needs a different approach.

2.1 Platform strings (deterministic)

These are strings the platform itself produces. They are predictable, finite, and can be translated in advance:

  • Governance messages (policy denials, trust level notifications, approval requests)
  • Budget and cost notifications ("Budget limit reached", usage summaries)
  • Job lifecycle updates ("Your research task has completed")
  • Error responses across all three API surfaces
  • Email notifications (welcome, password reset, usage alerts, job completion)
  • Agent template names and descriptions
  • Tool names and descriptions shown in Agent Studio
  • Plan names and feature descriptions
  • Admin dashboard labels and system messages

These are handled through conventional message catalogues: keyed string bundles per locale, loaded at module startup, resolved at runtime from the request context (on the server) or the user's locale store (in the app).

2.2 Agent responses (generative)

These are the outputs agents produce through LLM reasoning. They are unbounded, context-dependent, and cannot be pre-translated. Instead, the agent's language behaviour is controlled by injecting a locale directive into the system prompt during context assembly.

The LLM handles the actual language generation. The platform's job is to ensure the right locale reaches the system prompt, and that the directive accounts for register and formality conventions appropriate to the language (for example, formal German Sie vs informal du, Japanese keigo levels).

3. Locale resolution

A user's effective locale is resolved through a layered fallback:

Assignment locale  →  User locale  →  Account default locale  →  Platform default (en)

The assignment-level override is important. A user whose personal preference is German might interact with a team agent in English because the team operates in English. The override sits on the agent_assignment entity, keeping the user_profile entity clean.

3.1 Where locale is set

Entity Field Purpose
user_profile locale User's personal language preference (BCP 47 tag, default en)
agent_assignment locale Nullable override for this specific agent context
account default_locale Account default for members who have not set a preference

3.2 Where locale is consumed

Locale resolution happens in one place and flows everywhere else via context. In the Convex architecture, a shared helper (resolveLocale(ctx, { userId, agentAssignmentId })) is called inside the Convex query or mutation that authenticates the request, and the resolved locale is threaded through the return value (for web + mobile) or attached to the outbound message (for channel adapters and background actions).

For the three API surfaces (defined in 09-external-api-and-tool-integration.md):

  • Channel API: resolved from the authenticated user's locale (with assignment override if applicable).
  • Platform API: from Accept-Language header, falling back to the account's default locale.
  • Integration API: from the external system's registration configuration or Accept-Language header.

4. Platform string architecture

4.1 Resource bundles

Client and server use a shared i18n/ package within the monorepo. Messages are formatted via a catalogue library (@formatjs/intl on the client, a Convex-compatible catalogue module on the server) backed by the platform's native Intl API for pluralisation, number, date, and currency formatting.

i18n/
  en.toml          # Base English (complete set)
  en-AU.toml       # Australian English overrides
  en-GB.toml       # British English overrides
  en-US.toml       # American English overrides
  es.toml
  pt-BR.toml
  fr.toml
  de.toml
  it.toml
  ja.toml
  ko.toml
  zh-Hans.toml

Locale variant files (for example, en-AU.toml) contain only the keys that differ from the base language file. At load time, the variant is merged over the base. If a key is missing from both the variant and the base, the platform default (en) is used.

4.2 String key conventions

Keys are namespaced by domain, using dot notation:

[governance]
policy_denied = "This action is not permitted by your organisation's policy."
approval_required = "This action requires approval from {approver_role}."
budget_exceeded = "The {scope} budget of {budget_amount} has been reached."

[jobs]
completed = "Your task \"{job_title}\" has completed."
failed = "Your task \"{job_title}\" could not be completed: {reason}"

Interpolation uses named placeholders. Pluralisation follows CLDR rules (which correctly handle languages with no plural forms, two-form languages, and languages with complex plural rules like Arabic).

4.3 Formatting conventions

Number, date, currency, and measurement formatting must respect locale conventions:

Concern Example variation
Decimal separator 1,234.56 (en) vs 1.234,56 (de) vs 1 234,56 (fr)
Date format 16/03/2026 (en-AU) vs 03/16/2026 (en-US) vs 2026年3月16日 (ja)
Currency $12.50 AUD vs €12,50 vs ¥1,250
Time 2:30 pm (en-AU) vs 14:30 (de) vs 午後2:30 (ja)

These are handled by the Intl.NumberFormat, Intl.DateTimeFormat, and Intl.RelativeTimeFormat APIs, not by string catalogues. All user-facing numbers, dates, and currencies must be rendered via locale-aware formatters.

5. Agent response localisation

5.1 System prompt injection

During the Context step of the harness, the locale directive is assembled and injected into the system prompt. The directive goes beyond a simple "respond in German" instruction. It includes:

  • Target language and regional variant
  • Formality and register guidance appropriate to the language
  • Any account-level language policies (for example, "always use formal register with external users")

The agent's core personality prompt and domain knowledge remain in their authored language (typically English). The LLM handles code-switching between the knowledge language and the response language. This avoids maintaining parallel translations of every agent's configuration. See 03-agent-architecture.md (context assembly) for where the directive is assembled.

5.2 Knowledge layer language handling

Knowledge facts are stored in the language they were expressed in, tagged with a locale field on the knowledge_fact table. There is no automatic translation of stored facts. At context assembly time, the Context service:

  1. Retrieves facts relevant to the query (via vector similarity and scope filtering).
  2. Includes the fact's source locale as metadata.
  3. Allows the LLM to translate as needed when incorporating facts into its response.

This preserves the fidelity of domain-specific content and avoids compounding translation errors in the knowledge layer. The trade-off is that cross-lingual retrieval quality depends on the embedding model's multilingual capability. For initial deployment, this is acceptable. If retrieval quality degrades for CJK languages, a cross-lingual embedding model or query translation step can be introduced later.

5.3 Account knowledge translation

Some organisations will want critical policy documents available in multiple languages (for example, compliance rules that must be precisely rendered, not LLM-paraphrased). The knowledge model supports this through duplicate facts with different locale tags. The Context service prefers facts matching the user's effective locale, falling back to the account's default locale.

This is optional. Most organisations will rely on the LLM to translate policy content at response time, and that will be adequate for the majority of use cases.

6. Data model additions

Table Column Type Notes
user_profile locale string (BCP 47) Default 'en'. Not null
account default_locale string (BCP 47) Default 'en'. Not null
agent_assignment locale string (BCP 47), optional Nullable override. Null means "use user's locale"
knowledge_fact locale string (BCP 47) Language the fact was captured in. Default 'en'. Not null
agent_template locales object Map of locale code to {name, description} for localised template metadata

A supported_locales reference table or application-level registry lists the languages the platform actively supports, used for validation and UI locale pickers. See 04-data-model.md for the canonical Convex definitions.

7. API response pattern

All three API surfaces return both a machine-readable code and a localised human-readable message:

{
  "error": {
    "code": "BUDGET_EXCEEDED",
    "message": "Das Budget von €500,00 für das Team wurde erreicht.",
    "scope": "team",
    "budget_amount": "500.00",
    "currency": "EUR"
  }
}

Clients that handle their own localisation can ignore the message field and build from the code and structured data. Clients that want platform-rendered messages use message directly. This means external integrators are never forced to depend on the platform's translations.

8. CJK considerations

Japanese, Korean, and Simplified Chinese introduce specific concerns beyond translation:

  • No grammatical plurals. The pluralisation system must handle zero-plural languages cleanly (never produce constructions like 1 件のタスク vs 2 件のタスク using English plural logic). Intl.PluralRules and CLDR rules handle this correctly.
  • Text length variance. CJK translations are often significantly shorter than English equivalents. UI layouts (Agent Studio, admin dashboard) must not assume English string lengths.
  • Formality registers. Japanese has multiple politeness levels (keigo). Korean has formal/informal speech levels (존댓말 / 반말). Agent system prompt directives must account for this, and account-level policies may specify required formality.
  • Input method considerations. Search and filtering in Agent Studio and the admin dashboard must handle CJK input correctly (no assumption of space-delimited words).
  • Character encoding. UTF-8 throughout (already the Node and Convex default). No special action needed, but this should be validated in the test matrix.

9. Phasing

The i18n infrastructure should be threaded through the platform from Phase 1. Retrofitting locale propagation into an existing codebase is substantially more expensive than building it in from the start.

9.1 Phase 1 (Foundation and Single Agent)

  • locale column on user_profile table
  • Locale resolution helper callable from every Convex function
  • Locale propagation through return values / messages to every client
  • i18n package scaffolded with English string extraction (no hardcoded user-facing strings)
  • System prompt locale directive in the context assembler
  • locale column on knowledge_fact

All user-facing strings are written as catalogue lookups from day one, even though only the English bundle exists initially.

9.2 Phase 3 (Multi-Tenancy)

  • default_locale on account
  • locale override on agent_assignment
  • Locale-aware knowledge retrieval (prefer matching locale)
  • locales map on agent_template

9.3 Phase 5 (API and Channels)

  • Localised API error responses across all three surfaces
  • Accept-Language handling for Platform and Integration APIs
  • Locale negotiation documentation in API contracts

9.4 Post-launch (Translation)

  • Professional translation of resource bundles into target languages
  • CJK-specific testing pass (text rendering, search, formality)
  • Community or machine-assisted translation pipeline for ongoing string additions

10. Open questions

These need resolution before or during the formal specification.

Q1: Should agent personality prompts be translatable? Currently proposed as English-only with LLM code-switching. Some builders may want to author personality prompts directly in the target language for better tonal control. Do we support per-locale personality prompt variants on the agent entity?

Q2: How do we handle language in delegation chains? If Agent A operates in German and delegates to Agent B, does Agent B inherit the German locale, or use its own default? The current proposal (locale in context) would pass it through, but this may not always be desirable.

Q3: Cross-lingual knowledge retrieval quality. Is the default embedding model adequate for cross-lingual similarity search, or do we need a dedicated multilingual embedding model (for example, multilingual-e5-large) from the outset?

Q4: Right-to-left language support. Arabic and Hebrew are not in the initial target list, but should the data model and string infrastructure be designed to accommodate RTL from the start? The marginal cost is low if addressed now.

Q5: Translation workflow. What is the process for translating resource bundles? Professional translation, machine translation with human review, or community contribution? This affects file format choices and tooling.

Q6: Locale in audit trails. Should audit log entries record the locale in effect at the time of the event? This would allow organisations to verify that agents responded in the expected language, which may matter for compliance in regulated industries.

11. ADR-017

ADR-017: Internationalisation architecture and locale resolution.

User locale stored as BCP 47 tag with assignment-level override. Resolution order: assignment → user → account → platform default (en). Platform strings handled via a catalogue library over the platform's native Intl API, loaded at module startup. Agent responses localised via system prompt locale directive during context assembly. Knowledge facts tagged with source locale; no mandatory multi-language duplication of knowledge. Locale resolved by a shared helper and propagated through context and message payloads. Infrastructure built from Phase 1; translations delivered post-launch. Nine languages at launch: English (with locale variants), Spanish, Brazilian Portuguese, French, German, Italian, Japanese, Korean, and Simplified Chinese.


References

  • End-user guide source and publication: Part A of this document is the canonical end-user guide. It is the content source for the /docs portal described in Part C.
  • App UI contract: 02-system-architecture.md (service topology and identity), 11-convex-reference.md (Convex React client patterns, schemas), 07-security-governance.md (Clerk integration, role model, permission gates), 12-developer-guide.md (Convex + Clerk setup, environment configuration).
  • Data model: 04-data-model.md for user_profile, account, account_user, team, team_member, agent, agent_assignment, agent_template, knowledge_fact, notification, doc_section, doc_page, api_endpoint, api_code_example, and related tables.
  • Agent behaviour: 03-agent-architecture.md for context assembly, system prompt construction, delegation mechanics, job lifecycle surfaced in the activity page.
  • External APIs: 09-external-api-and-tool-integration.md for the Channel, Platform, and Integration API contracts used by both the developer portal (Part C) and the i18n response pattern (Part D section 7).
  • Agents catalogue and platform services: 08-agents-catalogue-and-platform-services.md for the service registry (OpenRouter, Voyage AI, Postmark, and so on) surfaced in Settings > Account > Services & Keys.
  • Governance policy framework: 07-security-governance.md Part B for the policies the briefing, activity, audit, and policies pages render.
  • Pricing and credits: 01-product-and-strategy.md (pricing tiers) for the model surfaced in Subscription & Billing.

Revision history

Version Date Change
1.1.0 2026-11-04 Part B (the app UI specification) replaced by pointers to the shell proposal, its plans, the shared design system, the kit, doc 07 and Help, where the built app is described. Part A marked as background: Help is the end-user guide.
1.0.0 2026-04-16 Initial consolidated release. Supersedes pre-consolidation docs 12 (User Guide v02), 18 (Internationalisation v02), 23 (App UI Specification v03), 29 (Docs & Developer UI v01). Editorially updated to the Convex + Clerk architecture: Supabase Auth replaced with Clerk throughout Part B; REST endpoint examples replaced with Convex query / mutation / action calls (functional surface unchanged); TanStack React Query replaced with Convex React client; Go + golang.org/x/text i18n stack replaced with TypeScript + Intl + a catalogue library; Postgres reference schemas preserved in Part C for archival, with Convex form documented alongside; table names normalised to singular (doc_section, api_endpoint, user_profile, agent_assignment, knowledge_fact); cross-references retargeted to the 14-document canonical set. No content loss beyond renumbering, sentence-case normalisation, and the stack-migration edits called out above.