场景定位
用 ChatGPT Sites 从一个 chat 中构建、测试、部署并分享内部应用。适合把重复团队流程做成轻量交互工具,并在需要时使用 D1 保存结构化数据、R2 保存上传文件。
- 难度
- 中级
- 时间跨度
- 约 1 小时
适合用于
- 希望把重复工作流转成互动应用的团队
- 需要轻量结构化持久化、文件上传或 workspace-oriented sharing 的应用
- 希望在一个 chat 中完成构建、测试、部署和迭代的内部工具
Starter Prompt
起步提示词
Build and deploy an internal app for [team or workflow].
Goal:
- [what the app should help people do]
- [who should use it]
- [source docs, data, or connected services ChatGPT should inspect]
Requirements:
- Keep the first version focused on one useful workflow.
- Use D1 for structured data persistence.
- Use R2 for user-uploaded files if needed.
- Test the main flow, persistence, and responsive layout before deploying.
Make it available to all workspace users. 在 ChatGPT 中尝试 在一个 chat 中构建和部署
Sites 是 ChatGPT 中的托管服务。你可以要求 ChatGPT 创建一个 app,它可以构建项目、运行测试、部署,并返回可分享 URL。
范围可以从简单静态站点到 full-stack JavaScript 或 TypeScript web app。Sites 因此适合聚焦的内部工具:onboarding dashboards、enablement hubs、searchable resource libraries、lightweight workflow apps 和 reporting views。
从一个有用 workflow 开始。清晰的第一版比“重建整个内部系统”的宽泛请求更容易 review、deploy 和改进。
提供工作流上下文
告诉 ChatGPT 这个 app 面向谁、用户要完成什么、它应该检查哪些 source material、哪些内容要跨 session 保留。
明确预期分享范围,并要求 ChatGPT 在部署前测试主流程。也可以使用 Plugins 从内部来源获取或刷新数据。
- 用户和工作流:谁使用,完成什么,成功标准是什么。
- 来源材料:docs、data、connected services、上传文件或团队规则。
- 持久化:哪些状态、配置、文件或记录需要保存。
- 部署前验证:主流程、持久化、响应式布局和访问范围。
有意识地选择存储
许多内部应用需要持久化。Sites 支持两类存储 primitive:D1 和 R2。
D1 是 SQLite-compatible database,适合 checklist state、bookmarks、filters、annotations、configuration 和 file metadata 等结构化数据。
R2 object storage 适合 uploaded documents、images 或其它需要持久化的文件 bytes。结构化 metadata 放在 D1,大文件对象放在 R2。只读资源页或静态 microsite 可能两者都不需要。
管理和分享项目
你可以管理谁能访问已部署项目。新项目在审查内容、数据处理和目标受众前,先保持 private。
根据账号和 workspace 设置,可以分享给邀请用户、所有 workspace users,或 anyone with the link。
分享只允许访问项目,不会允许他们编辑项目。要修改访问权限,可以打开 ChatGPT 中的 Sites,或直接要求 ChatGPT 调整。
- People you invite.
- Everyone in your workspace.
- Anyone with the link.
示例
Sites showcase 包含带完整 prompts 的示例。可以把这些示例作为起点,再围绕团队自己的工作流和来源材料收窄 prompt。
- Onboarding Hub:first-week checklist、resources、notes 和 uploaded documents,D1 保存用户状态和文件 metadata,R2 保存文件 bytes。
- Enablement Hub:可搜索 training library、filters 和 D1-backed saved bookmarks。
- Pulse Dashboard:metrics、trends 和 lineage details,用 D1 保存配置和 cached snapshots。
- Sparkboard:employee idea intake、authenticated submissions、voting、comments、status boards 和 contributor rankings。
- Launch Cal:product launches 月历、filters、risk signals、checklists 和 connected-source references。
- Event Planning Hub:event requests、approvals、templates、milestones、policy readiness 和 connected planning resources。
Prompt Library
建议提示词
先做一个 workflow
Build the first version of this internal app around one workflow only. Identify the user, main task, required source material, persistence needs, and the smallest deployed version worth sharing with the workspace. 部署前检查
Before deploying, test the main flow, persistence, responsive layout, and access settings. Report what you tested and any data-handling assumptions.