Facing issue with slack message reader to run the flow

Context: I am building an agent that automates customer success outreach for customers signing up on our platform. When users sign up and progress through our onboarding process (signing up, starting integration, completing integration, or revoking access), these events are automatically logged to a Slack monitoring channel. The flow watches this channel and when we see someone from our team types “@Gumloop send email,” in the thread of a message, it processes recent onboarding events to identify users who need follow-up communication. Using AI, it generates personalised emails tailored to each user’s specific onboarding stage – encouraging new signups to complete integration, helping users who started but didn’t finish, congratulating successful integrations, or gathering feedback from users who revoked access.

Issue I’m facing:
I’m using the Slack message reader node to read all messages in the current channel. Whenever a new user message alert comes in, we reply with “@Gumloop send email” or just “send email” in the message thread.

However, the Slack message reader goes through all the messages in the thread, including previous instances where “@Gumloop send email” was already used (and emails have already been sent). As a result, it sends duplicate emails.

Ideally, it should:

  1. Only check for new messages in the channel.
  2. Look for messages where “@Gumloop send email” is tagged.
  3. Send emails only for those new messages.

Can you help me figure out how to build this logic into the flow? And is it even possible with current slack features Gumloop have?

My workflow link: https://www.gumloop.com/pipeline?workbook_id=rid2x7oDNAiKBDseR8EzkD&run_id=2NQpopYsqYG8M55CXfznMD

Hey @Harkirat! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={{your_run_id}}&workbook_id={{workbook_id}}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Hey @Harkirat – I think this is a data type issue with the node, investigating that further. Essentially, when the Slack Reader node is enabled as a trigger the output type should be Text/String not List/Array hence loop mode should not be necessary on any nodes as only a single message is being processed.

Do you mind deleting and adding back the Slack Reader node please? Let me know if that does the trick.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.