Publish with chat

v1.0.2
chat.publishwith/publish-with-chat Checked 2 days ago Published 8 days ago

Publish and host websites made with AI.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_site_guidance Get website building guidance

Returns reference material about building a good website for a non-technical customer: the facts worth gathering, what each kind of page usually contains, what a static site can and cannot do, and the quality standards the readiness report checks. Without site_type it returns the general standards and the list of website types. With site_type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other) it returns the checklist for that type. With topic domain-setup it returns the guide for connecting a domain the customer already owns. Read-only.

ParameterTypeDescription
site_typestringWebsite type, to get that type's checklist
topicstringReference topic instead of a website type

create_publish_session Start a website upload

Starts a new website upload session and returns a session_id and its expiry time. Files are added to the session separately and become a previewable site when the session is finalized. Original image files are stored as given, without resizing. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accounts or log-in, no database and no server code, so a request for those cannot be met by this tool. Cookies and browser storage (document.cookie, localStorage, sessionStorage) are not available either, an…

upload_site_file Upload a text file

Saves one text file of the website (html, css, js, svg, json) into an open session, with encoding 'utf8'. Logos, icons and illustrations work well as SVG. base64 is accepted for tiny binary files only (a few KB).

ParameterTypeDescription
content *stringThe file's contents: plain text for utf8, or base64 text for a tiny binary file
path *stringRelative path, e.g. index.html or css/style.css
session_id *stringThe session_id returned when the upload or update session was started
encodingstringHow content is encoded: utf8 for text files (default), base64 for tiny binary files only

upload_file_chunk Upload a file in pieces

Saves a binary file into an open session in pieces, for files that can only be supplied as text. The file's base64 text is split into consecutive pieces of at most 12000 characters, each sent with chunk_index 0..total_chunks-1 (any order). When the last piece arrives the file is assembled and saved. Suited to small files only (roughly 100 KB).

ParameterTypeDescription
chunk_index *integerPosition of this piece, starting at 0
data *stringThis piece of the file's base64 text, at most 12000 characters
path *stringRelative path the assembled file is saved to, e.g. images/logo.png
session_id *stringThe session_id returned when the upload or update session was started
total_chunks *integerTotal number of pieces the file was split into

import_file_from_url Import a file from a URL

Has the server download a file (image, font, a .zip of a whole site) from a public https URL into an open session, so the file's bytes do not need to be passed through the chat. Private and localhost addresses are not accepted. If path ends in .zip the archive is unpacked into the site root.

ParameterTypeDescription
path *stringWhere to save it in the site, e.g. images/hero.jpg
session_id *stringThe session_id returned when the upload or update session was started
url *stringPublic https address of the file to download

import_attached_file Import an attached file

Saves a file the user attached to the chat (for example their logo or a photo) into the website. Pass the attached file as `file` and say where it goes with `path`, e.g. images/logo.png. If `path` is omitted it is saved as images/<original file name>. An attached .zip of a whole site is unpacked into the site root.

ParameterTypeDescription
file *objectThe attached file
session_id *stringThe session_id returned when the upload or update session was started
pathstringWhere to save it in the site, e.g. images/logo.png. Defaults to images/<original file name>

list_session_files List uploaded files

Lists the files received so far for a session (from tool uploads and the browser upload page).

ParameterTypeDescription
session_id *stringThe session_id returned when the upload or update session was started

finalize_upload Check the site and create a preview

Checks the uploaded site and creates a temporary preview URL (valid for 48 hours) plus a link the site owner uses to create an account and publish. The response lists errors (these block the preview) and warnings (broken links, missing pages, placeholder text). Optional site_name sets the site's name and web address. Optional site_type tailors the readiness report in the reply: a 0 to 100 score from automated checks (SEO, mobile, contact, content, accessibility, functionality, performance), critical items such as a form that goes nowhere, features a static site cannot provide, and what could n…

ParameterTypeDescription
session_id *stringThe session_id returned when the upload or update session was started
owner_emailstringOnly if the user asked to be emailed the preview and owner link: their email address
site_namestringBusiness or site name, e.g. Blue Drop Plumbing
site_typestringThe closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report

get_site_preview Get a fresh preview link

Returns a fresh temporary preview URL for the most recent version uploaded in a finalized session.

ParameterTypeDescription
session_id *stringThe session_id returned when the upload or update session was started

publish_site Check publishing status and go live

Checks where a finalized site is in the publishing process and what has to happen next. When the site owner's account is already set up for publishing, this call also makes the newest uploaded version live (replacing the version that is live now). Otherwise nothing changes. Account setup happens in the owner's browser and is confirmed by the server, not by this chat. Returns stage: account_required (with owner_link), setup_required, held, live (with the live address) or suspended.

ParameterTypeDescription
session_id *stringThe session_id returned when the upload or update session was started

list_my_sites List my websites

Lists the websites that belong to the signed-in customer, with status, live address and number of versions.

get_site Show one of my websites

Returns one of the signed-in customer's sites with its list of versions (id, upload time, size, and which one is live).

ParameterTypeDescription
site_id *stringThe id of the site, as shown in the customer's list of sites

update_site Start an update to a website

Starts an update session for one of the signed-in customer's existing sites. The session begins as a copy of the files that are live now, so only changed or new files need to be added to it. Finalizing the session saves a new version as a preview; whether that version can go live depends on the account.

ParameterTypeDescription
site_id *stringThe id of the site, as shown in the customer's list of sites

read_session_file Read an uploaded file

Returns the text of one file in an open session (html, css, js, svg, json up to 200 KB). Binary files such as images are reported by name and size only.

ParameterTypeDescription
path *stringRelative path of the file in the session, e.g. index.html
session_id *stringThe session_id returned when the upload or update session was started

rollback_site Restore an earlier version

Makes an earlier version of the signed-in customer's site live again. Without deployment_id it returns to the previous version. Version ids are shown with the site's details.

ParameterTypeDescription
site_id *stringThe id of the site, as shown in the customer's list of sites
deployment_idstringThe version to make live, from the site's list of versions. Omitted: the previous version

upload_site_files Upload several text files

Saves several text files of the website into an open session in one call (html, css, js, svg, json), with the same rules as saving a single file.

ParameterTypeDescription
files *arrayThe files to save (text files; base64 only for tiny binaries)
session_id *stringThe session_id returned when the upload or update session was started

create_site_from_files Create a website from text files

Creates a new website from a list of text files in a single call: starts a session, saves the files and finalizes. Returns a preview link, the link the owner uses to create an account and publish, and a readiness report (score, critical items, unsupported features) tailored by the optional site_type. Only text files (and very small base64 files) can be included in this call; larger images and other binaries are added to a session separately. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accoun…

ParameterTypeDescription
files *arrayThe files to save (text files; base64 only for tiny binaries)
owner_emailstringOnly if the user asked to be emailed the preview and owner link: their email address
site_namestringBusiness or site name, e.g. Blue Drop Plumbing
site_typestringThe closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report

update_site_files Change a website in one step

Changes one of the signed-in customer's existing sites in a single call: starts an update session (a copy of the live files), saves the given files over it, and finalizes a new version. Only changed or new files need to be given. With publish true the new version is made live straight away if the account allows it; otherwise it stays a preview. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accounts or log-in, no database and no server code, so a request for those cannot be met by this tool. Co…

ParameterTypeDescription
files *arrayThe files to save (text files; base64 only for tiny binaries)
site_id *stringThe id of the site, as shown in the customer's list of sites
publishbooleanMake the new version live now
site_typestringThe closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report

read_site_file Read a file of my live site

Returns the text of one file of the signed-in customer's live site (html, css, js, svg, json up to 200 KB), without starting a session.

ParameterTypeDescription
path *stringe.g. index.html
site_id *stringThe id of the site, as shown in the customer's list of sites