> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prelude.so/llms.txt
> Use this file to discover all available pages before exploring further.

# 2-Way Messaging

> Receive the messages your users send to your WhatsApp number, RCS agent or SMS number, and reply to them from the same sender.

With 2-way messaging, your application receives the messages your users send to you and answers them. It works on WhatsApp, RCS and SMS, with the same webhook event and the same reply endpoint on each channel.

## How it works

**1. 2-way messaging is turned on for your sender**

Your Customer Success Manager turns on 2-way messaging for each sender that takes part (your WhatsApp number, RCS agent or SMS number) and registers the callback URL that receives its messages.

**2. A user sends you a message**

Prelude stores the message and sends an `inbound.message.received` [webhook event](https://docs.prelude.so/notify/v2/documentation/webhook.md#inbound-message-events) to your callback URL. The event carries the text, the user's phone number, the sender that received the message, and a **message ID** prefixed with `im_`.

**3. You reply**

Your application calls [Reply to an inbound message](https://docs.prelude.so/notify/v2/api-reference/send-a-reply.md) with `to`, `text` and `reply_to` set to the message ID. The reply leaves on the same channel, from the sender that received the message.

## Channels compared

| | [WhatsApp](https://docs.prelude.so/notify/v2/documentation/whatsapp.md) | [RCS](https://docs.prelude.so/notify/v2/documentation/rcs.md) | [SMS](https://docs.prelude.so/notify/v2/documentation/sms-two-way.md) |
| - | - | - | - |
| Sender | Your WhatsApp Business number | Your own RCS agent | Your own number: long number, toll-free or short code |
| Reply window | 24 hours after the user's latest message | None | None |
| Reply with a file | Yes, with a caption | Yes, without text | No, text only |
| STOP, START, HELP | Forwarded to you like any message | A message that starts with STOP, START, HELP or another opt-out word is handled by Prelude and not forwarded ([details](https://docs.prelude.so/notify/v2/documentation/rcs.md#reserved-keywords)) | A message that starts with STOP, START, HELP or another opt-out word is handled by Prelude and not forwarded ([details](https://docs.prelude.so/notify/v2/documentation/sms-two-way.md#reserved-keywords)) |
| Inbound message billed | No | No | Yes, per segment |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.