Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Echo bot (beginner)

A minimal bot that listens on WebSocket and echoes every text message back to the sender.

What this example does

  1. Connect as a dedicated bot user (e.g. echo-bot)

  2. On each incoming message, parse the payload

  3. Reply with the same text prefixed by Echo:

Prerequisites

  • WebSocket transport (ws)

  • A second client (or the hello realtime example) to send test messages

Language guides

Next steps

  • 1:1 chat — human-to-human chat with history

Last updated