Skip to main content
Best answer

Trigger on new slack threaded message

  • December 7, 2022
  • 5 replies
  • 1646 views

  • Beginner
  • 4 replies

Hello Community, 

I’m working on zap that triggers when there is a new slack thread message in a specific private channel.

The zap I created worked correctly during testing, misfired sending hundreds of replies when published as the parameters I set where incorrect as I was triggering the zap when a new message in the channel is sent and the action was to find the keyword through slack search and then do the canned reply, the zap replied to the latest search result the number of times it found the keyword. 

So is there a way that a zap can be triggered by any new slack message sent, including threaded messages, within a specific private channel and then filter by keywords to proceed with the action which would be to send a message in that same thread, and send it only once. 

 

Thanks and looking forward to having some help on this one. 

Best answer by MohSwellam

Hi @Wael 

 

You can use the trigger “New Message Posted to Private Channel” which will trigger on ALL messages posted to the Private Channel INCLUDING messages in Threads. 

 

You can then use a filter step to filter for the keywords you need. 

 

After that, use the Action “Send Private Channel Message” to send a message in this private channel. You can add the Thread.ts in the Thread field to reply to the Thread. 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @Wael 

Good question.

Perhaps you can provide detailed screenshots with how your Zap steps are configured in order for us to have more context, thanks.


MohSwellam
Forum|alt.badge.img+8
  • Zapier Expert
  • 840 replies
  • Answer
  • December 7, 2022

Hi @Wael 

 

You can use the trigger “New Message Posted to Private Channel” which will trigger on ALL messages posted to the Private Channel INCLUDING messages in Threads. 

 

You can then use a filter step to filter for the keywords you need. 

 

After that, use the Action “Send Private Channel Message” to send a message in this private channel. You can add the Thread.ts in the Thread field to reply to the Thread. 


Liz_Roberts
Forum|alt.badge.img+8
  • Zapier Staff
  • 1366 replies
  • December 9, 2022

Thanks Moh + Troy! 

@Wael were you able to give Moh’s suggestion a whirl? Let us know how it panned out and if you hit any roadblocks, share some screenshots. of your configuration as we’ll dive deeper!


  • Author
  • Beginner
  • 4 replies
  • December 14, 2022

Hello @MohSwellam @Liz_Roberts 

Yes, initial testing looks to be working well, so hope to have in production shortly 😀 cross-fingers all will work smoothly with no errors or issues.

Thank you for the support and follow-up, much appreciated!


  • Author
  • Beginner
  • 4 replies
  • December 14, 2022

Hi @Troy Tessalone 

Sorry, I was so upset with the error that I deleted the Zap altogether and with the solution provided by @MohSwellam don’t think will be needed anymore, I hope. 

Thank you anyway, your interest to support and help it is so appreciated. Thank you!