bytechef icon indicating copy to clipboard operation
bytechef copied to clipboard

Slack - New Reaction Added trigger

Open monikakuster opened this issue 1 year ago • 2 comments

The New Reaction Added trigger for Slack component activates whenever user adds a new reaction (emoji) to a message in a Slack channel. It enables automated workflows to respond in real-time to specific reactions, allowing for interactive, reaction-based events or notification within Slack.

Trigger Properties:

  • emojis - the specific emojis or reactions that the trigger will monitor . channel - Slack channel where the trigger will look for added reactions

Output:

  • message - message object of the message to which reaction was added

monikakuster avatar Oct 02 '24 05:10 monikakuster

Hello @monikakuster

You haven't mentioned any screenshots or anything else. Are there any more details I should be looking for?

IbraheemHaseeb7 avatar Oct 02 '24 05:10 IbraheemHaseeb7

Hey @IbraheemHaseeb7. I updated the desctription for the issue.

If you are new to Bytechef, please read our CONTRIBUTING.md

This part describes how to create new component or how to add new action or trigger to existing one.

Here is the detailed description of the structure of every component.

And finally, here are the guides on how to work with the trigger and how to test it.

monikakuster avatar Oct 03 '24 19:10 monikakuster

@monikakuster I would like to work on this issue along with some other components

vihar-s1 avatar Oct 20 '24 17:10 vihar-s1

@monikakuster , for slack, webhook registration sends a challenge the first time when registering an API. To process that, should I be using this method to define the handler method or is there some other method for this? com.bytechef.component.definition.ComponentDsl.ModifiableTriggerDefinition#webhookValidateOnEnable

vihar-s1 avatar Oct 28 '24 14:10 vihar-s1

@vihar-s1, you can use webhookValidate method. I had something similar when implementing triggers for the Xero component. You can refer to this example: XeroUtils.java

monikakuster avatar Nov 15 '24 11:11 monikakuster

@monikakuster @ivicac

The implementations for the newReactionAdded and newMessage triggers are functionally identical - the only difference lies in which event the user subscribes to in their Slack App.

Because of that, would it make sense to merge them into a single SlackAnyEventTrigger that can handle any event the user chooses to subscribe to?

nikolinaspehar avatar Jul 18 '25 14:07 nikolinaspehar