场景 014 · Codex Use Case

从 Slack 发起编程任务

在 Slack 中提及 @ChatGPT,在符合条件且由工作区共享的 Codex Cloud 环境中请求仓库工作,然后在会话中审阅结果。

IntegrationsWorkflow
Kick off coding tasks from SlackIntegrationsWorkflow

原文核对:2026-10-13 · 中文正文 · 英文提示词与演示

场景定位

在 Slack 中提及 @ChatGPT,在符合条件且由工作区共享的 Codex Cloud 环境中请求仓库工作,然后在会话中审阅结果。

难度
入门
时间跨度
5 分钟

适合用于

  • Slack 会话已经提供足够背景、适合异步交接的任务。
  • 通过 Slack 处理 issue 分诊、缺陷修复或范围明确的实现工作的团队。

起步提示词

英文原文 · 可复制后按实际材料修改

@ChatGPT investigate the issue described in this thread for [repository].
Use the workspace-shared Cloud environment for [project or environment].
Make the smallest useful fix, run the relevant checks, and report the result here.

使用步骤

  1. 请工作区管理员按照 Slack 设置指南启用 ChatGPT 应用。
  2. 进行仓库工作前,确认已启用 Cloud delegation,且符合条件的工作区共享环境已有发布版本。Enterprise 工作区还应遵循环境共享指南。
  3. 把起步提示词复制到已启用的 Slack 频道或会话,注明仓库、相关背景、约束和期望结果。
  4. 完成连接或批准提示,然后审阅结果和报告的检查。若提供 Follow along,可通过它查看编程任务。
  5. 相关后续工作在同一会话中提及 @ChatGPT。使用相同执行账号的后续请求可以继续原任务;另一个执行账号可能启动独立任务。若要使用不同 Cloud 环境,应开始新的对话。

实用建议

  • 如果会话背景不足,请概述问题与预期行为。
  • 明确仓库或目标工作区共享环境。此 Slack 流程不包含个人 Cloud 环境。
  • 确认实际运行任务的账号具备所需环境、仓库和服务的访问权限。Slack 回复并不意味着所有人都能访问编程任务。
  • 保持任务范围明确;大型代码库中应指出相关文件或目录。
  • 合并前审阅变更,并确认报告中的测试覆盖了请求的行为。
展开英文原文对照

Mention @ChatGPT in Slack to request repository work in an eligible workspace-shared Codex Cloud environment, then review the result in the thread.

How to use

  1. Have your workspace admin enable the ChatGPT app in Slack using the Slack setup guide.
  2. For repository work, confirm that Cloud delegation is enabled and an eligible workspace-shared environment has a published version. For an Enterprise workspace, follow the environment sharing guidance.
  3. Copy the starter prompt into an enabled Slack channel or thread. Include the repository, relevant context, constraints, and the result you want.
  4. Complete any connection or approval prompts, then review the result and reported checks. When available, use Follow along to inspect the coding task.
  5. Mention @ChatGPT in the same thread for related work. Follow-ups that use the same account to run the task can continue it; another execution account may start a separate task. Start a new conversation to use a different Cloud environment.

Tips

  • Summarize the issue and expected behavior if the thread doesn’t already provide enough context.
  • Name the repository or intended workspace-shared environment. Personal Cloud environments aren’t included in this Slack flow.
  • Check that the account running the task has the required environment, repository, and service access. A Slack reply doesn’t give everyone access to the coding task.
  • Keep the request scoped and name relevant files or folders in a large codebase.
  • Before merging, review proposed changes and check that the reported tests cover the requested behavior.