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):
- Webhook captures messages from Slack.
- Filter ensures that bot messages from OpenAI (which have
event.user
equal to the bot’s user ID) are not processed again. - 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:
- Why does adding Google Analytics cause the filter to stop working?
- How can I modify the filter or workflow to ensure the assistant’s responses are still excluded from processing, even after adding GA4?
- Any recommendations on debugging this issue or improving the filter to handle the loop?