Zum Inhalt springen
Apps einrichtenMatrix

Matrix

Agenten haben diese Seite aus dem Englischen übersetzt und geprüft. Zhehan liest Englisch und Chinesisch. Hilfe beim Korrekturlesen ist herzlich willkommen. Beim Korrekturlesen helfen Übersetzungsfehler melden

Der Homeserver hostet Ihr Matrix-Konto. Ermitteln Sie seine HTTPS-Adresse und Ihre Matrix-Benutzer-ID, etwa @alex:matrix.example.org.

Melden Sie sich in SwB als Inhaber an. Geben Sie diesen Prompt einem Agenten mit Inhaberzugriff.

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

Help me exchange messages with an agent in Matrix. Give me https://swb.one/docs/connect if I need to connect this agent to SwB first.

Use a SwB client with owner access. Call `connect(what="matrix")`. 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.

Ask me for the HTTPS address of my Matrix homeserver and my Matrix user ID. Ask me to create a private room with room encryption set to **Off**. Give me the path `Room Settings > Advanced > Internal Room ID` in Element. Ask me for that room ID.

Put my Matrix user ID in `owner_ids`. Put the room ID in `rooms`. Apply the YAML from `connect` to `config/switchboard.yaml`. If the file needs a manual edit, give me the YAML. Restart SwB after an edit.

Call `connect(what="matrix")` again for the private claim link. Ask me to create a separate account for the bot on that Matrix homeserver. Ask me to sign in to Element with the bot account in a separate browser profile. Ask me to keep that session signed in. Give me the path `Settings > Help & About > Advanced > Access Token`.

Ask me to enter the token only through the SwB claim link that connect returns. Keep tokens out of this chat and tool arguments.

Read the Matrix bot user ID from `setup.bot_user_id` in `matrix_status`. Ask me to return to my owner session in Matrix. Ask me to invite the bot from my owner account.

Call `connect(what="matrix")` again to check the connection. Ask me "Which agent answers here?" Use `targets` to show the choices. Save my choice for the room with `chat_main_set`, using the Matrix block name, space and room ID.

Ask me to send a short message in the room. In a group room, ask me to mention the bot. Ask me to confirm that the agent replies in the same room.

Der Agent ruft connect(what="matrix") auf, um die Anweisungen abzurufen. Geben Sie an, welcher Agent im Raum antworten soll.

Raum

Erstellen Sie einen privaten Raum. Schalten Sie beim Erstellen die Raumverschlüsselung aus.

Öffnen Sie in Element Room Settings > Advanced > Internal Room ID. Geben Sie dem Agenten die Raum-ID.

Bot-Konto

Erstellen Sie ein eigenes Konto für den Bot auf Ihrem Matrix-Homeserver. Melden Sie sich mit diesem Konto in einem eigenen Browserprofil bei Element an. Lassen Sie das Bot-Konto angemeldet.

Öffnen Sie Settings > Help & About > Advanced > Access Token. Kopieren Sie das Zugriffstoken. Das Token gibt SwB Zugriff auf das Bot-Konto.

Öffnen Sie den SwB-Claim-Link von Ihrem Agenten. Fügen Sie das Zugriffstoken auf der Seite ein.

Raum testen

Kehren Sie in Matrix zur Inhabersitzung zurück. Laden Sie den Bot über das Inhaberkonto ein.

Senden Sie eine kurze Textnachricht. Erwähnen Sie den Bot in einem Gruppenraum. Lesen Sie die Antwort des Agenten im selben Raum.

Matrix-Block

Auf dieser Seite