Assistance Needed: Filter Not Working on OpenAI module (Infinite Loop Issue)

Hi everyone,

I’ve set up a Slack integration in Make where customers can chat with the OpenAI assistant. The flow works perfectly without the Google Analytics module, but after adding it, the filter that prevents the assistant from responding to its own messages (to avoid an infinite loop) stopped working.

The Workflow Setup (Works Perfectly Without Google Analytics):

  1. Webhook captures messages from Slack.
  2. Filter ensures that bot messages from OpenAI (which have event.user equal to the bot’s user ID) are not processed again.
  3. OpenAI processes the valid messages and responds.

Problem After Adding Google Analytics:

  • The Google Analytics module is added to capture relevant data after the message is processed.
  • After this addition, the filter that prevents the assistant from replying to its own message no longer works, and an infinite loop occurs.

The Filter:

  • The filter checks if event.user is not equal to the bot’s user ID (U08AY0VG2DQ) and if the message doesn’t contain > has joined the channel.
  • Before adding Google Analytics, everything works as expected.

Questions:

  1. Why does adding Google Analytics cause the filter to stop working?
  2. How can I modify the filter or workflow to ensure the assistant’s responses are still excluded from processing, even after adding GA4?
  3. Any recommendations on debugging this issue or improving the filter to handle the loop?

In your history you should have th output of previous runs. You can look there to see what happens.

One thing I see is that the filter in the image you show has an unreachable element (event.thread_ts). It’s as if that value is no longer part of the webhook. Is it possible that adding the Analytics module causes that to happen? Because it’s preceded by an and clause, the filter will always resolve to false.

L