API down alert error notification

Is there anyway to implement an alert at the top of our bots when a user clicks on the webchat?

Something like this…
https://www.w3schools.com/howto/howto_js_alert.asp

So for example, if an API is down the user gets alerted as soon as they enter the bot.

Hi @av_botpress, I think it could be possible using a custom component. You could create a component “before_container” , which could make an http request to see if the api is available, then display the message.

There is some documentation about that here: https://botpress.io/docs/channels/web#injecting-your-components