【问题标题】:Make Hangouts Chat bot response visible only to sender user in room使 Hangouts Chat 机器人响应仅对房间中的发件人用户可见
【发布时间】:2018-11-09 06:05:48
【问题描述】:

我想构建一个机器人,其中调用用户首先需要从第一个 Bot 响应中选择一个选项,因此选定的选项会将其发布到房间。

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

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 机器人有一点经验,可以指定机器人响应只能对调用者可见。

除了将 DM 中的私密部分“回复”给用户之外,还有其他类似的方法可以在 Hangouts Chat 中实现此用例吗?

【问题讨论】:

    标签: google-hangouts hangouts-chat hangouts-api


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-20
      • 1970-01-01
      • 2021-09-06
      • 2018-10-14
      相关资源
      最近更新 更多