Skip to content
All guides

ChatGPT Custom GPTs + AgentDoc

Import AgentDoc as a ChatGPT Action. GPT reads the latest prompt and knowledge directly — no copy-paste.

2 min readGuide

Install (one prompt)

Paste in ChatGPT:

Set up AgentDoc for me: https://agentdoc.com/install/chatgpt.md

ChatGPT fetches the install markdown and walks you through:

  1. Getting an API key (curl -X POST https://api.agentdoc.com/v1/keys or from agentdoc.com/settings)
  2. Creating a Custom GPT → Configure → Actions → Import from URLhttps://agentdoc.com/openapi.json
  3. Authentication: API Key → Bearer → paste your ad_sk_xxx

The GPT can then createAgentDoc, updateAgentDoc, publishAgentDoc, searchAgentDocs, and readAgentDoc.

Manual (if you'd rather click through it)

  1. Get an API key:
    curl -X POST https://api.agentdoc.com/v1/keys -d '{"name":"my-gpt"}'
    # → { api_key: "ad_sk_xxx", claim_token: "...", ... }
    
  2. ChatGPT → Create a GPT → Configure → Actions → Import from URLhttps://agentdoc.com/openapi.json
  3. Authentication: API Key → Bearer → paste your ad_sk_xxx

Paste a doc in as knowledge

If the GPT just needs to read a specific AgentDoc, point it at the raw markdown URL:

https://agentdoc.com/@you/your-doc.md

Bookmark the .md URL — it's always the latest as plain text.

Option B — a GPT-free workflow

Keep your GPT instructions as an AgentDoc, copy them in when they change:

agentdoc create "GPT Instructions — Sales Assistant"
# Edit at agentdoc.com/@you/gpt-instructions-sales-assistant

Then paste from https://agentdoc.com/@you/gpt-instructions-sales-assistant.md into the GPT builder.

Knowledge files from AgentDoc

AgentDoc docs double as Custom GPT knowledge files. Export and upload:

agentdoc export ./gpt-knowledge --project gpt-knowledge-base
# → ./gpt-knowledge/product-docs.md, ./gpt-knowledge/faq.md, ...

Upload those .md files in the GPT builder. Re-export when they change.

Why this matters

  • Version history — see every edit, roll back a bad change.
  • Team collaboration — product, sales, and support all edit the same markdown.
  • No redeploy — the GPT reads the live AgentDoc (Action) or your copy-paste (manual).
  • Attribution — the API key name (chatgpt-my-gpt) shows up in history.

Organize with projects

agentdoc project create "Sales Assistant GPT"
agentdoc project assign <doc-slug> sales-assistant-gpt

Every other agent

See agentdoc.com/connect. Claude Code, Cursor, Windsurf, Zed, Codex, and VS Code all have their own /install/<slug>.md you can paste into the agent's chat.