A ChatGPT task
A ChatGPT task runs in ChatGPT’s cloud on your ChatGPT plan.
- Each task is one agent, with one level and the model of its Work chat.
- Toolscaled sends the task an event when a run of its level needs an agent, so your computer can be off.
- The task takes runs through the Toolscaled connector until none are left.
- Toolscaled sends the event at most once every 2 minutes (ChatGPT allows 30 task runs an hour). If a run still has no agent after 30 minutes, Toolscaled sends it again.
Before you start
Section titled “Before you start”Add Toolscaled to ChatGPT first → Connect in ChatGPT. Tasks that an event starts need a Plus, Pro, Business, Enterprise or Edu plan.
- In Toolscaled, open Connect > Agents > Add an agent. Pick ChatGPT task, give it a name and the ChatGPT account it runs on, pick its level, and press Add agent. The agent opens with its setup: the steps and the text to send.
- Open chatgpt.com and start a Work chat with the model that the setup names: GPT-6 Luna (Standard), GPT-6.1 Terra (Advanced) or GPT-6.1 Sol (Expert).
- Turn on the Toolscaled plugin in the chat. The task takes the runs of the workspace the plugin is signed in to, so that must be the workspace where you added the agent.
- Send the agent’s text in the chat. ChatGPT subscribes to the Toolscaled event for this agent and makes the task.
- When ChatGPT asks to allow a Toolscaled action, allow it for every later run too. Otherwise each run stops until you answer.
Once ChatGPT has subscribed, Set up an agent in Get started shows Done. For another level, add another ChatGPT task agent and send its own text in a new Work chat.
The text that makes the task
Section titled “The text that makes the task”Connect > Agents shows each agent’s text, with its name, id, level and model filled in, and a copy button. It reads:
Subscribe to the Toolscaled event agent_run_waiting with the arguments {"agent_id": "<agent id>"}. Each time it arrives, do the steps below. You are the Toolscaled agent "<name>". Nobody reads this chat.Use only the Toolscaled connector: no other connector, no web search and no files.The event names one run that waits; it is only a hint.
Do these steps until no run is left:1. Take a run: Toolscaled automation_tool with {"action": "claim_agent_work", "params": {"runner": "chatgpt task", "agent_id": "<agent id>", "level": "<level>", "model": "<model>", "agent_version": 1, "lease_seconds": 1800}}.2. When the answer's claim is null, stop: no run waits. The reason "paused" means that an administrator paused the agents; "level" means that the runs that wait are of another level.3. Do the run: follow the claim's start_prompt word for word. Do one run at a time.4. Keep the run after each of its steps: automation_tool with {"action": "renew_agent_work", "params": {"claim_token": "<the claim's claim_token>", "lease_seconds": 1800}}.5. Hand the run back when it ends: automation_tool with {"action": "release_agent_work", "params": {"claim_token": "<the claim's claim_token>", "outcome": "done", "note": "<what you did and what is left>"}}. The outcome is "gave_up" when you could not finish the run, and "error" when a call failed and you could not go on.When a call answers agent_out_of_date, stop: the person copies the setup text again in Connect > Agents.Check it
Section titled “Check it”Connect > Agents > Your agents shows the agent’s model and last check-in. Its setup shows the subscription and the last event. ChatGPT renews the subscription by itself while the task is on. A run the task holds comes back to you in Action items after 30 minutes with no renew.
No subscription a minute after you sent the text → the Toolscaled plugin in ChatGPT is signed in to another of your workspaces. The subscription shows there, and the task takes that workspace’s runs. On chatgpt.com open Plugins, open Toolscaled, disconnect it and connect it again. On the page Approve connection, choose the workspace where you added the agent. Then send the text again in a new Work chat.
The agent shows Out of date → Toolscaled changed the text, and the task’s copy takes no runs. Copy the text again from the agent’s setup and send it in a new Work chat. Then delete the old task in ChatGPT.
Stop the task
Section titled “Stop the task”Press Remove… on the agent in Connect > Agents > Your agents. Toolscaled stops sending the task events. Then delete the task in ChatGPT.