0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PowerAutomate: Engage(旧Yammer) で、Bot の循環応答を防ぐ

Last updated at Posted at 2025-07-02

背景

Logic Apps を使って、Yammer の投稿に対して、LLM で応答させようとした。

普通にやると、循環応答してしまうので、その対処

結論

  • TriggerCondition を設定する

Yammer 上で投稿した場合の client で制限する
Logic Apps からだともっと長ったらしいやつなので。

TriggerCondition
@equals(triggerBody()?['client_type'], 'The new Yammer')

Power Automate で投稿していて、それも OK にしたい場合は以下

TriggerCondition for Engage/PowerAutomate
@or(equals(triggerBody()?['client_type'], 'The new Yammer'), equals(triggerBody()?['client_type'], 'Microsoft Power Platform (Japan)'))

補足

Teams の場合は、

  • KeyWord Trigger で、[HeyShima] がついてたら応答

とかやってたんだけど、Engage は Trigger Condition でいけた

あとがき

Teams でも、Bot の判断ってできるやんって思ったけど、
とはいっても、全てに反応させると面倒だから、まぁいまのままでいいかな :thinking:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?