Lesson 13 · How web apps workAdd AI to your website
Building with AI isn’t the same as your site having AI.
3Edit uses AI to build your website, but a live AI feature, such as an assistant that answers your visitors and helps them book, needs its own AI key, paid for by the site owner. Learn the difference, the simple route with the Ecommerce starter kit, and an advanced option.
About 8 minutes to readLast updated
On this page
Two different jobs for AI
When you build in 3Edit, AI does the building: you describe what you want, and an AI coding agent writes the code. That happens while you build, in your project, and your visitors never see it.
Your finished site doesn’t have AI just because AI built it. It is ordinary website code, just like a site written by hand. For your site to have AI, such as an assistant that chats with your visitors, the site itself needs its own connection to an AI provider.
| Building with AI | Your site having AI | |
|---|---|---|
| Who talks to the AI | You, while you build | Your visitors, on the live site |
| When it works | While you build in 3Edit | Each time a visitor uses the feature |
| What it needs | Your 3Edit plan | Its own AI API key, from an AI provider |
| Who pays | You, through your 3Edit plan | The site owner, to their AI provider |
Example: an AI receptionist
Picture Fade & Co, a fictional barber shop, with an AI assistant on its website. A visitor asks whether there is anything free on Saturday morning, and the assistant answers, explains the services and helps them book.
Every reply comes from an AI provider’s model, and every reply is paid for. That’s why the feature needs its own key: it tells the provider whose account each chat belongs to. It works like any other API key, as Keys, server routes and keeping secrets safe explains.
AI providers include OpenAI, Anthropic and Google. Each has its own models, prices and terms, set out on its own website.
The simple route in 3Edit
The Ecommerce starter kit already includes bookings and an AI assistant, ready to switch on.
- Start from the kitStart a project from the Ecommerce starter kit and connect your Supabase.
- Make it a booking siteAsk 3Edit in the chat to make it a booking site for your business.
- Switch them onIn the store admin, open Store Settings and switch on Bookings and AI assistant.
- Add your keyOpen Settings → AI Assistant, enter your AI provider’s key and press Save settings.
The switches and settings
Store Settings has three switches: Online shop, Bookings and AI assistant. Switching one off hides it without deleting anything, so you can switch it back on whenever you like.
Booking Settings lets you choose Request then confirm, where you confirm each booking yourself, or Instant confirmed, where each booking is confirmed straight away. You can also add optional online booking fees.
The AI Assistant page has Provider, Model, Base URL, API key and Enabled, with Save settings. It also has Business context, where you describe your business for the assistant, and usage limits: Daily messages and Per-IP hourly.
Who pays, and keeping costs in check
- The site owner pays the AI provider for the assistant’s chats, on the owner’s own account with that provider.
- Set the usage limits: Daily messages and Per-IP hourly keep a busy day, or one visitor sending message after message, within the budget you choose.
- Keep the key secret: it goes in the API key box on the AI Assistant page, never in a page, a prompt or a chat message.
- Give it your real facts: use Business context for your real services, prices and opening hours, so its answers match your business.
- Try it before you launch: ask it the questions your customers ask, and check every answer.
Advanced: run your own open-source model
Some builders run an open-source AI model themselves, for example on Runpod, a cloud service that rents out computers made for AI. The model then has its own API, at an address you control, instead of a provider’s.
It gives you more control, and you look after the server, the model, its updates and its costs yourself. It is a route for experienced builders, or with a developer’s help. For most businesses, a key from an established AI provider is the simple choice.
Try it in 3Edit.
These prompts turn the Ecommerce starter kit into a booking site for Fade & Co, a fictional barber shop. Start a project from the kit, as the starter kit guide shows, connect your Supabase, and read How a website or web app is built for the areas a booking site needs. Your AI provider’s key goes in Settings → AI Assistant, never in a prompt.
The businesses in these prompts are fictional practice examples. When you build for a real business, only ever show real reviews from real customers: invented reviews mislead customers and are against UK consumer law.
- 1Make it a booking site
Make this store a booking site for Fade & Co, a barber shop in Leeds with three barbers. Services: skin fade £22, beard trim £12, cut and beard £30. Open Tuesday to Saturday, 9:00 to 18:00. Make booking the main action, and keep the customer area and the admin area.
- 2Explain the switches
Explain, in plain words, what the Online shop, Bookings and AI assistant switches in Store Settings do on this site, and what a visitor sees when each one is off. Don’t change anything.
- 3Business context
Write a short business context for Fade & Co’s AI assistant: the services and prices, the opening hours, how booking works, and to suggest booking when someone asks about times. Keep it under 120 words, and use only the facts in this chat.
Paste the result into Business context on the AI Assistant page, then press Save settings.
Then open the store admin, switch on Bookings and AI assistant in Store Settings, enter your AI provider’s key in Settings → AI Assistant and set the usage limits. Ask the assistant five questions a real customer would ask, and check each answer.
Do it step by step.
This lesson explains the what, the why and the when. These guides and pages show every click.
- Choose the Ecommerce starter kitStart from the kit that already includes bookings and an AI assistant, ready to switch on.Read the guide
- Open your 3Edit store adminStore Settings and the AI Assistant page are in the store admin. Create your admin account first.Read the guide
- Connect Supabase to 3EditBookings and accounts live in your own Supabase: create your free account, then connect it.Read the guide
- Security basics for vibe-coded appsKeeping secret keys safe, and what to do if one is ever exposed.Read the guide
Words in this lesson
Next: Versions, backups and GitHub
About the author.
Written by Humayun Rashed, founder of 3Edit. He also runs 3Edit’s free in-person AI website building and vibe coding course in London.
Questions people ask.
No. AI writes your site’s code while you build, and the finished site is ordinary website code. For your site to have AI, such as a chat assistant for visitors, it needs its own connection to an AI provider, with its own API key.
The site owner. The assistant uses the owner’s own AI API key, and the owner pays their AI provider for its chats.
A company that runs AI models and offers them through an API, such as OpenAI, Anthropic or Google. You create an account with one, get an API key, and pay for what your site uses.
The simple route: start from the Ecommerce starter kit, ask 3Edit to make it a booking site, switch on Bookings and AI assistant in Store Settings, then enter your AI provider’s key in Settings → AI Assistant and press Save settings.
Set the usage limits on the AI Assistant page, Daily messages and Per-IP hourly, and check your usage on your AI provider’s own account.
No. Switching Online shop, Bookings or AI assistant off in Store Settings hides it without deleting anything.
Start vibe coding today.
Download 3Edit for Mac or Windows and build your first professional website in minutes.