Explore with AI
Open this article in an AI assistant, with a prompt that asks it for a summary and the takeaways.
ChatGPT connectors can remove that step. With the right kind of connector, ChatGPT publishes the HTML it writes instead of handing it over: the report becomes a private link you can track, share and correct without sending a new URL. This guide covers which connector does that, how to add HTMLvault's MCP server as one, and a worked example from first publish to a two-number fix a week later.
What ChatGPT connectors are, and the two kinds people mix up
A connector links ChatGPT to another service. The word covers two different things:
- Connectors that pull data in. ChatGPT reads from a service you connected, such as a shared drive or a mailbox, and answers from what it finds. Information flows toward the chat.
- Custom connectors backed by a remote MCP server. MCP, the Model Context Protocol, is a standard way for an AI tool to discover and call another service's actions. The server lists its tools, each with a name and inputs, and ChatGPT calls them: create a page, edit it, fetch its analytics. Work flows out of the chat.
Publishing needs the second kind. In some plans a custom MCP connector can only search and read until developer mode is on, which is why developer mode shows up in most ChatGPT MCP setup instructions. What you see also depends on your plan and your workspace admin's settings, and OpenAI moves and renames these menus, so take exact paths from OpenAI's current help pages.
Add HTMLvault as a ChatGPT custom connector
The steps hold across plans; the button labels may not.
- Confirm you can add one. Check your plan and, in a business workspace, whether the admin allows custom connectors, plus developer mode if your plan requires it for tools that write.
- Add the connector. Name it HTMLvault and paste the MCP server URL from HTMLvault's MCP setup instructions. ChatGPT connects and reads the tool list.
- Authorize it. ChatGPT sends you to HTMLvault to sign in and approve access. Sign in as usual, with a magic link or a passkey; HTMLvault has no passwords. Links the connector creates land in your account.
- Check the tools. You should see HTMLvault's tools, among them
create_link,get_link,patch_link,update_link,create_draft_link,append_htmlandget_analytics. - Turn it on in the chat. Connectors are usually enabled per conversation, and ChatGPT may ask you to confirm a call that creates or changes something.
If you also work in Claude, the same tools are covered in the HTMLvault MCP server guide for Claude.
Worked example: a weekly pipeline report on a private link
The report has four parts: a summary of open pipeline and commit, a table by stage, an eight-week trend chart, and the deals that moved. Give ChatGPT these build rules first. Each follows from how HTMLvault stores and edits a page.
- Return one self-contained HTML file with a descriptive <title>. HTMLvault serves the page as written and adds no stylesheet or fonts; the title also names the link's preview card in Slack or email.
- Put all CSS in one <style> block in the <head>, with system fonts or a font you load yourself. Style text is stored exactly as written, and one block is one place to edit.
- Load no external script unless a chart needs one. Chart.js from a CDN runs, but a bar or line chart drawn as inline SVG needs no script (see SVG vs PNG for AI-generated reports).
- Give every section, table and figure a stable, unique id. Patches find their target by exact text, and an id makes that text unique.
- Write each number once, in its own element with an id. A plain patch must match exactly once, so a total repeated in three places can't be changed with one find.
- Close every <p>, <li>, <td> and <tr> explicitly. Malformed HTML is refused rather than repaired, and omitted end tags can push nesting past the 1,000-level limit.
- Use no data: URLs in <img src> and no HTML comments as markers. Publishing removes the first and drops the second.
The skeleton those rules produce:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Weekly pipeline report</title>
<style>
body { font-family: system-ui, sans-serif; margin: 2rem; }
#summary { position: sticky; top: 0; background: #f8fafc; }
</style>
</head>
<body>
<section id="summary">
<p>Open pipeline: <strong id="total-open">$3.10M</strong></p>
<p>Commit: <strong id="total-commit">$1.40M</strong></p>
</section>
<section id="by-stage">…</section>
<figure id="trend-chart">…</figure>
<section id="moved-deals">…</section>
</body>
</html>
Then ask:
Build this week's pipeline report from the attached CRM export, following the build rules above. Publish it to HTMLvault with create_link, titled “Weekly pipeline report,” and give me the link.
ChatGPT writes the page and calls create_link. HTMLvault checks it and returns a private URL that is never indexed and can carry a password and an expiry. Opens, scroll depth and return visits then show in the dashboard, or ask ChatGPT to call get_analytics; per-link analytics explains each metric.
A week later: patch two numbers without changing the URL
A week later a late-stage deal slips a quarter, and two figures are wrong: open pipeline is now $2.86M and commit $1.16M. Regenerating the page invites the model to rewrite things that didn't change, so ask for a patch:
Update the Weekly pipeline report link with patch_link: total-open becomes $2.86M and total-commit becomes $1.16M. Call get_link first and change nothing else.
The get_link call comes first because patches match the stored HTML, which differs from what ChatGPT wrote: publishing drops the DOCTYPE and comments, lowercases tag and attribute names, double-quotes attribute values, writes void tags as <br /> and stores as the character itself. A find copied from ChatGPT's draft can miss; one copied from get_link won't.
ChatGPT then sends both changes in one patch_link call:
find: <strong id="total-open">$3.10M</strong>
replace: <strong id="total-open">$2.86M</strong>
find: <strong id="total-commit">$1.40M</strong>
replace: <strong id="total-commit">$1.16M</strong>
- A find is plain text, not a regular expression.
- Without
replace_all, each find must occur exactly once; the id keeps it unique even if $3.10M also appears in a footnote. - One call takes up to 200 patches, applied together or not at all.
- The edit is checked like a new publish, and the URL stays the same, so every copy already sent shows the new numbers.
When most of the page changes, replace it whole with update_link; the URL still holds. Editing published HTML without breaking your links covers both routes.
When the connector doesn't appear or a tool call fails
The connector doesn't appear
- Your plan doesn't include it. Check OpenAI's current plan documentation for custom connectors and developer mode.
- Your admin hasn't allowed it. In business workspaces the admin decides whether members can add custom connectors; ask them.
- It isn't on in this chat. Enable it for the conversation, or start a new one.
- Authorization lapsed or went to the wrong account. Remove the connector, add it again and sign in to the HTMLvault account you publish from.
If custom connectors stay off in your workspace, HTMLvault also provides a Custom GPT action schema for ChatGPT, and the REST API works from any script.
A tool call fails
- Findings came back instead of a URL. Every publish and edit is scanned for secrets and personal data (a regex check that uses no AI tokens) and every outside URL against Google's unsafe-URL lists; remove what was flagged and publish again.
- Malformed HTML was refused. Ask ChatGPT to close every tag and check that they balance; HTMLvault won't repair it.
- The page is too large, or the reply stopped mid-file. One document can be up to 5 MB. For long reports ask for append mode:
create_draft_link, thenappend_htmlin chunks of up to 200 KB, finalizing on the last call; nothing is public or checked until then. - A patch matched nothing, or more than once. No match usually means the find came from ChatGPT's draft instead of
get_link; several means it is too short, so include the id. Either way the page is unchanged. - An image disappeared. A
data:URL insrcis removed at publish; use an https image URL or inline SVG.
Prompt you can reuse
Paste this at the start of a chat, or into a project's instructions, with the HTMLvault connector on:
Build the report as one self-contained HTML file and publish it
to HTMLvault with create_link. Rules:
1. All CSS in one <style> block in <head>; system fonts unless you load one.
2. No external scripts unless a chart needs one; prefer inline SVG charts.
3. Give every section, table and figure a stable, unique id.
4. Write each number once, in its own element with an id.
5. Close every <p>, <li>, <td> and <tr>; keep all tags balanced.
6. No data: URLs in <img src>; no HTML comments as markers.
7. Give the page a descriptive <title>.
To change a published page: call get_link, then patch_link with find
strings copied from the stored HTML, each including the element's id.
Use update_link only if most of the page changed.
Never create a new link for an update.
Saved once, it turns the Monday report into a single request. The page is built, published and tracked from the chat, and the analyst who used to select HTML out of a scrolling window spends those twenty minutes on the numbers instead.
