# Configure your inbound messages
___

The **Subscriptions** feature in CPaaS X environment also supports **inbound message ([MO](https://www.infobip.com/glossary/mo-mobile-originated)) configuration** across multiple communication channels, including:
- Apple Messages for Business
- Facebook Messenger
- LINE
- MMS
- RCS
- SMS
- Viber Business Messages
- WhatsApp
- Zalo
___

This centralized configuration allows users to streamline the management of inbound message events (`INBOUND_MESSAGE`) using the same tools and structure as for other inbound event types. Users can simplify their setup by unifying inbound message settings under subscriptions while maintaining flexibility for channel-specific requirements.

When an inbound message arrives, the system determines how to process it by checking for existing configurations:

- **Number-specific pull/forward configuration**: If a [number-specific pull or forward configuration](https://www.infobip.com/docs/numbers/keywords-and-actions#configure-inbound-messages) exists for the inbound message, the system will execute it.
- **Follow subscription settings**: If a number has a follow subscription configuration in place, the system follows the matched subscription settings defined for inbound messages.
- **Non-forwarding actions**: These are executed independently of forwarding and follow subscription settings.

This ensures that the defined configuration is respected and executed as specified.

## Inbound message flow

To configure inbound messages, follow the steps below:

**1. Define subscription**

	- Create or edit a subscription for each channel where you want to manage inbound messages. If you are using [web interface](https://portal.infobip.com/login), be sure to choose **Inbound message** among the desired events. If you are using [Subscriptions API](https://www.infobip.com/docs/api/platform/subscriptions-api), include `INBOUND_MESSAGE` event.

**2. Set up a notification profile**

	- Assign a [webhook URL](https://www.infobip.com/docs/cpaas-x/subscriptions-management/create-manage-subscriptions#create-and-manage-notification-profiles) and [authentication settings](https://www.infobip.com/docs/cpaas-x/subscriptions-management/create-manage-subscriptions#create-and-manage-authentication-settings) for receiving inbound message events.

**3. Validate configuration**

	- Test the setup to ensure that inbound messages are processed as expected.

_Example flow for inbound messages_

1. An inbound message is received from a messaging provider.

2. The system checks for a number-specific configuration:

	- If there are forwarding actions configured, it processes the message according to the number-specific settings.
	- If there is a subscription in place, the system follows subscription settings.
	- All other non-forwarding actions are executed independently of subscription settings and forwarding actions.

3. Message is processed according to the configured format.

4. The message is delivered to the appropriate webhook or endpoint, as specified in the notification profile.
___