ChatGPT workspace agent: connect an app with write approvals

Day 3, 25 minutes · beginner

Goal of this lessonConnect one app to your workspace agent as an exercise, keep write actions on Always ask and add one action constraint you have tested.

Why it matters

Is it safe to let a workspace agent use your apps? An agent that only reads files is safe and limited. The moment it can use an app, it can also act: post a message, change a document, send an email. That is where agents become useful, and where one wrong instruction can do damage that a wrong answer never could.

ChatGPT gives agent builders three safety controls for apps: which account the agent uses, whether it must ask before a write action, and action constraints that limit what an app may be asked to do. They are easy to skip when you are in a hurry. They are also the difference between "the agent drafted a reply" and "the agent sent it to the wrong customer".

At the end of today your agent has one app connected as an exercise, with write actions on Always ask and one action constraint you wrote and checked yourself.

What an agent can use

OpenAI's workspace agents page lists what the builder can add, depending on your workspace settings:

  • Apps, such as Google Calendar, Google Drive, Slack and SharePoint. Which apps you can add depends on what is enabled in your workspace.
  • Custom MCPs, your company's own connections. Setting these up is owner-only on a shared agent and usually a job for someone technical.
  • Tools such as web search and image generation.
  • Skills: a defined process or specialised instructions the agent follows. You can create one, upload a skill file or pick one you already have.
  • Files, as in lesson 2.

Whose account does the agent use?

For each app connection you choose how the agent signs in:

  • End-user account. Each person who runs the agent signs in with their own account. Each person then connects their own account.
  • Agent-owned account. The agent uses one shared connection, so people running it do not sign in. OpenAI says to use a service account for this when possible, not a personal account, and to limit its access to what the agent needs.

Here is the catch for lesson 4: in Slack, every app connection of the agent must be a shared connection. If you share a connection made with your own account, other people in the channel may trigger actions through your account. A service account is an account made for a system rather than a person; your admin or IT team creates one. So for today, treat the app connection as an exercise in ChatGPT only, and decide with your admin before it goes to Slack.

Write actions: Always ask

A write action is anything that changes something: send, post, edit, delete. OpenAI's page says write actions for apps are set to Always ask by default during an agent run. Depending on the app you may also see Never ask, or a custom setting per action. Leave it on Always ask for anything that can send, post, edit or delete, and read the approval request before you allow it.

Action constraints

An action constraint is a rule that limits what the agent may ask an app to do. OpenAI's examples: only send email to recipients at one company domain, or only read from one specific Google Doc. You describe the rule in plain words, the builder turns it into a rule, and you review it before it is added.

One limit to remember: a constraint controls what the agent asks the app for. It does not filter what the app sends back. If an allowed search returns a document with sensitive content, the constraint does not hide it. So a constraint is an extra lock, not a replacement for giving the connection less access in the first place.

The steps

  1. Pick one app that your workspace already allows, ideally with a test account or a test folder.
  2. Choose the account type. For a test in ChatGPT, your own account is fine. For a shared agent, plan a service account with your admin.
  3. Check the write setting is Always ask.
  4. Add one action constraint that keeps the agent inside one folder, one document or one domain.
  5. Test it in Preview: ask for something inside the rule and something outside it.

Pick your tool below and follow the steps.

Example: one folder only

Freya wanted the Workshop Helper to read the latest price list from Google Drive instead of an uploaded copy. She connected Google Drive with her own account as a test and wrote the constraint "Only read the document called Saltmarsh price list 2027". In Preview she asked for the price of a lightbox (answered, with the document name) and then for "the payroll file", which the agent said it could not open under its rules. Before Slack, she asked Bastiaan for a service account with access to that one document only.

Today's actions

Ticks are not saved without an account

Do it in ChatGPT

ChatGPT

  1. Open your agent from Built by me and select Edit agent to open the builder.
  2. Select Browse apps (in the Apps section if you see one) and pick an app your workspace allows. Connect it if you are asked to.
  3. Choose the authentication type: End-user account for a test in ChatGPT, or Agent-owned account only with a service account your admin set up.
  4. Check that write actions for the app are set to Always ask. Do not change this to Never ask.
  5. Go to the connected app. In the Safety section select Add constraint, describe the rule in plain words and select Generate.
    Only read the document called Saltmarsh price list 2027. Do not read, create or change any other file.
  6. Read the generated rule. If it matches what you meant, select Update to save it to the agent.
  7. Select Preview and ask for something inside the rule, then something outside it. Check that the agent does not carry out the second one.

Note: You can add a constraint only if you can edit the agent and see Safety constraints in the app's settings, and only for supported apps. You can also describe a constraint in the conversational builder. On a live agent, select Update to save changes.

Paid planNeeds a ChatGPT Business, Enterprise or Edu workspace with agent building on and the app enabled by your admin.

Checked on 4 December 2026 · Source: OpenAI Help Center: ChatGPT Workspace Agents (opens in a new tab)

Create a free account to save your progress. Sign in or sign up