# Connect claude.ai or ChatGPT

Add Assemblified as a custom connector in claude.ai or ChatGPT using a one-time connection code.

import { Aside, Steps, CardGrid, LinkCard } from "@astrojs/starlight/components";
import Screenshot from "~/components/Screenshot.astro";
import adminConnectCode from "~/assets/screenshots/assemblified/agent-access/shared/01-admin-connect-code.png";
import DocUpdated from "~/components/DocUpdated.astro";

Web-chat apps — **claude.ai** (in the browser) and **ChatGPT** — connect to Assemblified as a **custom connector**. Unlike desktop and CLI clients, they don't accept a pasted API key; they use a secure sign-in flow that you approve with a **one-time connection code** generated inside Assemblified.

Web-chat access is **read-only by default** — you choose the scope (read-only, or read & write) when you generate the connection code, and the chat is granted exactly that scope when you approve.

## On this page

- Before you start
- Step 1 — Generate your connection code
- Step 2 — Add the connector in your app
- Approving the connection
- If the code expires

## Before you start

- An active Assemblified subscription (API & agent access is in open beta).
- A claude.ai or ChatGPT account that supports adding a custom connector.

You don't need to create an [API key](/features/agent-access/api-keys/) for this flow — the connection code replaces it.

## Step 1 — Generate your connection code

Both apps start the same way: in Assemblified, generate the code you'll paste when the app asks you to authorize. Open **Settings → Connections → API & agent access**, as shown in the screenshot below.

{/* prettier-ignore */}
<Steps>
1. Open **Settings → Connections → API & agent access**.
2. In the **Connect a web chat (claude.ai / ChatGPT)** card, pick an access level — **Read only** (the default) or **Read & write** (lets the chat create and update your BOMs, subassemblies, and materials — see [Operating BOMs & subassemblies](/features/agent-access/operating-boms-and-assemblies/)).
3. Click **Connect ChatGPT / Claude**.
4. Assemblified shows a **connector URL** (it ends in `/mcp-agent`) and a **one-time connection code**, both valid for **10 minutes**. Use the copy buttons — you'll need both in your app.
</Steps>

{/* prettier-ignore */}
<Screenshot
  src={adminConnectCode}
  alt="The API & agent access page in Assemblified showing the Connect ChatGPT / Claude button, the connector URL ending in /mcp-agent, and a one-time connection code valid for 10 minutes"
  caption="Settings → API & agent access → Connect ChatGPT / Claude generates the URL and one-time code."
/>

{/* prettier-ignore */}
<Aside type="tip">
Generate the code right before you add the connector — it expires in **10 minutes** and can only be used once.
</Aside>

## Step 2 — Add the connector in your app

The steps differ slightly per app. Follow the walkthrough for the one you're using:

{/* prettier-ignore */}
<CardGrid>
	<LinkCard
		title="Connect ChatGPT"
		href="/features/agent-access/connect-chatgpt/"
		description="Enable developer mode, create the app, and authorize — with screenshots."
	/>
	<LinkCard
		title="Connect claude.ai"
		href="/features/agent-access/connect-claude/"
		description="Add a custom connector and authorize — with screenshots."
	/>
</CardGrid>

## Approving the connection

The authorization screen runs in a normal browser tab (not inside the Shopify admin), which is why it asks for the connection code: the code is what proves the request came from _you_, signed in to _your_ store. After you approve:

- The approval screen shows the scope the code was generated with — the button reads **Approve read-only access** or **Approve read & write access** accordingly. The connector is granted exactly that scope, scoped to your single store.
- Assemblified records **which app** connected, **who** granted it, **when**, and the **scope**, in the **Connected apps** table on the API & agent access page.
- The connection stays connected until you revoke it. You don't need to reconnect it from time to time.
- Asked which connection it is using, the chat reports your store, the scope and the app's name. A connection made before the app's name was recorded reports _Web chat_ instead.

{/* prettier-ignore */}
<Aside type="note">
You can revoke a connected app at any time from the **Connected apps** table — see [Managing access & security](/features/agent-access/managing-and-security/). A connection keeps the scope it was granted; to change it, revoke the app and reconnect with a fresh code.
</Aside>

## If the code expires

The connection code is **single-use** and expires after **10 minutes**. If you take too long, or the app reports the code is invalid:

{/* prettier-ignore */}
<Steps>
1. Go back to **Settings → Connections → API & agent access**.
2. Click **Connect ChatGPT / Claude** again to generate a fresh code.
3. Paste the new code on the authorization screen.
</Steps>

## See also

- [Connect ChatGPT](/features/agent-access/connect-chatgpt/) — the step-by-step ChatGPT walkthrough.
- [Connect claude.ai](/features/agent-access/connect-claude/) — the step-by-step claude.ai walkthrough.
- [Connect a desktop / CLI client](/features/agent-access/connect-a-client/) — the API-key flow for Claude Desktop, Claude Code, and Codex.
- [Managing access & security](/features/agent-access/managing-and-security/) — revoking connected apps.

<DocUpdated date="2026-11-14" />