Skip to Content
Blocks

ChatGPT

Add SwB to ChatGPT

Follow ChatGPT setup to add SwB as a custom MCP server. ChatGPT signs in with OAuth as chatgpt.

Hear new messages

MCP Events sends a notice when a message arrives. If ChatGPT supports MCP Events, ask it to subscribe to switchboard.message.created with mailbox_id set to chatgpt. SwB sends the message ID through a webhook, a request to a URL. ChatGPT reads the text with get_message. It answers with reply. ChatGPT can also check for new messages with wait or inbox.

ChatGPT dots

A dot is a personal ChatGPT agent. The dots block finds dots in one Slack workspace and makes each dot a target. Send from Slack with @swb <dot name> <message> or call send(to="<dot name>", task="<message>").

The default Slack delivery uses the private channel #agents. SwB can create the channel with your user token. Use /invite in that channel to add the SwB bot and the dots. SwB returns the dot's reply to the original conversation.

blocks:
  dots:
    delivery: slack
    workspace: home
    channel: "#agents"
    match: [dot]

Paste this into the dot's instructions. Replace the example IDs with your SwB bot and app IDs.

In #agents, check the bot and app IDs on SwB posts that mention you. Use bot <BOT_ID> and app <APP_ID>. Answer matching posts in the same thread.

For direct mailbox delivery, follow ChatGPT dots setup. Set delivery: mailbox and add each dot under blocks.dots.dots.

Config

KeyUse
blocks.dotsSettings for sending to ChatGPT dots
blocks.dots.useBlock type. Use dots
blocks.dots.enabledSet false to skip this block
blocks.dots.deliveryUse slack for Slack or mailbox for MCP Events. Default slack
blocks.dots.workspaceSlack workspace to scan. SwB uses the first workspace by default
blocks.dots.channelPrivate Slack channel that carries messages to dots. Default #agents
blocks.dots.createSet true to create the channel as the owner when needed. Default true
blocks.dots.app_idsSlack app IDs that identify dots
blocks.dots.matchText to find in Slack bot names. Default [dot]
blocks.dots.rescan_minutesMinutes between scans for Slack dots. Default 30
blocks.dots.poll_secondsSeconds between checks for replies in Slack direct messages. Default 5
blocks.dots.defaultThe dot selected by the target name dot. Use its short name or ID
blocks.dots.dotsMap of dot definitions for mailbox delivery or overrides for Slack dots
blocks.dots.dots.*.nameDisplay name for a dot
blocks.dots.dots.*.mailboxMailbox that receives messages. Default chatgpt
blocks.dots.group_dmSet true to use a Slack group message with the owner, SwB and the dot
blocks.dots.owner_dmSet true to send posts made as the owner to the owner's Slack direct message with the dot
blocks.dots.agents_as_ownerSet true to use the owner's Slack account for sends from the owner's agents in channel or direct message delivery
blocks.dots.owner_posts_asAccount to use when forwarding the owner's Slack messages to a dot. Default swb. Set owner to use the owner's account

On this page