cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
885
Views
0
Helpful
5
Replies

Bot "hi"command localization

dupontb
Level 1
Level 1

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. 

dupontb_0-1692038749178.png

 

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

5 Replies 5

dupontb
Level 1
Level 1

Thanks for your reply,

Do you use other specific translated words for "help"? So we can use the exact same ones in our app.

@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). 

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.'

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.

dtibbe
VIP Alumni
VIP Alumni

This is how a German box will look like:

dtibbe_2-1692039187978.png