Research synthesis · architecture · execution

Can we generate GPTs?

Yes. We can generate the complete design package for a Custom GPT, workspace agent, or API-deployed agent. The correct output depends on where it must run, what it can access, how it is governed, and whether it must act outside ChatGPT.

Decision We can produce implementation-ready instructions, knowledge files, action schemas, evaluation suites, governance records, and publishing metadata. Custom GPT creation and publishing still occur in the ChatGPT web builder; OpenAI’s public documentation does not describe a public API for programmatically creating or publishing Custom GPTs.
Version 1.0.0 Generated July 21, 2026 at 8:24 PM ET Primary sources: OpenAI Help Center and developer documentation
01

Choose the right assistant type first

“GPT” is now one member of a larger assistant portfolio. Starting with the deployment boundary prevents an elegant configuration from becoming the wrong product.

Inside ChatGPT

Custom GPT

A no-code, purpose-specific version of ChatGPT. It combines instructions, knowledge, built-in capabilities, and either apps or custom actions.

Best for: guided expertise, repeatable analysis, internal reference assistants, public GPT Store experiences, and lightweight API integration.

Managed workspace

Workspace agent

A shared organizational agent for repeatable workflows. Current OpenAI documentation describes support for tools, apps, custom MCPs, skills, files, schedules, channels, and API triggers.

Best for: operational workflows, scheduled work, Slack participation, internal automation, and governed multi-system execution.

External product

API agent or workflow

A developer-built solution deployed in a website, service, or internal platform. Agent Builder supports visual workflow construction, preview, and export to code.

Best for: embedded experiences, platform APIs, identity-bound authorization, custom telemetry, deterministic orchestration, and production-scale control.

Decision questionCustom GPTWorkspace agentAPI agent
Primary runtimeChatGPTManaged ChatGPT workspace and connected channelsYour application or service
Creation modelWeb-based GPT builderWorkspace agent builderAgent Builder, SDKs, or custom code
External executionApps or REST actionsApps, tools, MCP, schedules, channels, API triggersFully controlled tools, APIs, queues, and workflow engines
Identity and authorizationWorkspace policy plus action/app authorizationWorkspace RBAC and connected-system permissionsApplication identity, policy engine, claims, entitlements, and service authorization
Public embeddingNo. GPTs run in ChatGPT.No. Designed for managed workspace use.Yes. Build into websites and products.
Operational controlModerateHigh within workspace controlsMaximum, with corresponding engineering responsibility
Architecture boundary Do not use a Custom GPT as a substitute for an embeddable product, high-assurance transaction service, or platform control plane. OpenAI explicitly directs external application use cases to the API.
02

What we can generate end to end

The durable deliverable is not one prompt. It is a versioned assistant package with separated behavior, knowledge, integration, evidence, and governance layers.

Product definitionPurpose, target users, supported decisions, exclusions, success measures, and deployment boundary.
Builder metadataName, description, icon brief, category, conversation starters, and sharing recommendation.
System instructionsBehavioral contract, workflow logic, source policy, tool rules, output schemas, failure handling, and escalation.
Knowledge corpusCurated, text-forward reference files with metadata, ownership, versioning, citations, and retrieval-oriented structure.
Action integrationOpenAPI JSON or YAML, operation descriptions, authentication design, confirmation boundaries, and privacy policy requirements.
Evaluation suiteRepresentative prompts, adversarial tests, expected properties, scoring rubrics, regression cases, and release thresholds.
Enterprise controlsRBAC matrix, domain allowlist, data classification, retention assumptions, ownership continuity, audit, and support runbook.
Release packageHuman transfer checklist, preview test plan, publishing steps, version record, rollback notes, and operator documentation.
Current limitation We cannot directly create or publish a Custom GPT inside another user’s account. The official workflow remains the ChatGPT web builder. Our output can minimize that final transfer to a controlled configuration and validation step.
03

The anatomy of a reliable Custom GPT

A robust GPT is a layered system. Mixing the layers creates prompt drift, weak retrieval, accidental authority, and hard-to-test behavior.

ExperienceName, description, icon, starters
BehaviorInstructions, policies, workflow, outputs
KnowledgeReference files, provenance, terminology
CapabilitiesSearch, images, canvas, analysis, apps/actions
AssurancePreview, evals, sharing, monitoring, version history
01

Experience layer

Communicates what the GPT is for, who should use it, and how to begin. It should set expectations before the first prompt.

02

Behavior layer

Defines the invariant operating contract. Rules, tone, decision logic, evidence handling, and output formats belong here—not in uploaded knowledge.

03

Knowledge layer

Supplies source material. It should be modular, text-forward, versioned, and designed for retrieval rather than visual presentation.

04

Capability layer

Adds tools. Every capability expands utility and the attack surface. Enable only capabilities tied to a validated user outcome.

05

Assurance layer

Proves expected behavior across normal, ambiguous, adversarial, stale-data, authorization, and dependency-failure conditions.

04

Design knowledge for retrieval, not appearance

OpenAI currently documents up to 20 knowledge files per GPT, with a maximum of 512 MB per file. Text and document files are also subject to token limits. Complex visual layouts can reduce retrieval quality.

Prefer

Retrieval-friendly source files

  • One clear topic or bounded domain per file.
  • Stable headings, explicit terminology, and short sections.
  • Document title, owner, version, effective date, and status.
  • Canonical definitions and examples near each other.
  • Claim-level source references where authority matters.
  • Change log and deprecation markers.
Avoid

Knowledge anti-patterns

  • Using knowledge files as hidden system instructions.
  • Uploading multiple conflicting versions without status labels.
  • Dense slide decks as the only source of truth.
  • Images containing essential text with no text equivalent.
  • Unbounded “everything” files that weaken retrieval precision.
  • Mixing public, confidential, and restricted content without controls.
Recommended knowledge-file pattern
  • 00-domain-map.md — scope, vocabulary, source hierarchy, and routing guidance.
  • 10-foundations.md — stable principles and definitions.
  • 20-procedures.md — operational steps, decision rules, and exceptions.
  • 30-patterns.md — approved patterns, examples, and anti-patterns.
  • 40-evidence.md — source-backed claims, research summaries, and confidence.
  • 90-release-notes.md — dated changes, deprecated guidance, and migration notes.
Retrieval rule Put behavior in instructions. Put evidence in knowledge. Put live state behind search, apps, actions, or an API. This separation is the assistant equivalent of keeping application code, reference data, and runtime state in distinct layers.
05

Use instructions as an executable operating model

Effective instructions are explicit, positive, structured, testable, and paired with examples. OpenAI’s current guidance recommends clear step structure, concrete directives, headings, and examples for classifications.

01

Identity and mission

State the role, primary outcome, target audience, and the conditions under which the GPT is useful.

02

Scope and authority

Define supported tasks, excluded tasks, source precedence, and when the GPT must distinguish facts, inference, and recommendation.

03

Operating workflow

Describe the sequence from intake to classification, retrieval, reasoning, tool use, validation, response, and follow-up.

04

Tool policy

Specify when each tool is required, forbidden, optional, or requires confirmation. Describe minimum data sent to third parties.

05

Output contract

Define ordering, structure, evidence expectations, citations, uncertainty language, schemas, and artifact quality requirements.

06

Failure and recovery

Explain what to do when knowledge is missing, tools fail, permissions are insufficient, sources conflict, or the user asks for an unsupported operation.

instructions-skeleton.md
# Role
You are [specific role] for [audience]. Your primary outcome is [measurable outcome].

# Scope
Support:
- [task]
- [task]

Do not claim authority for:
- [excluded domain]
- [operation requiring another system]

# Source policy
1. Prefer [canonical source class].
2. Use uploaded knowledge for stable reference material.
3. Use live tools for time-sensitive state.
4. Label facts, assumptions, inferences, recommendations, and unresolved questions.
5. Cite sources using [required format].

# Operating workflow
When a request arrives:
1. Classify the user outcome and risk.
2. Identify missing information that materially changes the result.
3. Retrieve only the minimum relevant knowledge.
4. Use tools according to the tool policy.
5. Validate claims, permissions, and output structure.
6. Lead with the decision or result when evidence supports it.
7. State limitations and the next action.

# Tool policy
- [Tool]: use when [trigger].
- [Tool]: require confirmation before [consequential action].
- Send only the minimum necessary data to external services.
- Never represent a failed tool call as a completed action.

# Output contract
- Use [format].
- Include [evidence / trade-offs / controls].
- Keep terminology consistent with [domain vocabulary].
- For consequential recommendations, include alternatives and success criteria.

# Failure and recovery
- Missing evidence: state the gap and what would resolve it.
- Conflicting sources: present the conflict and source precedence.
- Tool failure: preserve partial work, report the failure, and provide a recovery path.
- Insufficient permission: do not route around authorization controls.

# Examples
## Acceptable
[representative input and expected properties]

## Unacceptable
[representative failure and why it fails]
06

Capabilities, apps, and actions

Tools should follow the user outcome and assurance model. A GPT can use apps or custom actions, but not both at the same time.

Built in

Capabilities

Current documented options include web search, image generation, Canvas, and Code Interpreter & Data Analysis. Availability varies by account, workspace, and region.

User-connected

Apps

Apps let the GPT use tools and services connected by the user. Workspace controls and user confirmation may apply. Apps can also constrain public sharing.

Builder-defined

Actions

Actions connect to REST APIs through OpenAPI JSON or YAML. Authentication options include none, API key, and OAuth.

Action engineering requirements
  • Use stable, unique operation IDs and precise endpoint descriptions.
  • Keep schemas narrow. Do not expose broad administrative APIs to a conversational surface.
  • Separate read operations from consequential write operations.
  • Use OAuth for user-bound access. Use API keys only for appropriate server-to-server patterns.
  • Require explicit confirmation for irreversible, externally visible, financial, access-control, or destructive changes.
  • Return structured error responses that the GPT can explain and recover from.
  • Public GPTs with actions require a valid privacy policy URL for each public action.
Model and workspace constraints Custom actions are subject to supported-model constraints and workspace domain allowlists. If an Enterprise or Edu workspace permits no action domains, actions cannot execute. Pro mode is not available for GPTs using custom actions under the current documentation.
07

Enterprise governance is part of the build

In managed workspaces, GPT availability, creation, sharing, integrations, and ownership are policy-controlled. Governance cannot be retrofitted reliably after adoption.

Control plane

Workspace controls

  • RBAC for who can create, edit, share, or access GPTs.
  • Third-party GPT access policy.
  • Apps enablement for workspace-created GPTs.
  • Allowed-domain restrictions for custom actions.
  • Sharing boundaries: invite-only, workspace, link, or broader.
Lifecycle

Ownership and audit

  • Can chat, Can view settings, and Can edit collaboration levels.
  • Ownership reassignment and continuity when a creator leaves.
  • Conversation availability through the Compliance Platform.
  • Workspace analytics for adoption and usage signals.
  • Version history and authentication reconfiguration after rollback.
A

Data classification

Declare allowed data classes, prohibited data, cross-border constraints, and whether content may leave the workspace through an app or action.

B

Least privilege

Scope actions to the smallest operation and OAuth scope. Avoid shared credentials where a user-bound authorization model is required.

C

Human control

Define confirmation thresholds, reversible versus irreversible actions, escalation owners, and recovery procedures.

D

Operational ownership

Name a product owner, knowledge owner, integration owner, risk approver, and support path. A GPT without an accountable owner is an unmanaged service.

08

Evaluation and release gates

Preview is necessary but insufficient. OpenAI recommends representative evaluation questions; an enterprise release should add adversarial, authorization, dependency, and regression coverage.

Behavior

Core evaluation dimensions

  • Task success and answer completeness.
  • Instruction adherence and output contract.
  • Knowledge retrieval precision and citation fidelity.
  • Uncertainty calibration and conflict handling.
  • Correct tool selection and parameter construction.
  • Consistent performance across available models.
Risk

Adversarial evaluation dimensions

  • Prompt injection inside user input and retrieved content.
  • Attempts to reveal hidden instructions or restricted sources.
  • Cross-user or cross-tenant data leakage.
  • Unauthorized writes and confirmation bypass.
  • Stale, conflicting, or poisoned knowledge.
  • Action timeout, partial success, duplicate execution, and rollback.
G1

Functional gate

Representative tasks meet the agreed success rubric. Critical use cases have deterministic expected properties, not merely “looks good.”

G2

Evidence gate

Consequential claims are sourced, source precedence is respected, and the GPT does not invent citations or silently merge conflicting versions.

G3

Authorization gate

Read and write paths enforce intended identity, entitlements, confirmation, domain allowlists, and least-privilege scopes.

G4

Resilience gate

Tool failure, rate limiting, stale dependencies, and partial completion produce truthful status and a recoverable next step.

G5

Presentation gate

Responses remain usable on mobile, preserve hierarchy, avoid misleading confidence, and meet required accessibility and artifact quality standards.

G6

Lifecycle gate

Ownership, support, version, rollback, knowledge refresh, audit, and retirement criteria are documented before broad release.

09

A production-grade generation workflow

The workflow begins with an outcome and ends with an owned, testable service. Tool selection occurs only after the communication and operating model are clear.

01

Frame the outcome

Define user, decision, task, frequency, risk, evidence needs, success measure, and what must remain human-owned.

02

Select the runtime

Choose Custom GPT, workspace agent, or API agent based on deployment, integration, authorization, scheduling, channel, and operational requirements.

03

Model the domain

Separate concepts, sources, rules, workflows, tools, outputs, exceptions, risks, and ownership before writing instructions.

04

Assemble the package

Generate metadata, instructions, knowledge corpus, integration schemas, privacy notes, evaluation fixtures, and release checklist.

05

Implement and preview

Transfer the package into the builder, validate capabilities, connect integrations, test real prompts, and tighten instructions before adding more tools.

06

Red-team and remediate

Run functional, evidence, injection, authorization, failure, and presentation tests. Repair failures before publishing.

07

Release progressively

Start private, then invite-only or limited workspace access, then broaden only after telemetry and user behavior support the decision.

08

Operate and evolve

Review analytics, incidents, unanswered questions, action failures, knowledge freshness, and regression results. Version every material change.

11

Portable build manifest

This manifest is not a native OpenAI import format. It is a durable source-of-truth representation that can generate the builder fields, knowledge bundle, action schema, tests, and release record.

gpt-package.yaml
schemaVersion: "1.0"
kind: custom-gpt-package
metadata:
  id: html-systems-architect
  name: HTML Systems Architect
  owner: Jesse Graupmann
  version: 0.1.0
  status: draft
  generatedAt: 2026-07-21T20:24:55-04:00
  provenance:
    method: AI-assisted research, synthesis, implementation, and red-team review
    sources:
      - OpenAI Help Center
      - OpenAI Developer Documentation

product:
  outcome: >-
    Generate and audit durable, mobile-first, accessible HTML artifacts
    using evidence-backed communication and UI engineering standards.
  audiences:
    - executives
    - architects
    - engineers
    - designers
  deploymentBoundary: custom-gpt
  exclusions:
    - unattended production deployment
    - bypassing workspace authorization
    - representing unverified research as fact

builder:
  description: >-
    Designs, rebuilds, and audits professional single-file HTML experiences
    with mobile-first layout, accessibility, provenance, and release validation.
  conversationStarters:
    - Audit this HTML for overflow, sticky-header collisions, alignment, and contrast.
    - Turn this research into a self-contained mobile-first HTML handbook.
    - Red-team this interface against our artifact quality release gates.
    - Rebuild this page with a calibrated reset and deliberate spacing system.
  capabilities:
    webSearch: true
    imageGeneration: false
    canvas: true
    codeInterpreter: true
  integrationMode: none

instructions:
  source: instructions.md
  requiredPolicies:
    - separate facts, assumptions, inferences, recommendations, and open questions
    - plan communication before choosing presentation
    - validate runtime interactions before release
    - enforce component-level WCAG 2.2 AA contrast
    - preserve provenance and generated timestamp

knowledge:
  files:
    - 00-domain-map.md
    - 10-mobile-first-layout.md
    - 20-native-html-and-css.md
    - 30-accessibility-and-aria.md
    - 40-visual-hierarchy-and-typography.md
    - 50-artifact-quality-battle-scars.md
    - 60-provenance-and-metadata.md
    - 90-release-checklist.md

assurance:
  evaluationSuite: evals/gpt-evals.yaml
  releaseThresholds:
    criticalFailures: 0
    highSeverityFailures: 0
    representativeTaskPassRate: ">= 0.90"
    citationFidelity: ">= 0.95"
  requiredGates:
    - functional
    - evidence
    - authorization
    - resilience
    - accessibility
    - responsive-layout
    - lifecycle

release:
  initialVisibility: private
  rollout:
    - creator-preview
    - invited-reviewers
    - limited-workspace
    - broader-workspace
  rollback: restore prior GPT version and revalidate action authentication if used
  reviewCadence: monthly-or-material-change
12

Sources, provenance, and confidence

Product facts were verified against official OpenAI documentation available on July 21, 2026. Architectural recommendations are synthesis and should be validated against workspace policy, legal requirements, and the specific integration.

GPTs in ChatGPT

Definition, availability, components, apps versus actions, privacy, conversation access, and external embedding boundary.

Creating and editing GPTs

Web-only creation, configuration fields, knowledge limits, capabilities, preview, and version history.

Configuring actions in GPTs

Authentication options, OpenAPI schema requirements, action-domain restrictions, privacy policies, and approval behavior.

Managing GPT access in Enterprise and Edu workspaces

RBAC, sharing, app controls, action-domain allowlists, collaboration, ownership continuity, compliance, and analytics.

Sharing and publishing GPTs

Private, link, workspace, and GPT Store sharing requirements, including public-action privacy policy requirements.

File Uploads FAQ

File retention, deletion behavior, visual retrieval differences, and business-data training treatment.

Troubleshooting GPTs

Capability availability, apps/actions conflicts, publishing blockers, file generation requirements, and escalation evidence.

GPT Actions

Action execution model, REST integration, function calling, and retrieval versus write use cases.

Getting started with GPT Actions

Schema, authentication, action testing, OAuth callback, and representative evaluation guidance.

ChatGPT workspace agents

Agent builder, tools, apps, custom MCPs, skills, files, schedules, channels, and API triggers.

Agent Builder

Visual workflow composition, live preview, external deployment, and code export.

Confidence statement High confidence for documented product capabilities and limits. Medium confidence for comparative architecture recommendations because the optimal boundary depends on workspace entitlements, regional availability, risk tolerance, and the target operating model. Product behavior can change; re-verify before production rollout.