使 Hangouts Chat 机器人响应仅对聊天室中的发件人用户可见

Make Hangouts Chat bot response visible only to sender user in room

我想构建一个机器人,其中调用用户首先需要 select 第一个机器人响应中的一个选项,因此 selected 选项会 post 它到房间。

一个解释用例的简单例子:

User "Mr.X" is in room "RoomX".

Mr.X sends the following message to the room "@MyBot greet".

MyBot bot responds with an interactive card saying (this card is only visible to Mr.X):

"Select the type of greet you'll would like to use:"
Kind greet
Rude greet

Mr.X clicks "Kind greet" option in the interactive card.

MyBot sends the following message to RoomX (visible to all in the room):
"Greeting everyone, I hope you have a good day!"

我对 Slack 机器人有一点经验,可以指定机器人响应仅对调用者可见。

除了 "responding" 向用户发送 DM 中的私密部分之外,在 Hangouts Chat 中是否有一些类似的方法可以实现此用例?

目前无法隐藏房间中用户的消息或仅特定用户可以看到它们。正如您所建议的,最好的解决方案是通过 DM 提示用户。