Closed Bert-de-Jong closed 6 years ago
The answer is pretty standard. One should write a plugin for this.
So, I've created the plugin. It's available on our official site: https://mibew.org/plugins#mibew-auto-reply
The source code is available under the terms of Apache License 2.0 (same as Mibew Messenger itself).
That is great, faf; thank you so much.
@Bert-de-Jong You're welcome. However keep in mind that there were no tests in production environment. Feel free to open issues in the dedicated repository in case of any bugs.
We've got the plugin up and running on four of our websites. It seems to work; I've tested it. The only minor issue I found is that I had to manually edit the PHP file to modify "All our operators are currently busy, please hold. Sorry for keeping you waiting." because operator/translation doesn't list the string.
This is a low priority feature request.
We've been using Mibew on all our websites for about half a year, and it's very useful. Thanks again for this software.
Every now and then, the chat is enabled, but all operators are too busy elsewhere to help visitors. It might be useful if the Mibew settings included an option to set a text that will be displayed to visitors if no operator has joined their chat after a certain number of minutes. The implementation could be as simple as adding an input type="text" to the settings with a hint "Text entered here will be shown in-chat if no operator joined in 5 minutes". A bit more work would be to also add an input for the number of minutes.
This would allow us to add something like "Unfortunately, all our operators appear to be unavailable. You could try again later or contact us by phone at ..."