Every Botflow project that uses the Web or Universal template comes with Convex as its backend. Convex gives your app a typed database, reactive queries, serverless functions, scheduled jobs, and file storage — all defined in TypeScript alongside your frontend code.Documentation Index
Fetch the complete documentation index at: https://botflow.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.
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 (or EXPO_PUBLIC_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 (or EXPO_PUBLIC_CONVEX_URL for mobile) when generating Convex client code.
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: