Supporting Slack "message menus"

#1

Hi, I’m looking at using the (relatively) new Slack Message Menus features with FlowXO:

It allows a user to respond to a message by selecting an item from a drop-down list. I’ve used the Custom Request feature to send a menu to a user which works great, then I select an item…

FlowXO gets the response, but it seems FlowXO only gets the name of the menu in the response (“games_list” is the sample json at the link above), but not the actual item selected (e.g. “war”).

Any ideas on how I might be able to use FlowXO to interact with these menus?

Thanks, -R

0 Likes

(Daniel Beckett) #2

Hi Ruben,

My hunch is that the Data Outputs holds the answer here. It may be that you’re missing an underscore to grab the nested data that you need.

If you’re still having trouble getting this to work would it be possible for you to share the flow that you’re testing with? Either here or with our support team by emailing support@flowxo.com

Thanks,
Dan

0 Likes

#3

Below is the Message that I’m sending to myself as a test formatted as per the Slack example:

{
“text”: “Would you like to play a game?”,
“response_type”: “in_channel”,
“attachments”: [
{
“text”: “Choose a game to play”,
“fallback”: “If you could read this message, you’d be choosing something fun to do right now.”,
“color”: “#3AA3E3”,
“attachment_type”: “default”,
“callback_id”: “game_selection”,
“actions”: [
{
“name”: “games_list”,
“text”: “Pick a game…”,
“type”: “select”,
“options”: [
{
“text”: “Hearts”,
“value”: “hearts”
},
{
“text”: “Bridge”,
“value”: “bridge”
},
{
“text”: “Checkers”,
“value”: “checkers”
},
{
“text”: “Chess”,
“value”: “chess”
},
{
“text”: “Poker”,
“value”: “poker”
},
{
“text”: “Falken’s Maze”,
“value”: “maze”
},
{
“text”: “Global Thermonuclear War”,
“value”: “war”
}
]
}
]
}
]
}

After selecting an option from the menu, a message “games_list” gets triggered in FlowXO, but the additional data under “options” in the data is not passed.

I’m guessing FlowXO is ignoring that additional data in the request… is there a way to access that raw json getting sent from Slack? Or perhaps you could allow the flow to receive the whole thing?

Thanks!

0 Likes

(Donald L Wasylyk) #4

This is a bit delayed, but I was curious if anyone ever figured out if it was possible to use this with Data Output formatted a specific way. I did a bit of experimenting myself and always saw the same behavior. Thanks.

0 Likes

(Daniel Beckett) #5

@dlwasylyk

Unfortunately the response back from Slack only includes the item name and not the value (that we detect). A potential workaround could be to set the Interactive Message URL in the Slack app to another service or to post back into another flow (webhook trigger) to handle the raw JSON.

0 Likes

(Angular 499) #6

how to get some message after selecting one from the menu-list i have been trying not getting it?

0 Likes

(Daniel Beckett) #7

Are you using shortcuts from a ‘Send a Message’ action or using the ‘Ask a Question’ action with choice values?

0 Likes