Architecture Overview
How the pieces you build with fit together: your Base, the apps it hosts, the data they share, and the APIs, SDKs, workflows and bots around them.
How the pieces you build with fit together. Read What is Oalo first for the plain-language version.
The shape
Your workspace runs on its own server, its Base. The Base hosts your apps (web, mobile backends and servers) and runs everything Oalo adds around them: your data models, bots, workflows, dashboards and channels.
Everything reads and writes one set of data. An app, the dashboard, a bot and a workflow that look at the same contact or order see the same row.
Your code reaches that data and those services through public surfaces only:
| You want to | Use |
|---|---|
| Keep data on a device, offline-first and live | The sync SDKs (TypeScript and Dart). See Sync overview |
| Read and write data from your server | The Sync REST API. See Sync REST API |
| Use plain SQL from a server app | The app's DATABASE_URL. See App environment |
| Tell workflows something happened | POST /api/events/v1. See App events |
| Run a workflow and get its answer | POST /api/workflows/v1/<name>/run. See Calling a workflow |
| Let a bot call your server | App tools in .oalo/app.json. See App tools |
| Drive a bot from your backend | The Conversations API. See Conversations API |
| Put a bot on a web page | The chat widget. See Chat widget |
| Build and deploy from a terminal or an agent | The oalo CLI and MCP. See Tokens and credentials |
App types
| Type | What it is |
|---|---|
| React | Web app (the default) |
| Flutter | Native iOS and Android |
| Expo | React Native mobile app |
| Server | A backend in almost any language, started from a Procfile |
| Figma import | A React app started from a Figma design |
Or bring a repo you already have: oalo deploy --new works out its type. See
Bring your repo.
A bot is not an app type. A bot (persona, flows, tools, knowledge) can answer inside any app and on any channel.
The capabilities
- Hosting. Previews and production per app, releases with no gap, rollback, sizes, logs, custom domains. See Live server apps.
- Data and sync. Your data models, offline-first sync to devices, the REST API, CSV import and data sources that accept posted rows. See Data models and Data sources.
- Auth. Email one-time-code sign-in for your app's users, one account per email across every app in the workspace, and a token exchange for your own sign-in. See Auth.
- Workflows. Graphs of AI steps, plain steps and tools, started by events, schedules, dates, forms or an app call. See Starting and chaining flows and loops.
- Bots. Persona, knowledge base, flows, guardrails, tools, a choice of model. See Building a chatbot.
- Channels and inbox. Web chat, WhatsApp, Instagram, email and SMS in one inbox, with human takeover. See Inbox.
- Commerce. Stripe, PayPal, App Store and Google Play payments, checkout, and content locked to what a user bought. See Commerce.
- CRM and events. Contacts, segments and a timeline, plus the events that start workflows. See CRM.
- Email, marketing, dashboards and reports. See Email, Marketing, Dashboards and Reports.
Isolation
- Your own Base. Your apps, data, bots and workflows run on your workspace's own server, not one shared with other workspaces.
- Preview and production. Your data is split into a preview view (
dev) and a production view (prod). Previews update as you build; production changes only when you publish. - Addresses. Every app address is one label under
oalo.ai(<slug>-<workspace>.oalo.ai, withdev-in front for the preview). Attach your own domain to production.
Words that matter in the APIs
- Workspace. Your account and team. Its id appears as
org_idin some responses. - App. Something you host, named by its
slug. - Bot. An assistant, named by its public id (
bot_...). - End user. A person using your app or talking to your bot. Your own id
for them is their
external_ref.
One trap: in the sync and privacy APIs, member means an end user of your app, not someone on your team. Say "end user" when you mean your app's audience and "workspace member" when you mean your team.
How a request flows (an example)
A signed-in end user opens a premium screen:
- The app reads from its local database first, so the screen paints instantly.
- The sync client pulls anything newer for that screen.
- The Base checks the user's token. Their auth identity carries their
commerce entitlements (
has_pro, purchased products). - Premium rows arrive in full only if the entitlement allows. Otherwise the app gets a stripped preview and shows a paywall.
- If the user buys, the token refreshes with the new entitlement and sync pulls the now-unlocked content.
That one path touches sync, auth and commerce at once, which is why they are documented together.
Sign up, install the CLI, and deploy your repo in a few minutes.