08-14-2023 11:47 AM
Hello,
In the documentation about the App Submission process, you state that the bot responds appropriately to "hi", "help" and "hello".
Webex displays a message at the top of the conversation to "say hi".
Your message will depend on the user language.
We need to respond to the corresponding localized command.
Can you give me the translation you're using for French and German for the word "hi", "help" and "hello".?
Thanks
08-15-2023 04:32 AM
Thanks for your reply,
Do you use other specific translated words for "help"? So we can use the exact same ones in our app.
08-17-2023 05:01 AM - edited 08-17-2023 05:03 AM
@dupontb can you clarify which bot you're referring to?
In general, each bot will have its own code logic and this means that whoever developed the bot will be the one who will determine what commands the bot will "listen" to. This is language independent, instead it is based solely on the exact string that the bot's code logic has configured (for example some bots have "help" command, others have "hi" command, etc). Language translations are not generally done for bot commands, unless the code logic specifically does that I guess.
Also note that the initial message you see when creating a direct chat with a bot, is not a message that the APIs will pick up. THis is just a webex app initial board info message, it's not one that is listed as a message with the APIs (which is what bots use, to perform their tasks).
08-18-2023 05:00 AM
Hello Raffaele,
I know this is bot logic dependent. We already have implemented "hello", "hi".
Your introduction message when the user opens a discussion with the bot is to say "Hallo" in German. It makes sense for our bot to respond to that keyword because you're telling the user to do so.
Your publication guidelines states to answer to the "hi", "hello". To me bore universal, your introduction message could have used these words in every language. Like 'Sagen Sie "Hi", um mit dem Chatten zu beginnen.'
08-21-2023 02:08 AM
Ok understood. If you think the initial introductory message should be modified, I'd recommend creating a ticket with the General Support/TAC team, as they deal with native app queries/issues. They can be contacted through https://help.webex.com/contact.
As for bots, given that this introductory message is not one that our webhook will even listen to (it's an initial notification that is not retrievable through the /messages API nor the messages related webhooks), then a bot is never going to be triggered by this message and therefore won't be able to listen for a possible command in that message anyway.
The only way a bot may respond in this case, is by listening to a memberships:created webhook event, which is triggered when the bot is added to a new space. So, I think from a bot perspective this becomes simpler.
08-14-2023 11:53 AM
This is how a German box will look like:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide