Skip to content
GuideIntermediate

Connect your agent to ChatGPT and Codex

Read customer conversations, check bookings and update your agent from ChatGPT, or from Codex next to your code. Add AssistantLabs in ChatGPT and sign in, or connect Codex with a few lines of config.toml.

7 min readUpdated Nov 2026AssistantLabs Team

What you get

Connect your AssistantLabs workspace to ChatGPT, then ask in plain words: who is waiting for a reply, what is booked tomorrow, which customers asked about the price. Anything that reaches a customer is marked as an action, which ChatGPT can ask you to confirm.

  • Conversations — see who is waiting, search what customers said, label a conversation and reply to a customer.
  • Contacts — look up customers and companies, add a contact and update a contact's details.
  • CRM — find, add and change the records your business keeps, such as properties or contracts, add kinds of record and their fields, and set up CRM automations.
  • Leads — see the board, add and move leads, and log what happened with each one.
  • Bookings — check free slots, list appointments, and book, confirm, cancel or complete them.
  • Your AI agent — add instructions, change its tone, and update its FAQ, links, catalog, guidelines and business details.
  • Helpdesk, tasks and social posts — work through tickets, keep the task board moving, and write and publish posts.
  • Reports — your money summary, open invoices and payments, marketing overview, ads, campaign results and landing pages.
  • Marketing — plan your marketing strategy, write email and WhatsApp templates, draft messaging campaigns, and set up Instagram rules that reply to comments and send DMs.
  • Ads — prepare a Click-to-WhatsApp ad, put it on your Meta ad account paused, and pause a running ad. Nothing here spends ad budget.
Which workspaces? We support ChatGPT Business, Enterprise and Edu workspaces.

Prefer a terminal? Codex connects with the same AssistantLabs account from a config file. It has its own section below.

Before you start

  • An agent that has had real conversations. If yours is brand new, do the one-week playbook first. There is nothing to ask about yet.
  • An organization, with that agent in it. A connection reaches one organization's agents. If you have none: Account → Organization → Create Organization, then add the agent under Assistants on the same page. Creating the organization does not move existing agents into it.
  • A supported ChatGPT workspace. Your workspace admin may need to approve the plugin first, if your workspace limits which plugins people can add.

Connect ChatGPT

Nothing is downloaded and nothing runs on your computer. You add AssistantLabs in ChatGPT and sign in.

1. Open AssistantLabs in ChatGPT

Install in ChatGPT →

Open AssistantLabs Business Agent in ChatGPT and click Install plugin. You can also find it by name under Plugins in ChatGPT.

2. Sign in and choose what it can reach

ChatGPT sends you to sign in with your AssistantLabs account. Our consent screen shows what ChatGPT can reach:

  • Which agents. A connection reaches one organization's agents.
  • Which products. Leave off any product you would rather not share.
  • The exact permissions. Only what ChatGPT's tools can use is offered.
Think about sending before you approve. These start unticked: sending messages, contacts, booking, publishing posts, ads, helpdesk tickets, WhatsApp templates, campaigns and email templates, the marketing strategy, Instagram automations, and CRM records, record types and automations. Changing your agent starts ticked, and it reaches your customers from their next message, so untick it if you only want ChatGPT to read. Leave the rest off and ChatGPT can still read. A tool that needs one says which permission to tick.

3. Ask

Open a chat, pick AssistantLabs and ask who is waiting for a reply. Reading runs straight away. Anything that reaches a customer or changes something is marked as an action, which ChatGPT can ask you to confirm.

The address behind the plugin: you do not need to paste it, but your IT team may ask. It is https://mcp.assistantlabs.io/chatgpt/mcp

Connect Codex

Codex keeps its MCP servers in ~/.codex/config.toml, and the CLI, the ChatGPT desktop app and the IDE extension all read the same file. Set it up once and each of them has it.

For one project only: put the same table in .codex/config.toml inside a trusted project.

Add the server with auth = "oauth":

~/.codex/config.toml
# ~/.codex/config.toml [mcp_servers.assistantlabs] url = "https://mcp.assistantlabs.io/mcp" auth = "oauth" tool_timeout_sec = 120

Then log in. Your browser opens on the consent screen:

Terminal
codex mcp login assistantlabs codex mcp list
If the login window never comes back: you are probably behind a fixed callback. Set mcp_oauth_callback_port (or mcp_oauth_callback_url for a remote dev box) at the top level of config.toml, and run codex mcp login again.

A key needs no browser, which suits a headless machine. Keys are part of the developer API, which is off until our team switches it on: Account → Developers → Request developer access. Then create a key under Account → Developers → API keys, and choose its permissions there.

Point Codex at an environment variable rather than pasting the key into the file. A config file gets committed, copied and shared:

~/.codex/config.toml
# ~/.codex/config.toml [mcp_servers.assistantlabs] url = "https://mcp.assistantlabs.io/mcp" bearer_token_env_var = "ASSISTANTLABS_API_KEY" tool_timeout_sec = 120
Terminal
export ASSISTANTLABS_API_KEY="al_live_YOUR_KEY" codex mcp list
Check it worked

codex mcp list should show assistantlabs, and inside the Codex TUI /mcp lists the active servers and their tools. Ask it to list your agents. Real names coming back means the connection works.

Why tool_timeout_sec = 120: Codex gives a tool 60 seconds by default, and a question that reads a month of conversations can take longer.

For a prompt before anything is written, add default_tools_approval_mode = "writes" to the same table.

What to ask it

Write to ChatGPT the way you would write to a person.

  • “Who is waiting for a reply from us?”
  • “Which customers asked about the price this week? Read me the most recent one.”
  • “What appointments do we have tomorrow?”
  • “How many conversations came in this week, and how many are still waiting?”
  • “Add Dana Levi to the leads board, +972501234567. She called asking for a quote.”
  • “Tell my customer-service agent that from now on, deliveries take 3 business days.”
Search matches the words people used. If “prices” finds nothing, try “price” or the customer's own wording.
Names first, details on request. Lists show customer names. A phone number or email appears only when you ask for that person's details. Phone numbers, emails, card numbers and ID numbers in common formats are automatically hidden inside messages.
On very large questions: a search reads the 100 newest conversations in the period, and reading a conversation shows its latest 200 messages. When either limit leaves something out, the answer says so. Narrow the dates and ask again.

Found something the agent should learn? The training guide covers what to do next.

What stays in the AssistantLabs app

You manage these in AssistantLabs, not from ChatGPT.

  • Helpdesk workflows, sales journeys and follow-up sequences.
  • Switching an ad on, which starts spending. ChatGPT can prepare one, put it on Meta paused, and pause it.
  • Changing CRM companies and editing landing pages. ChatGPT can read both.
  • A campaign that goes to CRM records rather than contacts.
  • Moving a lead or logging an outcome that has steps attached.
  • Moving money or charging a card.
Worth knowing before you act
  • Leads. add_lead only adds the person to the board and sends nothing. A lead move or outcome that would run steps you attached is done in the app, and ChatGPT declines it.
  • Appointments. Booking and cancelling can notify the customer. Completing an appointment may later trigger what you attached in the app.
  • Campaigns and automations. ChatGPT saves a campaign as a draft and an automation switched off. Launching a campaign or switching an automation on is a separate step, and ChatGPT tells you who it will reach first. Once on, it runs by itself until you pause it or switch it off. A campaign only goes to your contacts who agreed to marketing; a list of numbers typed into the chat can't be messaged.
  • CRM records. Adding or changing a record runs the CRM automations you set up on it, and those can message customers.
  • WhatsApp. A normal reply reaches the customer only within 24 hours of their last message. After that you need an approved template, and templates are billed by WhatsApp.
  • Health data. Do not use this plugin for medical records or other health data.

Disconnecting, and when it breaks

  • From AssistantLabs — open your agent and go to Build → Connect. Connected apps shows who is connected and what they may do. Disconnect takes effect on that app's next request.
  • From ChatGPT — remove the plugin there as well. Removing it in ChatGPT does not revoke the approval it holds, so do both. Anything already in your ChatGPT history stays there until you delete it.
  • From Codex — delete the [mcp_servers.…] table, or set enabled = false to park it. If you used a key, revoke it at Account → Developers → API keys.
When something is wrong
  • “No agent to connect” on the consent screen — your account reaches no agent that belongs to an organization. Back to Before you start.
  • ChatGPT asks you to reconnect after a while — a sign-in eventually expires. Reconnecting changes nothing about what you approved.
  • One request is refused — that permission was left off. Disconnect and connect again with it on.
  • ChatGPT says the workspace has no active plan — the tools need an active AssistantLabs plan on that workspace.
  • Codex times out mid-answer — raise tool_timeout_sec, or ask a narrower question.
Did this guide help?
We’ll set it up with you in a meeting →