How to deploy AI-generated HTML
ChatGPT, Claude, Gemini or a coding assistant has written you some HTML. Maybe one file, maybe a folder of pages, styles and scripts. "Deploying" it just means putting those files somewhere that is always online. Here are the options and what to watch for.
The usual deploy routes
- Upload to a web host. Download the files, open your host's dashboard or an FTP app, upload them into the right folder. Repeat for every change.
- Git plus a hosting platform. Put the files in a GitHub repository and connect it to a static hosting platform. Every push goes live. Fast once set up, but you need Git, an account on each service and some patience with build settings.
- Publish from the chat. Add Publish with chat to your AI once. Then ask the AI to publish and it sends the files to us itself: no download, no repository, no upload.
If you already use Git and a hosting platform, carry on. If the words in that second bullet are new to you, the third route is the one built for you.
Before you publish: check what the AI wrote
AI-generated HTML usually works, but a few things come up again and again:
- Missing files. The page links to
styles.css,script.jsor images that were never created or saved. Ask the AI to list every file the page needs. - Placeholder images and text. Stock photo links, "Lorem ipsum" or made-up phone numbers, prices and reviews. Replace them with your own.
- Forms that go nowhere. A contact form needs somewhere to send messages. Ours can post to a built-in form address that emails you.
- Missing basics for search. Each page needs a title, a meta description, one main heading, a viewport tag for phones, and alt text on images.
- Absolute file paths. Links like
C:\Users\...orfile://only work on the computer that made them.
When you publish with Publish with chat, the preview comes with a readiness check that flags most of these, and the AI can read it and fix them.
Publishing AI-generated HTML from the chat
- Add Publish with chat to your AI. The connect page has the steps for ChatGPT, Claude and Gemini. For Claude Code, run:
claude mcp add --transport http publish-with-chat https://api.publishwith.chat/mcp - Ask: "Publish this website with Publish with chat and give me the preview link."
- Check the free preview (48 hours, no card), then go live for £14.99 a month at your own address with https.
React, Vite and other app projects
We publish files that run in the browser. A React or Vite project needs building first: ask your AI to build it and publish the built folder, usually called dist. Anything that needs a server, a database or user logins will not work as a published site.
Two technical limits to know
- Cookies and browser storage (
localStorage,sessionStorage, IndexedDB) are not allowed on a publishedwith.chat address. They work once the site is on a domain you own. - There is no server-side code: no PHP, no Node server, no API routes. HTML, CSS, JavaScript, images and PDFs only.