What Convex gives you
- Real-time database — a document store where data changes stream to connected clients the moment they happen. No polling, no manual cache invalidation.
- Typed queries and mutations — reads and writes are TypeScript functions (
query,mutation). Call them from React withuseQueryanduseMutation. - Actions — async server-side functions that can call external APIs, send emails, or do anything you can’t do in a pure query.
- HTTP endpoints — expose individual functions as REST endpoints for webhooks and third-party integrations.
- Scheduled jobs — run a function on a recurring cron schedule or delay it to a specific time.
- File storage — upload, store, and serve files through the same TypeScript API.
Projects without a backend
Not every app needs a database. When you create a project you can choose No Backend — a frontend-only app (a landing page, a marketing site, a calculator, a client-side tool) with no Convex deployment at all. In a frontend-only project:- There’s no
convex/folder and no Database tab. - Features that depend on the backend — Authentication, Payments, and the data tools above — aren’t available.
- The agent won’t pull in Convex packages, so the app stays lean and purely client-side.
Accessing the database in the workspace
Click the Database tab at the top of the workspace to open the embedded Convex dashboard. From here you can:- Browse tables — see all documents in every table, paginated
- Run queries — call any query or mutation function with custom arguments
- Inspect logs — view real-time function execution logs
- Manage scheduled jobs — see pending and past cron jobs
- View the schema — inspect the current
schema.tsdefinition
The Database tab shows the real Convex dashboard embedded in an iframe. Any changes you make here are immediately reflected in your live app.
How Convex is wired up per plan
| Plan | What you get |
|---|---|
| Free | Bring your own Convex account. Connect it in Settings → Connections and Botflow injects VITE_CONVEX_URL automatically. |
| Pro | A platform-managed Convex deployment per project. No setup needed — just build. |
| Max | Same as Pro, with higher function limits and priority support. |
Connecting your own Convex (Free plan)
- Go to dashboard.convex.dev and create a free Convex account.
- Create a new deployment in the Convex dashboard.
- In Botflow, go to Settings → Connections and click Connect Convex.
- Paste your Convex deployment URL.
VITE_CONVEX_URL). The AI agent automatically uses this variable when generating Convex client code.
After connecting Convex, the Database tab becomes available in your workspace. See Workspace → Database for details on using the Convex dashboard.
Editing data through the agent
Beyond writing functions, the AI agent can work with your database directly — handy for seeding sample data, debugging, or one-off fixes without building a UI for them. Just ask:Writing Convex code
Convex schema, queries, mutations, and actions live in theconvex/ directory of your project. The AI agent writes and edits these files like any other source file.
A typical Convex file structure:
convex/tasks.ts: