Dev and prod (staging and live)
Dev (staging) and prod (live): what each part of Oalo uses, what publishing a bot changes, how rows move from dev to prod, and how to go back.
Every workspace has two environments:
- dev is staging: a sandbox where you build and test.
- prod is live: what your customers, your live apps and your published bots see.
Most surprises ("the bot can't find what I just added", "my chart shows nothing") come from setting something up in one and looking in the other. This page says which one each part of Oalo uses.
What has two copies
These are kept once per environment, so dev and prod can differ:
- Data tables and their rows. A model has a dev copy and a prod copy with the same fields. Rows you add to one are not in the other until you promote them (see Moving data from dev to prod).
- Booking data: appointment types, available hours and appointments.
- An app's variables, logs and releases. The app's preview runs on dev and its live release on prod, each with its own variables (see App environment variables).
These have one copy, shared by both:
- Flows, loops and code tools. There is no staging version of a flow or a loop: a saved one is live, and one that is on runs for real. Oalo keeps no older versions of them (see Going back).
- A bot's settings: its instructions, model and tools. A bot has no draft copy of them, so a change to a published bot reaches live chats at once. Only the data it reads changes with its status.
- Contacts and events. A contact or an event is not in dev or prod; it is just in the workspace.
- A bot's own knowledge base (its documents). Documents are live once indexed.
Which copy a bot uses
A bot's status picks its environment:
- A draft (unpublished) bot reads and writes dev. It searches the dev copy of your tables and finds slots and books against dev booking data.
- A published bot uses prod.
This holds in every conversation, test conversations included. A test of a published bot reads and writes live data; a test of a draft bot reads and writes staging data. So:
- To test a draft bot, load its tables and its booking types and hours in dev.
- Before you publish it, make sure the same data is in prod, or promote it.
- A draft bot that "can't find" rows you loaded live is looking in dev. Load the rows into dev too, or publish the bot.
Bookings are dev data, but what a booking sets off is not. A draft bot's test
booking fires a real appointment.booked event (events have one copy), so a
workflow listening for it runs for real, on prod data, where that appointment
isn't. Turn such a workflow off while you test a draft bot's bookings.
Booking setup has its own switch. The booking setup actions take "env": "dev" or "env": "prod", and use prod when you leave it out. A draft bot only
sees types and hours added with "env": "dev" (see
Business kits).
What publishing a bot changes
Publishing switches which copy the bot reads. It copies no data and changes no setting. In practice:
- The same question can get a new answer the moment you publish, in the preview too. A draft that quoted the price in your dev table quotes the prod price once published. Promote the table first if they differ.
- Only a published bot opens a chat with customers. The web chat on your site and the channels (WhatsApp, Instagram, SMS) need it published. A site that embeds a draft bot shows the chat bubble, but the chat doesn't open.
- Test chats are not customer chats. The dashboard preview and
oalo qastay out of the inbox and don't fireconversation.started, published bot or not. A real web chat does both. - Unpublishing puts the bot back on dev, and its web chat stops opening. Its settings stay as they are.
To change a published bot safely: oalo bots settings <bot> set ... shows a
published bot's change and asks for --yes before saving it. For a flow, turn
it off (oalo flows off <bot> <flow>), save it, test it with oalo qa <bot> --flow <flow> "..." (which starts it even while it's off), then turn it on.
Which copy tests and loops use
- Testing a loop (Try it in the editor,
oalo loops test) always runs on dev data, and steps that send messages or change records are simulated. - A loop's real runs, started by its trigger or its schedule, run on
prod. Firing an event by hand to test a trigger (
oalo emit) is a real event, so the loops it starts run on prod too. - Starting a loop by hand (
oalo run loop) runs on the environment you pass with--env. - An app's preview is locked to dev: its events and workflow calls are test runs on dev data. The live app's are real runs on prod.
Which copy charts and numbers use
A chart or a number over a model counts prod rows unless you ask for dev.
Rows written by tests and draft bots are in dev, so to see them, pass --env dev to oalo metrics or oalo dashboards add (or "env": "dev" in the
query). Charts over events and contacts count everything, since those have one
copy. An app's own charts count the environment of the app's token: its
preview counts dev.
Moving data from dev to prod
Build and load data in dev, check it, then promote the table: oalo data promote <table> (or Migrate to prod in the Data panel, or the Data API's
promote call) copies its rows from dev to prod in the background, usually
within seconds. Promote only when you want the data live: live apps and
published bots see it as it lands. What it does to each row:
- A row only in dev is added to prod, with its access (free, draft, or gated to a product).
- A row in both gets dev's fields. It keeps its prod access, so a gate you set on prod alone survives a promote. Change a live row's access in prod.
- A row deleted in prod but still in dev comes back.
- A row deleted in dev is not deleted in prod. Delete it in prod too.
- A row only in prod (one a live app or a customer wrote) is left alone.
A promote is a write to prod like any other: rows whose fields changed fire
data.<table>.updated (and new rows .created) when those row events are on,
and the workflows on them run. A conversation already open may keep quoting
what it said before; a new one reads the new rows.
Going back
Oalo keeps no history of a bot's settings, a flow, a loop or a table's rows. What there is:
- A bot: unpublish it to take it off prod. Its settings have no older versions: note what you change.
- Flows and loops: keep them as files in git.
oalo pullwrites them to.oalo/; commit after each change you push. To go back, restore the earlier file and runoalo push <file> --force. The file still carries the version it was pulled at, so a plain push calls it unchanged. - Rows: set them back in dev and promote again, or edit them in prod. Before
a bigger change, take a copy with
oalo db dump --env prodto restore from (oalo db restore). - An app's live release:
oalo deploy --rollback(see Live server apps).
The CLI and the environment
The oalo CLI keeps a default environment per project, env in
.oalo/config.json, set by oalo link --env dev|prod (default dev). Some
commands follow it; others always use one environment:
| Command | Environment |
|---|---|
oalo data (list, get, watch, push, delete) | --env, else the project's, else dev. Writing prod needs --env prod typed out. |
oalo data models create | Makes the model in both. |
oalo data promote | Copies rows dev to prod. |
oalo db query, oalo db tables | --env, else the project's, else dev. |
oalo db dump | --env, default prod. |
oalo db restore | --env is required. |
oalo deploy | dev (the preview) by default; --env prod for the live release. |
oalo env, oalo logs | --env, else the project's, else dev. Changing prod variables needs --env prod. |
oalo run loop | --env, else the project's, else dev. |
oalo loops test | Always dev. |
oalo emit | The loops it fires run on prod. |
oalo qa, oalo run bot | The bot's own: dev for a draft, prod when published. |
oalo metrics, oalo dashboards add | A model's rows in prod unless --env dev. |
oalo sources create | Rows go to prod unless --env dev. |
oalo migrate --apply | Sets prod variables. |
oalo help <command> starts with an Env: line saying what that command
uses. The MCP tools never read the project's default: pass env in each call.
When it matters, pass the environment every time instead of relying on a
default.
For your own server calling the Sync API, a request without ?env= uses prod,
and a token made with env:dev or env:prod is locked to that one (see
Tokens and credentials and
Sync REST API).
How to define your own data tables in Oalo, import a CSV, stage and promote data, and push data in from another system through the Data API.
Build an Oalo chatbot end to end: pick a starting persona, give it knowledge, tune how it retrieves, guard what it says, and choose its model.
The ready-made kits (booking, reviews, documents, referrals, pipeline, courses, fitness) and what installing one adds: data, actions, automations, events.
Give an app its API keys and settings with oalo env, per env: what is secret, what each kind of app gets, its own token and database, and when changes apply.
Read and write your workspace's data from your own server over HTTP: rows, environments, tokens, bulk writes, the live stream, limits, and mirroring.
Take rows or documents from another system: a source gives it an address to post JSON, NDJSON or CSV to, and keeps only the fields you choose.
Charts over your data models, events and contacts, saved as dashboards in the workspace or on an app, and the same query for an app's own charts.
The six kinds of credential in Oalo, what each one is for, how to create it, and which ones are safe to put in an app.
The kinds of app you can host on Oalo, how to create one, preview versus production URLs, what comes built in, and how a native mobile build ships.
Your own Base, with every feature, from $99 a month.