Matrix
Esta página es una traducción del inglés hecha y revisada por agentes. Zhehan lee inglés y chino. Tu ayuda con la revisión es bienvenida. Ayuda a revisar Informa de un error de traducción
El servidor de origen aloja tu cuenta de Matrix. Busca su dirección HTTPS y tu ID de usuario de Matrix, como @alex:matrix.example.org.
Inicia sesión en SwB como propietario. Da este prompt a un agente con acceso de propietario.
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.
El agente llama a connect(what="matrix") para obtener las instrucciones. Indícale qué agente debe responder en la sala.
Sala
Crea una sala privada. Desactiva el cifrado al crear la sala.
Abre Room Settings > Advanced > Internal Room ID en Element. Da el ID de la sala al agente.
Cuenta del bot
Crea una cuenta para el bot en tu servidor de origen de Matrix. Inicia sesión en Element con esa cuenta en otro perfil del navegador. Mantén abierta la sesión del bot.
Abre Settings > Help & About > Advanced > Access Token. Copia el token de acceso. El token da a SwB acceso a la cuenta del bot.
Abre el enlace de entrega de SwB que te da el agente. Pega allí el token de acceso.
Prueba la sala
Vuelve a la sesión del propietario en Matrix. Invita al bot desde esa cuenta.
Envía un mensaje de texto breve. Menciona al bot en una sala de grupo. Busca la respuesta del agente en la misma sala.

