> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# ChatGPT

> Run ChatGPT workspace agents and continue after they finish.

## Exports

```ts theme={null}
import { chatgpt, chatgptAccount } from "automate.ax/chatgpt"
```

* `chatgpt` contains the packaged ChatGPT actions.
* `chatgptAccount("name")` selects a named ChatGPT connection.

## Setup

Ask a ChatGPT workspace administrator to enable Workspace agents and personal access tokens. Create an access token with the **Workspace Agents** scope, then connect it in Automate.ax. See <a href="https://developers.openai.com/workspace-agents/authentication" target="_blank" rel="noreferrer">Workspace Agent authentication</a> for the current ChatGPT requirements.

Publish the agent to an API trigger channel and copy its `agtch_` identifier into your automation.

## Actions

* [Get workspace agent run](/reference/integrations/chatgpt/actions/get-workspace-agent-run)
* [Run workspace agent](/reference/integrations/chatgpt/actions/run-workspace-agent)
* [Trigger workspace agent](/reference/integrations/chatgpt/actions/trigger-workspace-agent)

ChatGPT's Workspace Agents API returns run status and a conversation URL. It does not expose the agent's response to downstream automation.
