Connect your own database (Supabase) to an AI-made app
Made a registration, booking or sign-up app with ChatGPT, Claude or Gemini? Save what people submit in your own free Supabase database, step by step, without editing code.
Some websites need to save what people fill in: a prayer-chain registration, event sign-ups, bookings, a members list. If your AI (ChatGPT, Claude, Gemini…) wrote the code to save into Supabase, you connect your own Supabase project once, and every submission is saved there, in your account. Supabase is free to start.
Seeing “not connected to a cloud database” or “configure the backend settings” on your website? That message comes from your website’s own code: its Supabase settings are still placeholders (YOUR_SUPABASE_URL…). Until you finish these steps, nothing people submit is saved, so don’t share the link for registrations yet.
1. Get code that can be connected
If you’re still building it, add this to what you ask your AI, so it writes the settings the way Vertlio can fill in. In Vertlio you also find it in Settings → Your own database (Supabase) → The prompt to give your AI.
const SUPABASE_URL = 'YOUR_SUPABASE_URL';
const SUPABASE_ANON_KEY = 'YOUR_SUPABASE_ANON_KEY';
const supabase = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY);Put the code on Vertlio as usual (paste it, Import, or Update/Redo website in the editor). Keep the SQL your AI gave you: you need it in step 3.
2. Create a free Supabase project
- 1Go to supabase.com and sign up (with GitHub or your email).
- 2Click New project. Name it (e.g. "Prayer chain"), set a database password (save it somewhere safe), and choose the region closest to your users (for Nigeria: West EU (Ireland) or Central EU (Frankfurt)).
- 3Click Create new project and wait a minute or two until it’s ready.
3. Create the tables (paste the SQL)
- 1In your project, open SQL Editor in the left menu.
- 2Click New query, paste the SQL your AI gave you, and click Run. It should say Success.
- 3Open Table Editor: your tables are there (e.g. registrations), empty for now.
Security: the SQL must switch on Row Level Security for every table, with rules that only allow what the page needs (for example, anyone may add a registration, nobody may read other people’s). If your AI’s SQL doesn’t mention “enable row level security”, ask it: “Add Row Level Security and safe policies to this SQL.”
4. Copy two things from Supabase
- 1Click Connect at the top of the project (or Project Settings → API Keys).
- 2Copy the Project URL, like https://abcdefghijklmnopqrst.supabase.co.
- 3Copy the public key: the anon public key (a long text starting with eyJ) or the Publishable key (starts with sb_publishable_).
Never use the service_role or Secret key in a website: anyone could read and delete your whole database. Vertlio refuses it if you paste it by mistake.
5. Connect it in Vertlio
- 1In your dashboard, open the website, then Settings → Your own database (Supabase).
- 2Paste the Project URL and the public key, and click Connect.
- 3Vertlio checks the key works for that project, then puts both into your website’s code (every page, and the live website if it’s published). The version before is kept: Update/Redo website → Go back to it brings it back.
6. Test it
- 1Open your website and submit the form once with your own details.
- 2In Supabase, open Table Editor: your entry is there.
- 3To download everything later: Table Editor → your table → Export → CSV (opens in Excel or Google Sheets).
If something doesn’t work
| What you see | What to do |
|---|---|
| “We couldn’t find Supabase settings in this website’s code” | Your code doesn’t have SUPABASE_URL and an anon key. Ask your AI with the prompt in step 1, and paste the new code with Update/Redo website. |
| “This key isn’t for that project” | Copy the Project URL and the key from the same project (Connect, or Project Settings → API Keys). |
| The form says it was sent, but nothing is in the table | Usually a Row Level Security rule blocks it. Ask your AI: “My insert into Supabase is blocked by RLS. Give me the policy that lets anyone insert into this table.” Run it in the SQL Editor. |
| It stopped working after a few weeks | Supabase pauses free projects after a week without visits. Open the project and click Restore. |
Building a booking, ticket, inventory or membership app? Vertlio’s ready-made apps (coming soon) save data for you with no database to set up. Ask Darasimi, the assistant in the corner, if you’re not sure which to use.