# ChatGPT dots

URL: https://swb.one/de/docs/setup/dots

Ein Dot ist ein persönlicher ChatGPT-Agent. Der Block `dots` sendet Nachrichten standardmäßig über Slack. Diese Anleitung verwendet ein SwB-Postfach. Ein Postfach sammelt die Nachrichten für einen Agenten.

## Voraussetzungen [#voraussetzungen]

Prüfen Sie, ob [Ihr Plan und Ihre Region](https://help.openai.com/en/articles/20001530-getting-started-with-your-dot) Dots unterstützen.

Verwenden Sie einen Workspace mit Zugriff auf Dots und mit [Schreibzugriff für eigene MCP-Server](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt). Ein MCP-Server gibt einer App Zugriff auf externe Tools.

Wenn Ihr Workspace Dots einschränkt, bitten Sie einen Admin, **Use dots** zu aktivieren.

Ihr SwB-Server braucht eine öffentliche HTTPS-Adresse, die Inhaber-Anmeldung und den Block `dots`. Ein Block ist eine SwB-Verbindung, die Sie in der Konfigurationsdatei aktivieren.

## Einrichtungsprompt kopieren [#einrichtungsprompt-kopieren]

https://swb.one/prompts/dots.md

```
Read the setup guide at https://swb.one/docs/setup/dots.

Help me connect my ChatGPT dot to SwB. A dot is my personal ChatGPT agent. SwB carries messages between my agents and channels.

Check your tools first. If the SwB tools are missing, follow https://swb.one/docs/setup/chatgpt to add the connector. Ask me to add the plugin to my dot.

Call `connect(what="chatgpt")` to check the sign-in. Ask me for my dot's name. From a client with owner access, call `connect(what="dots", choose={"dot":"<name>"})`. Do each step marked "you" yourself. Give me each step marked "person" one at a time with the exact click path and links. Wait for me to say done after each step. Call `connect` again with the same choices. For direct delivery, set `delivery: mailbox` in the dots block in `config/switchboard.yaml`. Restart SwB after the change.

When `connect` reports that the dot is ready, find its address with `targets(block="dots")`. Ask me to send a test to that address from another SwB app.

The default mailbox is `chatgpt`. If your app supports MCP events, subscribe to switchboard.message.created for your SwB mailbox. Otherwise, call wait or inbox at the start of each task. SwB checks your callback address before it sends events. Use the event's `message_id` with `get_message`. Answer with `reply` and the message's `handle`. Tell me how you received the test.
```

Fügen Sie den Prompt ein, nachdem Sie SwB zum Dot hinzugefügt haben.

## Zustellung ins Postfach einrichten [#zustellung-ins-postfach-einrichten]

### Block dots aktivieren [#block-dots-aktivieren]

Fügen Sie diesen Block zu `config/switchboard.yaml` hinzu. Starten Sie SwB danach neu.

```yaml
blocks:
  dots:
    delivery: mailbox
    dots:
      dot:
        mailbox: chatgpt
```

### Plugins öffnen [#plugins-öffnen]

Öffnen Sie [chatgpt.com/plugins](https://chatgpt.com/plugins) in einem Desktop-Browser.

### Server hinzufügen [#server-hinzufügen]

Wählen Sie **+** aus. Wählen Sie danach **Add custom MCP server** aus.

### Adresse eingeben [#adresse-eingeben]

Geben Sie `SwB` als Namen ein. Geben Sie in **Server URL** Ihre MCP-Adresse von SwB ein, zum Beispiel `https://swb.example.com/mcp`.

### Plugin erstellen [#plugin-erstellen]

Wählen Sie **OAuth** aus. Wählen Sie **I understand and want to continue** aus. Wählen Sie danach **Create as a plugin** aus.

### Installieren und anmelden [#installieren-und-anmelden]

Installieren Sie das Plugin. Melden Sie sich als Inhaber bei SwB an. Geben Sie den Zugriff frei.

### Dot öffnen [#dot-öffnen]

Öffnen Sie Ihren Dot auf [chatgpt.com](https://chatgpt.com). Fügen Sie ihm das SwB-Plugin hinzu. 

## Das macht der Agent [#das-macht-der-agent]

Der Dot ruft `connect(what="chatgpt")` auf, um die OAuth-Anmeldung zu prüfen. Mit OAuth geben Sie den Zugriff auf einer Seite von SwB frei. Bitten Sie einen Agenten mit vollem Inhaberzugriff, `connect(what="dots")` auszuführen und den Block `dots` zu prüfen.

Wenn der Dot MCP Events unterstützt, kann er `switchboard.message.created` für das Postfach `chatgpt` abonnieren. Ein Ereignis meldet dem Dot, dass eine Nachricht eingetroffen ist. SwB prüft die Adresse, die Ereignisse empfängt. Der Dot liest die Nachricht mit `get_message` und antwortet mit `reply`. In einem offenen Chat holen Sie Nachrichten mit `wait` oder `inbox` ab.

## Zugangsdaten [#zugangsdaten]

| Token | Wo es angezeigt wird | Format | Wohin es gehört |
| - | - | - | - |
| Anmeldetoken für SwB | ChatGPT erhält es bei der Anmeldung | Zufälliger Text | ChatGPT speichert es für Sie |
| Signatur-Secret für Ereignisse | Der Client sendet es mit dem Abonnement | `whsec_` gefolgt von Base64-Text | SwB speichert es verschlüsselt |

## Verbindung prüfen [#verbindung-prüfen]

Bitten Sie einen anderen SwB-Agenten, `send(to="dots:dot:dot", task="SwB setup test: reply pong")` auszuführen. Mit einem funktionierenden Ereignisabonnement wacht der Dot auf und antwortet in dieser Unterhaltung. Rufen Sie im Dot `inbox` auf, um den Zugriff auf das Postfach getrennt zu prüfen.

## Probleme beheben [#probleme-beheben]

Wenn `connect` Anweisungen zum Aktivieren des Blocks `dots` zurückgibt, fügen Sie den Block hinzu. Starten Sie SwB neu.

Wenn `connect` nach einem Slack-Workspace fragt, nutzt der Block die Zustellung über Slack. Setzen Sie `delivery: mailbox` und starten Sie SwB neu.
