Build Your First AI-Powered Website (Free!)
Time: 30 minutes | Cost: $0 | Skill level: Beginner
In this guide, you'll create your own personal website with an AI chatbot that can answer questions about YOU. No software to install. No coding experience needed. Everything runs in your web browser.
What you'll build:
- A personal website hosted for free on GitHub Pages
- An AI chat widget that knows about you and can answer visitor questions
- A project you can show off to friends, family, or college applications!
What You Need
- A computer with internet access
- An email address
- About 30 minutes
That's it! Everything else is free.
Part 1: Create Your GitHub Account
GitHub is where developers store their code. Think of it like Google Drive, but for websites and apps.
Step 1.1: Sign Up
-
Go to github.com
-
Click Sign up
-
Enter your email address
-
Create a password (make it strong!)
-
Choose a username — this is important!
Your username becomes part of your website address. For example, if your username is
alexsmith, your website will be atalexsmith.github.io -
Complete the puzzle to prove you're human
-
Check your email and enter the verification code
Congrats! You now have a GitHub account.
Part 2: Create Your Website Project
A "repository" (or "repo") is just a folder for your project. You'll create one to hold your website files.
Step 2.1: Create a New Repository
- Click the + icon in the top-right corner
- Select New repository
- Fill in the details:
- Repository name:
my-website(or anything you like) - Description: "My personal website" (optional)
- Public: Make sure this is selected (required for free hosting)
- Add a README file: Check this box
- Repository name:
- Click Create repository
Understanding Your Website Address
Your website will be live at:
https://YOUR-USERNAME.github.io/my-website/
For example, if your username is alexsmith and your repo is my-website:
https://alexsmith.github.io/my-website/
Write this down! You'll need it later.
Part 3: Open Your Free Coding Environment
GitHub gives you a free coding environment called Codespaces. It's like having a professional coding setup without installing anything.
Step 3.1: Launch Codespaces
- In your new repository, click the green Code button
- Click the Codespaces tab
- Click Create codespace on main
Wait about 30 seconds. A coding environment will open in your browser!
This is called VS Code — it's what professional developers use. Don't worry, we'll keep it simple.
Part 4: Create Your Website with AI Help
Here's the cool part: you can ask AI to write your website code for you!
Step 4.1: Open the AI Chat
- Press
Ctrl+Shift+P(Windows) orCmd+Shift+P(Mac) - Type:
Chat: Open - Press Enter
A chat panel opens on the side. This is GitHub Copilot — your AI coding assistant.
Step 4.2: Ask AI to Create Your Website
Copy and paste this prompt into the chat:
Create an index.html file for a personal website. Include:
- A hero section with my name "YOUR NAME HERE" and a short tagline
- An "About Me" section
- A "Contact" section with placeholder links
- Clean, modern styling with inline CSS
- Mobile-friendly responsive design
Save the file as index.html in the project root.
Replace "YOUR NAME HERE" with your actual name!
Step 4.3: Apply the Code
- The AI will generate HTML code
- Click Apply or Insert to create the file
- You'll see a new file called
index.htmlappear
Tip: You can ask the AI to change anything! Try:
- "Make the background dark blue"
- "Add a section for my hobbies"
- "Change the font to something more fun"
Part 5: Save and Publish Your Website
Step 5.1: Save Your Changes to GitHub
- Look at the left sidebar — click the Source Control icon (it looks like a branch)
- You'll see your changed files listed
- Type a message like:
Add my website - Click the checkmark to commit
- Click Sync Changes to upload to GitHub
Step 5.2: Turn On GitHub Pages
- Go back to your repository on github.com (open a new tab)
- Click Settings (in the top menu of your repo)
- Scroll down and click Pages in the left sidebar
- Under "Source," select:
- Deploy from a branch
- Branch: main
- Folder: / (root)
- Click Save
Step 5.3: Wait and Visit!
GitHub needs about 1 minute to publish your site.
Then visit:
https://YOUR-USERNAME.github.io/my-website/
Your website is live!
Part 6: Add an AI Chatbot with Demeterics
Now let's add an AI assistant that can chat with your website visitors and answer questions about you!
Step 6.1: Create a Demeterics Account
- Go to demeterics.com
- Click Get Started Free
- Sign in with your Google account (or create an account)
You get 100 free credits — plenty to get started!
Step 6.2: Create Your AI Chat Widget
- Click AI Chat in the left menu
- Click New Widget
- Fill in the basics:
- Name: "My Website Assistant"
- Title: "Ask me anything!"
- Click Create
Step 6.3: Get Your Widget Code
After creating your widget:
- You'll see your Agent Key — it looks like
DEM-XXXXXXXXXXXX - Copy this key (you'll need it in the next step)
Step 6.4: Add Your Website to Allowed Domains
This is important! Your widget will only work on websites you approve.
-
In your widget settings, find Allowed Domains
-
Add your GitHub Pages domain:
YOUR-USERNAME.github.ioImportant: Just the domain, no
https://and no/my-websitepath! -
Click Save
Part 7: Add the Chatbot to Your Website
Go back to your Codespace (or open it again from your repo).
Step 7.1: Ask AI to Add the Widget
Open the AI chat (Ctrl+Shift+P → Chat: Open) and type:
Add the Demeterics AI chat widget to my index.html.
Add these two lines just before the closing </body> tag:
<script src="https://demeterics.com/widget/embed.js?k=DEM-YOUR-KEY-HERE" async></script>
<dem-agent name="default" title="Ask me anything!" state="minimized"></dem-agent>
Replace DEM-YOUR-KEY-HERE with your actual Agent Key from Demeterics!
Step 7.2: Save and Publish
- Save the file (
Ctrl+S) - Go to Source Control (left sidebar)
- Type:
Add AI chat widget - Click the checkmark, then Sync Changes
Wait 1 minute, then refresh your website. You should see a chat bubble in the corner!
Part 8: Teach Your AI About You
Right now, your AI chatbot is generic. Let's make it know about YOU!
Step 8.1: Write Your Personal Info
Create a short bio about yourself. Include things like:
- Your name and age
- Where you're from
- Your hobbies and interests
- What you're studying or want to study
- Fun facts about you
- Your goals or dreams
Example:
My name is Alex Smith. I'm 15 years old and I'm a freshman at Lincoln High School
in Portland, Oregon. I love playing soccer, building with Legos, and learning
about space. My favorite subject is science, especially astronomy. I want to
study engineering in college and maybe work at NASA someday. Fun fact: I've
watched every Star Wars movie at least 5 times!
Step 8.2: Add Your Bio to the AI Prompt
- Go back to demeterics.com
- Click AI Chat → Click on your widget
- Find the System Prompt section
- Replace the default prompt with something like this:
You are a friendly AI assistant on Alex's personal website. You help visitors
learn about Alex and answer their questions.
Here's information about Alex:
---
My name is Alex Smith. I'm 15 years old and I'm a freshman at Lincoln High School
in Portland, Oregon. I love playing soccer, building with Legos, and learning
about space. My favorite subject is science, especially astronomy. I want to
study engineering in college and maybe work at NASA someday. Fun fact: I've
watched every Star Wars movie at least 5 times!
---
Be friendly, helpful, and keep answers short. If someone asks something not
covered above, politely say you don't have that information.
- Click Save
Part 9: Test Your AI Chatbot!
Go to your website and try asking questions:
- "Who is Alex?"
- "What are your hobbies?"
- "What do you want to be when you grow up?"
- "What's your favorite movie?"
The AI will answer based on the info you provided!
What You Learned
Congratulations! You just:
- Created a GitHub account (used by millions of developers)
- Built a website using AI-assisted coding
- Deployed it for free using GitHub Pages
- Added an AI chatbot that knows about you
- Learned about prompts and how to customize AI behavior
These are real skills that developers and tech professionals use every day!
Make It Even Better
Here are some ideas to keep improving:
Add More to Your Website
Ask the AI in Codespaces:
- "Add a photo gallery section"
- "Add a section about my projects"
- "Make it look more colorful"
Teach Your AI More
Add more details to your Demeterics prompt:
- Your favorite books, games, or music
- School projects you're proud of
- Sports teams you play on
- Languages you speak
Share It!
Send your website link to:
- Friends and family
- Teachers (great for school projects!)
- Include it on college applications
Troubleshooting
"My website shows a 404 error"
- Wait 2-3 minutes after enabling GitHub Pages
- Make sure your file is named exactly
index.html(lowercase!) - Check that GitHub Pages is enabled in Settings → Pages
"The chat widget doesn't appear"
- Check that your domain is in Allowed Domains (just
username.github.io, no path) - Make sure you used your actual Agent Key, not
DEM-YOUR-KEY-HERE - Clear your browser cache and refresh
"The AI doesn't know about me"
- Make sure you saved the System Prompt in Demeterics
- Check that your bio information is inside the prompt
- Try asking simpler questions first
Quick Reference
| What | Where |
|---|---|
| Your website | https://YOUR-USERNAME.github.io/my-website/ |
| Your code | github.com → Your repository |
| Your coding environment | GitHub → Code → Codespaces |
| Your AI chatbot settings | demeterics.com → AI Chat |
| Widget Allowed Domain | YOUR-USERNAME.github.io (no https, no path) |
Need Help?
- GitHub Docs: docs.github.com/pages
- Demeterics Support: support@demeterics.com
- AI Chat Widget Guide: /docs/ai-chat-widget
Happy building!