ClayDokumentace

Všechno, co konektor umí

Každá akce, kterou tvoje AI může v Clay udělat, a pravidla, kterých se drží.

15 min čteníZeptej se své AI na tuhle stránku

Tohle je úplný seznam toho, co Clay tvé AI dovoluje, ten samý seznam, který čte tvoje AI. Bere se přímo z kódu Clay, takže je vždycky aktuální.

Pravidla, kterých se tvoje AI drží

  • Bez tvého ano nic online nejde. Zveřejnění, návrat k verzi, nákup a odebrání domény proběhnou až po tvém souhlasu.
  • Jen skutečná fakta. Žádná vymyšlená otevírací doba, ceny, recenze ani ocenění.
  • Žádná tajemství na webu: nikdy hesla, klíče ani platební údaje v jeho souborech.
  • Tvoje AI nemůže platit ani smazat tvůj účet. Platba vždycky proběhne na stránce, kterou otevřeš ty.
  • E-mail klientovi ti ukážeme dřív, než se odešle.

Your account

get_account Account and limits Reads only
The user's Clay plan, how many sites and custom domains they use against what the plan allows, storage and traffic this month against the limit, extra data packs, a failed payment's grace if any, their sites (each with `open` links that start Claude or ChatGPT on it), their referral link, and `start` links for a new site. Read-only.
get_upgrade_link Upgrade link
A payment link for the user to open: basic (Hobby, EUR 9 a month, 5 sites, all on their own domains, no Clay link), pro (EUR 27, 15 sites on their own domains), agency (EUR 97, 45 sites on their own domains, client logins, client feedback and handover), or pack (EUR 10 a month, +25 GB storage and +500 GB traffic). Give the link to the user; nothing is charged until they pay on that page.
get_referral Referral link and earnings Reads only
The user's Clay referral link and what it earned: clicks, sign-ups, how many of them pay, earned, paid out and balance in EUR. Anybody who signs up through the link earns the user 20% of what they pay for hosting, for as long as they pay, on a free account too. Payouts are made by hand once the balance is EUR 25 or more. Read-only.

Sites and files

check_subdomain Check a clay.site name Reads only
Is name.clay.site free? `ok` true means free; otherwise `reason` says why (taken, reserved, not allowed) and `suggestions` are free alternatives. Read-only.
create_site Create a site
Create an empty site with a draft at name.clay.site. Nothing is public until the site is published. Fails with a limit when the plan's site count is reached.
list_sites List sites Reads only
The user's sites: name, addresses, live or draft, last change, and role: owner, or for a site somebody shared with them, edit or view with the owner's email. A view site can only be read. Read-only.
get_site Read a site Reads only
One site: its id (used in form actions), its live and draft addresses, status, and the draft's file list with sizes. Read-only.
read_file Read a file Reads only
Read one file from the site's draft. Read it before changing it. Read-only.
write_files Write files to the draft
Create or replace files in the site's draft. The live site does not change until the site is published. Text as utf8; images and fonts as base64.
delete_files Delete files from the draft
Delete files from the site's draft. The live site does not change until the site is published.
upload_image Upload an image
Store an image in the site's draft, resized for the web. Returns the path to use in an <img src>.
download_site Download all files Reads only
A link to a zip of every file of the site: the live version (default) or the draft. The link works for 24 hours and needs no sign-in. Read-only.

Preview, publish and versions

get_design_guide Clay design guide Reads only
Clay's design rules for a good-looking static site: type scale, spacing, one accent colour, images, section patterns and a working form. Call it before writing any page. Read-only.
preview Preview address Reads only
The address where the draft can be seen before it goes live. Not indexed by search engines. Read-only.
check_site Check a site Reads only
Check a site for problems: page titles and descriptions, headings, image alt text and size, phone setup, broken links and missing files, forms, favicon, the card shown when a link is shared, page weight and speed. Returns findings worst first, each with severity (fix, improve, ok), page, what (for the user) and how (what to change). Read-only.
publish Publish the draft Asks the user firstChanges the live site
Make the draft the live site and save it as a new version. ONLY call this after the user said yes to publishing. It can be blocked by Clay's safety check; then show the message as it is.
list_versions List versions Reads only
Every published version of the site, newest first, with its note and time. Read-only.
restore_version Restore a version Asks the user firstChanges the live site
Put an earlier version back live (and in the draft). This changes the live site.
save_seo_report Save an SEO report
Save an SEO report for a site, shown to the user in their Clay dashboard (clay.site/projects/tools). `report` is the whole report as markdown, worst first. `findings` are the concrete items, each with severity (fix, improve, ok), page, what (plain words) and how (what to change). Saving changes no file of the site.

Forms

list_form_submissions Form submissions Reads only
Messages sent through the site's forms (forms post to /api/forms/<site id>), newest first. Read-only.

Your pictures

list_library The user's library Reads only
The pictures and videos the user uploaded to their Clay library, newest first: id, name, kind, size, width and height, and `href`, the full address of the file. Read-only.
get_library_item One library file Reads only
One file of the user's library with its full address (`href`). Read-only.
use_library_image Put a library picture on a site
Copy a picture from the user's library into a site's draft under images/. Returns the path to use in an <img src>. The live site does not change until the site is published.
upload_to_library Add a picture to the library
Store an image in the user's library (not in a site), so it can be used on any of their sites later. Counts against their storage.

From a Google Maps listing

find_business Find a business on Google Maps Reads only
Search Google Maps for a local business by name and place. Returns up to 5 candidates with place_id, name, address, rating and review count. Read-only.
get_listing Read a Google listing Reads only
The facts of one Google Maps listing, cleaned up: name, category, address, city, country, phone, website, maps link, opening hours (per day and as a line in the site's language), rating and review count, up to 8 short review quotes with their authors, the business's own menu or products when its website publishes them, and the photos available. `language` is the language the site is written in. Read-only.
import_listing_photos Import the listing's photos
Download up to `count` (default 8, at most 10) of the listing's photos into the site's draft as images/listing-1.jpg, images/listing-2.jpg and so on, resized for the web. Returns each path with a short note of what is known about it (shape, who took it). Use these paths in <img src> with alt text that describes the photo plainly; do not claim a photo shows something you cannot see. A photo taken by a visitor is credited once, in one small line in the footer ("Photos: Ana, Joe"), not as a caption under the photo. Fails with a limit when the plan's storage is full.

Domains

search_domain Search a domain Reads only
Is a domain free to register? Takes a full domain (padariarosa.pt) or just a name (padaria rosa), and an optional max_price. Returns that domain's availability, up to six free alternatives, each with its own yearly price in EUR (Clay's registrar cost plus EUR 5, the same every year because it is the renewal price), and whether the plan has room for another custom domain. Every domain's price is also listed at clay.site/projects/domains. Read-only.
register_domain Register a domain Asks the user firstSends an emailPaid plans
Register a new domain for a site. Returns a payment link for that domain's own yearly price, renewed by itself at the same price until the domain is removed or the plan is cancelled. After payment Clay registers it, points it at the site, sets up the certificate and emails the user when it is live. Needs a paid plan with room for another custom domain.
connect_domain Connect a domain they own Sends an emailPaid plans
Put a domain the user already owns on a site. Returns the exact DNS records to set, their DNS provider (detected) with short steps and a link, a ready-to-send email for whoever manages their DNS, and a warning not to touch mail (MX) records. Clay checks every 10 minutes and emails the user when it is live. Needs a paid plan with room for another custom domain.
domain_status Domain status Reads only
Checks the site's custom domain right now: what the DNS says, whether it is live, and what is still wrong in plain words. Read-only.
remove_domain Remove the domain Asks the user firstChanges the live site
Take the custom domain off a site; the site goes back to its clay.site address. This changes the live site.

Sharing, clients and feedback

invite_customer Share a site with someone Sends an emailPaid plansOwner only
Share a site with somebody by email: a teammate or the client it is for. access view (the default) lets them see it in their own clay.site/projects and leave feedback; edit also lets them change it and put it live. They get a sign-in link (one use, seven days). Inviting somebody already on the site sends the link again and, with access, changes what they may do. Every paid plan; only the site's owner.
set_access Change what someone may do Paid plansOwner only
Change what a person the site is shared with may do: view or edit. No email goes out. Every paid plan; only the site's owner.
list_customers People on a site Reads onlyPaid plansOwner only
Who the site is shared with and what each may do (view or edit), whether they signed in yet, whether the feedback button is on, and any handover. Read-only. Every paid plan; only the site's owner.
remove_customer Stop sharing with someone Paid plansOwner only
Take a person off a site. They no longer see it, its feedback button or anything of it in their dashboard. Every paid plan; only the site's owner.
set_feedback Feedback button on or off Agency plan
Turn the Feedback button on the site's pages on or off. Only signed-in customers of that site see it (on the clay.site address and the draft); visitors do not see it. Agency plan only.
list_feedback Customer feedback Reads onlyAgency plan
The customers' feedback on a site, newest first: note, page, screen size, the element they pointed at, screenshot URLs, state (open, doing, done). Read-only. Agency plan only.
list_inbox Inbox: feedback on every site Reads onlyAgency plan
The customers' feedback on all the user's sites in one list, newest first, each with its site, state (open, doing, done), note, page and how many notes are on its thread (moves between states are not counted). The same inbox the user sees at clay.site/projects/inbox. Read-only. Agency plan only.
get_feedback One feedback item Reads onlyAgency plan
One feedback item with its whole thread (private notes marked `private`) and screenshot URLs. Read-only. Agency plan only.
add_feedback_note Add a private note Agency plan
Add a private note to a feedback item's thread, for the user and their team only. The customer does not see it and nobody is emailed. Agency plan only.
reply_feedback Reply to a customer Asks the user firstSends an emailAgency plan
Add a note to a feedback item and email it to the customer who wrote it. Use it for a question or to say what you changed. Show the user the text first. Agency plan only.
set_feedback_state Move a feedback item Sends an emailAgency plan
Set a feedback item to open, doing or done. done emails the customer "fixed, have a look" with the optional note; only set done once the change is published. Agency plan only.
start_handover Hand a site to the customer Agency plan
Hand the site over to its customer (or a new email). They sign in, pick a plan (basic, pro or agency) and pay; only then does the site move to their account, with its versions and domain. They choose whether the agency keeps editing (on by default), and the agency is recorded as their referrer. Until they pay, nothing changes. Agency plan only.

More

start_new_website Start a new website Reads only
The start of every new website on Clay.site (a new site, a site from Google Maps, a redesign, an SEO check, another language): shows the Clay.site tools in the chat as an interactive panel, where the user picks what to build (a business website, a web shop, a portfolio, a landing page, an event, a link page, a coming soon page, a site from their Google Maps listing, a redesign of their old site, an SEO check, another language) and a style, font, colours and motion in a few taps. Their answers arrive in the chat as their next message. Optional `tool` opens one tool directly. Read-only.
get_brief Read a website brief Reads only
Read the brief the user made on the Clay tools: everything they picked for their site (what it is, the Google Maps listing with its place_id and link, the photos and files they added with their full links, their colours, style and wishes). Call it first when the user's message names a Clay brief id, and follow it exactly: use every fact as given and invent nothing. Read-only.
esc