You will install Ollama on Windows, download a local AI model, and build a simple chat website that talks to it. It suits beginners and students who want to run an AI chatbot on their own computer. You need Windows, a terminal, and basic HTML, CSS and JavaScript skills.
YouTube video: Install Ollama on Windows & Build Your Own AI Chat Website (Step-by-Step)
YouTube’s video details do not confirm captions. Check CC in the player for available tracks.
- Video length
- 3 min 41 s
- Time to do it
- 45 minutes
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Download the Ollama installer for Windows from the official Ollama website and run it. When it finishes, Ollama runs in the background.
Open Command Prompt or PowerShell and run ollama --version to confirm the install worked.
Pull a model by typing ollama pull llama3 in the terminal. Wait for the download to finish.
Start the model with ollama run llama3 and type a test message. Type /bye to exit the chat.
Create a project folder with an index.html file, a style.css file and a script.js file.
Build the chat page in HTML: an input box, a Send button and a message area. Style it with CSS.
Write JavaScript that sends the user's message to your backend server and shows the reply in the message area.
Set up a small backend server, for example with Node.js, that calls the Ollama API at http://localhost:11434 and returns the model's answer.
Open the page in your browser, send a message and check that the AI reply appears. Fix any errors in the browser console.
Tips and common mistakes
Keep the Ollama app running in the background, or the API calls will fail.
Start with a small model if your PC has little RAM, since large models load slowly.
Check the browser console first when messages do not appear.
Questions
Do I need an internet connection to chat?
No. After the model is downloaded, Ollama runs the AI locally on your computer.
Which port does Ollama use?
The local API listens on http://localhost:11434 by default, so point your backend server there.
Can I use this chat site on other devices?
Only if you host the backend server so other devices on your network can reach it. By default it runs on your own machine.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


