Multiple Users Clicking the Same Message/Question Button

(Ben) #1

Hello Friends,

I am in love with Flow XO, but I’m getting stuck. I’ve tried to search the forum, but I’ve had no luck…

I am making a slack bot to keep track of karma for my workplace. When someone posts a +1 message, I want a button to show up for others to add additional karma points. I also want to keep track of who GAVE the karma. But when I try to implement, the userID is always the person who started the message, and not the person who clicked the +1 button.

Could someone please let me know where I’m going wrong? I’d be happy to clarify anything if needed.

Thank you for your time. :slight_smile:

(Daniel Beckett) #2

Hi @stedben

Could you share some info on how your current flow is setup? Is the button that the users clicking posting back a message that you pickup with a New Message trigger?

(Ben) #3

Hello @DanielBeckett

Thanks for responding! So here’s my scenario (I’ve played with it a bit since my first post). I still think I may be going about this all wrong:

Here’s what I’d like to do:
In a Slack channel with multiple users,

  1. Tim sends a message: @suzy++
  2. Flow XO responds with: Tim gave karma to Suzy with a button that reads: [+1]
  3. Anyone in the Slack channel can then click the [+1] to add additional karma
  4. I record who gave the karma and how much karma they received

Here’s how I’m attempting to solve it:
In a Slack channel with multiple users,

  1. UserA sends a message (which Flow XO ‘overhears’): @UserB++
  2. This triggers an “Ask a Question” action, and my flow displays: UserA gave karma to UserB and a Shortcut on the ‘question’ is [+1]
  3. My hope was that UserC could click the [+1] and I could record that UserC clicked the button.

I kinda feel like I’m barking up the wrong tree. I certainly would appreciate if you or anyone else could point me in the right direction?

Still excited about Flow XO…

(Ben) #4

Ok! Thanks to you @DanielBeckett, I figured out what I need to do.

I was WAY overthinking it. Flow XO is AWESOME.

What I do now is have a flow named @ben++. That flow runs and then when a different user clicks the +1 button, the flow triggers itself, but this time has the userID is the person who triggered the rerun of the flow.

Thanks for helping a newb!

1 Like
(Daniel Beckett) #5

@stedben

I was just putting together an example too :smile:

Happy to hear that you found the solution though!

For anybody else that’s interested the general idea for this would be to use a New Message trigger that listens out for what’s being sent as part of a shortcut for a Send a Message action. Here’s a basic version:

(Ben) #6

Dude! Thank you @DanielBeckett !!!

I learned a little more from looking at the flows you shared, your way is way better than mine.

Thanks for helping me move down the road in understanding Flow XO.

1 Like