Goal- Create a professional business website, integrate an AI chatbot, capture customer leads and publish your application without purchasing an expensive AI development subscription.
Have you ever wanted to build your own business website with an intelligent chatbot, but did not want to spend money on developers, hosting services or expensive AI application-building platforms?
You can now build surprisingly sophisticated web applications using Google's AI and cloud technologies. By combining Google AI Studio, Gemini, Firebase and Google Cloud, you can create a complete website with an AI chatbot, customer enquiry management and an administrator dashboard.
This article explains how to do it, which tools to use, how to connect them, how to publish your application and how to control operating costs.
Our objective: Build a working business website with an AI chatbot and lead management system, starting with free services wherever possible.
1. What are we going to build?
Imagine you own a coaching institute, consultancy, restaurant, real estate agency or small business.
You want a professional website where visitors can:
Learn about your business.
Explore your products or services.
Ask questions through an AI chatbot.
Submit enquiries.
Provide their contact information.
Receive relevant information instantly.
You also want an administrator dashboard where you can see all enquiries and follow up with prospective customers.
This is what we are going to build.
Proposed application
| Component | Functionality |
|---|---|
| Home page | Introduce the business |
| About Us | Explain the organisation |
| Products / Services | Display offerings |
| FAQ | Answer frequently asked questions |
| AI chatbot | Answer customer questions |
| Lead capture | Collect customer name, phone and enquiry |
| Database | Store enquiries permanently |
| Admin dashboard | View and manage leads |
| Hosting | Make the application publicly accessible |
The result is not just a website. It is a small business application with an intelligent customer-engagement capability.
2. The Google technology stack
Rather than using five or six unrelated platforms, we can use a relatively integrated Google-based architecture.
Here are the technologies involved.
A. Google AI Studio – Your application development environment
Google AI Studio is the starting point.
Its Build mode allows you to describe an application in ordinary English. Google's AI agent then generates the application code and provides a live preview.
You can ask it to build:
Business websites.
Customer portals.
AI chatbots.
Administrative dashboards.
Data-driven applications.
Full-stack web applications.
It supports a React frontend and a Node.js server-side runtime.
It can also help configure Firebase Firestore and Firebase Authentication.
The most useful capability is that you can continue improving the application through natural-language instructions.
B. Gemini API – The intelligence behind your chatbot
Gemini is Google's family of AI models.
Your website chatbot can use the Gemini API to:
Understand customer questions.
Generate conversational answers.
Answer questions based on your business information.
Guide visitors through an enquiry process.
Collect the information needed to create a lead.
You can start with an eligible Gemini API free tier.
You do not need to pay for an AI model subscription just to experiment. However, free access has model, request and rate limits.
C. Firebase – Your database and authentication service
Firebase provides the backend services required by your application.
For our project, two services are particularly important:
Cloud Firestore
A database for storing customer enquiries, lead information and other application records.
Firebase Authentication
A service for managing administrator login and access.
Firebase allows you to start on its Spark no-cost plan without providing payment information for eligible services.
D. Google Cloud Run – Publishing your application
Once your application is ready, you can deploy it using Google Cloud Run.
Cloud Run runs your application on Google's cloud infrastructure and provides a public URL.
It automatically scales according to demand, subject to your configuration and available quotas.
Cloud Run has a monthly free usage allowance, but publishing requires Google Cloud billing setup. Usage beyond free allowances can generate charges.
E. GitHub – Protecting your source code
GitHub is not compulsory, but I strongly recommend using it.
You can:
Maintain a copy of your source code.
Track application changes.
Restore earlier versions.
Work on the application outside AI Studio.
Avoid becoming dependent on one development platform.
3. How do these technologies work together?
The architecture is straightforward.
Application architecture
WEBSITE VISITOR
|
v
PUBLIC BUSINESS WEBSITE
|
+--------+--------+
| |
v v
AI CHATBOT ENQUIRY FORM
| |
v |
GEMINI API |
| |
+--------+--------+
|
v
FIRESTORE DATABASE
|
v
ADMIN DASHBOARD
|
v
BUSINESS FOLLOW-UP
GOOGLE AI STUDIO = DEVELOPMENT
GOOGLE CLOUD RUN = APPLICATION HOSTING
GITHUB = SOURCE CODE MANAGEMENTThe roles are different:
| Technology | Responsibility |
|---|---|
| Google AI Studio | Build and modify the application |
| Gemini API | Generate AI responses |
| Firebase Firestore | Store customer information |
| Firebase Authentication | Secure administrator access |
| Cloud Run | Run the deployed application |
| GitHub | Maintain source code |
An important architectural principle is to keep AI processing separate from personal customer information.
The chatbot should use Gemini to understand and answer questions. Customer names, phone numbers and enquiries should be stored directly in the database through secure application logic.
Do not send unnecessary personal information to the AI model.
4. Step 1 – Start with Google AI Studio
Open:
Sign in using your Google account.
Go to Build mode.
You will see an input area where you can describe the application you want to create.
You can start with a simple instruction:
Build a professional website for a business. Include a home page, about us, services, FAQ and contact page. Use a modern responsive design that works on mobile and desktop. Add a floating AI chatbot button. First create the website structure and show me a preview before implementing the chatbot and database.
Google AI Studio will generate the application and display a preview.
Review the result before asking for additional functionality.
What should you check?
Does the website look professional?
Is the navigation clear?
Does it work on a mobile screen?
Are the business details correct?
Are the pages loading properly?
Do not try to implement everything in one prompt.
Build in stages.
5. Step 2 – Build the AI chatbot using Gemini
Now we need to add intelligence to the website.
The chatbot should be able to answer questions about the business and collect customer enquiries.
For example, a visitor might ask:
What services do you provide?
What are your prices?
Where are you located?
How can I register?
Can someone call me?
The chatbot should answer from approved business information.
It should not invent prices, policies, availability or other facts.
Example chatbot conversation
Customer: What courses do you offer?
Chatbot: We offer Maths and Science coaching for different school levels. Would you like to know more about a particular course?
Customer: What are the fees?
Chatbot: The monthly fee depends on the course. I can help you find the relevant information.
Customer: I am interested in Class 10.
Chatbot: Great! May I have your name and mobile number so our team can contact you?
Customer: My name is Rahul. My number is 9876543210.
Chatbot: Thank you, Rahul. Your enquiry has been recorded. Our team will contact you.
The lead is now available in the database for follow-up.
Prompt to build the chatbot
Add an AI chatbot to the existing website using the Gemini API.
The chatbot should answer customer questions using only the business information and FAQs provided to it.
It should:
Answer questions in friendly, simple language.
Ask relevant follow-up questions.
Collect customer name, mobile number and enquiry.
Validate the mobile number.
Save completed enquiries to Firebase Firestore.
Confirm successful submission.
Politely explain when it does not know an answer.
Do not invent prices, services, policies or business information.
Keep Gemini API calls on the server side. Do not expose API keys in frontend code.
Do not send customer names, mobile numbers or other personal information to Gemini unnecessarily.
Preserve the existing website design and functionality.
6. Step 3 – Set up Firebase Firestore
Now we need a database.
Open:
https://console.firebase.google.com/
Create a new Firebase project.
Give it a meaningful name, such as MyBusinessWebsite.
Enable Cloud Firestore.
Create a collection called leads.
A lead record could contain the following information:
| Field | Example |
|---|---|
| Lead ID | Automatic document ID |
| Customer name | Rahul Sharma |
| Mobile number | 9876543210 |
| Enquiry | Class 10 coaching |
| Source | Website chatbot |
| Date | Submission timestamp |
| Status | New |
| Follow-up | Pending |
When the chatbot collects sufficient information, your application should create a new document in this collection.
Important security requirement: Do not allow anonymous visitors to read all lead records. Only authorised administrators should be able to view them.
Configure Firestore security rules and validate data on the server.
Do not rely only on hiding dashboard screens in the frontend.
7. Step 4 – Add administrator login
Your business will need a secure way to view the enquiries.
Use Firebase Authentication.
Start with Google Sign-in or email/password authentication, depending on the application design.
Create an administrator dashboard with:
| Dashboard item | Purpose |
|---|---|
| Total leads | Overall enquiries |
| New leads | Recently received enquiries |
| Pending follow-up | Customers who need a call |
| Customer name | Identify the lead |
| Mobile number | Contact the customer |
| Enquiry details | Understand the requirement |
| Date | Track when the lead arrived |
| Status | Manage follow-up |
Only authorised administrator accounts should access this dashboard.
Do not create a publicly accessible admin page containing customer records.
8. Step 5 – Publish your application
Once the application has been tested, it is time to publish it.
Google AI Studio provides a publishing workflow to deploy applications to Cloud Run.
Typical steps:
Open the completed application in Google AI Studio.
Review the application and server-side configuration.
Connect or select the Google Cloud project.
Open the Publish option.
Review the deployment and billing information.
Confirm the deployment.
Wait for Cloud Run to create the service.
Open the public application URL.
Test the live website and chatbot.
The deployed application will have a Google-hosted URL.
You can later connect your own domain if required.
Important: Cloud Run deployment involves Google Cloud billing configuration. The Starter Tier currently provides two deployments at no cost for eligible accounts, but this does not mean unlimited hosting or zero charges under every circumstance.
Review the current terms and estimated costs before publishing.
Official deployment guide:
Deploy from AI Studio to Cloud Run
9. Understanding the actual costs
This is probably the most important section for anyone trying to build a website without spending money.
There are two types of free services:
Services that are free within specified usage limits and do not require a payment method.
Services that offer a free usage allowance but require billing to be enabled for deployment or additional usage.
Do not confuse the two.
Cost comparison
| Technology | Free offering | What to watch |
|---|---|---|
| Google AI Studio | Build mode access | AI usage and feature limits |
| Gemini API | Free model usage for eligible models | Rate limits and data-use terms |
| Firebase Firestore | 1 GiB storage; 50,000 reads/day; 20,000 writes/day | Excess usage and paid features |
| Firebase Authentication | No-cost options for common sign-in methods | Phone authentication may cost |
| Firebase Hosting | 10 GB storage and 10 GB/month data transfer | Site can be disabled on Spark if limits are reached |
| Cloud Run | Monthly free compute allowance; eligible Starter Tier deployments | Billing account and usage beyond free limits |
| GitHub | Free repositories | Private repository and collaboration limits depend on plan |
These figures are based on Google's published documentation at the time of writing. Check the official pricing pages before deploying.
What could your monthly bill look like?
| Usage scenario | Expected cost |
|---|---|
| Developing in AI Studio | Can start at ₹0 |
| Small Gemini chatbot within free limits | Can be ₹0 |
| Firestore within Spark free quota | ₹0 |
| Firebase Hosting within Spark free quota | ₹0 |
| Cloud Run within eligible free allowance | May be ₹0 |
| Custom domain | Additional annual cost |
| Gemini paid API usage | Depends on model and tokens |
| Hosting beyond free allowance | Usage-based charges |
For a small pilot, it is possible to operate at zero monthly cost within the applicable free tiers.
However, a zero-cost bill is not guaranteed simply because you select a free tool.
A safer alternative if you do not want to enable billing
If you want to avoid providing payment information altogether, consider this approach:
Build a static website.
Publish it using Firebase Hosting on the Spark plan.
Use a separately hosted chatbot widget such as Botpress, subject to its free conversation limits.
Use its available lead-capture functionality or a separate form service.
This approach is less integrated than a full-stack AI Studio application, but it can be a practical way to start without activating Cloud Run billing.
10. How to control Gemini API costs and protect customer data
A chatbot can become expensive if it sends unnecessarily large prompts or processes too many conversations.
Use these techniques:
Select an eligible free-tier Gemini model.
Keep the chatbot's business knowledge concise.
Do not send the entire conversation history if it is unnecessary.
Avoid repeatedly asking the model the same questions.
Use fixed responses for simple FAQs where appropriate.
Set limits on message length and requests.
Monitor Gemini API usage and rate limits.
There is also an important privacy consideration.
Google's published Gemini API pricing documentation states that content submitted through the free tier may be used to improve Google's products. Paid-tier terms differ.
For a business application, do not assume free-tier AI processing is appropriate for sensitive customer information.
Store names, phone numbers and other personal details in your database. Send the AI only the information it needs to answer the customer's question.
Official reference:
Gemini API Pricing and Data Use
11. The master prompt to build the complete application
Once you understand the architecture, you can use this prompt in Google AI Studio Build mode.
Copy this prompt
Project: Business Website with AI Chatbot and Lead Management
I want to build a complete, responsive business website with an integrated AI chatbot and an administrator dashboard.
1. Website
Create the following pages:
Home
About Us
Products / Services
FAQ
Contact Us
Use a modern, professional design. Ensure it works on mobile, tablet and desktop.
2. AI chatbot
Integrate the Gemini API using secure server-side calls.
The chatbot must:
Answer questions using approved business information.
Avoid inventing business facts.
Collect customer name, mobile number and enquiry.
Validate submitted details.
Save leads to the database.
Confirm successful submission.
Handle unanswered questions politely.
3. Database
Use Firebase Firestore for persistent storage.
Store customer enquiries, contact information, submission date and follow-up status.
4. Admin dashboard
Use Firebase Authentication.
Build a secure administrator dashboard showing:
Total leads
New enquiries
Pending follow-ups
Customer details
Enquiry information
Lead status
Protect all administrative data and backend APIs.
5. Technical requirements
Use React for the frontend and Node.js for server-side operations.
Keep all API keys and secrets on the server.
Implement validation, error handling, secure database rules and duplicate-submission protection.
Do not use browser localStorage as the primary database.
6. Cost restrictions
Prefer Google services with free usage allowances.
Do not enable paid services or billing without my approval.
Explain any feature that may incur a charge before implementing it.
7. Development methodology
Do not generate the entire application immediately.
First provide:
Architecture
Screen design
Database structure
Chatbot conversation flow
Security design
Deployment approach
Estimated operating costs
Wait for my approval before building.
Implement the application in stages. Preserve all existing working features and data during subsequent changes.
Do not publish until I approve the tested application.
12. A practical 7-day implementation plan
You do not need to spend weeks learning every technology before building.
Follow this schedule.
| Day | Activity | Expected result |
|---|---|---|
| 1 | Explore Google AI Studio and Build mode | Understand the platform |
| 2 | Build the business website | Working website preview |
| 3 | Integrate Gemini chatbot | Chatbot answers questions |
| 4 | Configure Firebase Firestore | Lead information is stored |
| 5 | Add secure admin dashboard | Leads can be viewed |
| 6 | Test chatbot, database, security and mobile layout | Working prototype |
| 7 | Deploy and test the live URL | Public application |
Do not rush to publish. If the application needs more testing, extend the schedule.
13. Common mistakes beginners should avoid
| Mistake | Better approach |
|---|---|
| 1) Asking AI to build everything in one prompt | Build in stages |
| 2) Repeatedly redesigning working screens | Request targeted changes |
| 3) Publishing without testing | Validate. No Testing, No Deployment |