How the alerts work w.r.t user?

Whether the configured alerts will be received by all the Bot users or the only user who is interacting with the bot.
If user is offline means the user is not in conversation with the bot, whether the user will receive the alert,
if he gets the alert when ?

Alert notifications are delivered only to bot users who have explicitly subscribed to these alerts. When conversing with the bot, users can initiate alert subscription and provide the required details (alert frequency and other alert specific parameters) to complete the setup.

Alerts are delivered to the user even if the user is not conversing with the bot at the time of delivery. However, some of the channels, especially voice-based channels, do not support alert delivery when the user is not online. Kindly refer to our channels instructions for channel-specific limitations.

Please refer to following articles for more information:
https://developer.kore.ai/docs/bots/bot-builder/defining-bot-tasks/notification-tasks/
https://developer.kore.ai/docs/bots/bot-builder/adding-channels-to-your-bot/

You may also refer to Smart Alerts feature, where the developer can automatically subscribe bot users to contextually relevant alerts. When a user is performing a task (e.g., Book Ticket), the developer can include a Smart Alert subscription in the dialog flow and automatically subscribe the user to relevant alerts (e.g., Get Flight Updates).

Refer to ‘Alert Subscription Service’ topic in the following article:
https://developer.kore.ai/docs/bots/bot-builder/defining-bot-tasks/dialog-tasks/working-with-the-service-node/