> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/examples/echo-bot.md).

# 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](https://github.com/smartguy6666/dnotifier-sdk/blob/main/docs/examples/echo-bot/hello-realtime/README.md) example) to send test messages

## Language guides

* [**JavaScript / TypeScript**](/product-docs/examples/echo-bot/javascript-typescript.md)
* [**Dart / Flutter**](/product-docs/examples/echo-bot/dart-flutter.md)

## Next steps

* [1:1 chat](https://github.com/smartguy6666/dnotifier-sdk/blob/main/docs/examples/echo-bot/one-to-one-chat/README.md) — human-to-human chat with history
