Updated July 2019: These are specific instructions for use in Transposit. For other methods, check the Slack API website.
By registering your app's capabilities as message actions, users can pick and choose messages to send to your app so you can do something useful with them. Store these messages in a virtual trapper keeper, feed them to your internal markov chain bot, or file away information about an important lead.
This fictional Slack app, "ClipIt" allows users to "clip" a message posted on Slack by using the actions to export the message to JSON to be used in the external 3rd party app/service, let's say, "ClipIt web app".
If you are developing apps like memo / note-taking app, collaborative doc app, this sample use-case would be a nice addition to your Slack app.
Also, the message action would be great for:
When a user hover a message then choose "Clip the message" from the action menu, a dialog pops open.
The message text is pre-populated into the dialog box, but the user can edit before submitting it too.
Once a user finalize the form and submit, the app DMs the user with the confirmation.
commands
(required for Actions)users:read
(need to get user info e.g. full names)chat:write:bot
(required for posting messages)ClipIt
andmessage
with type "Long text"poster
with type "Single line text"importance
with type "Single select" and options Low
, Medium
, and High
Configure your Slack App's connection to Transposit:
Add Airtable and Slack's keys to production under Deploy > Production Keys and follow the instructions.
Authenticate the Airtable environment variables in Transposit under Deploy > Environment Variables.
newuser
in Transposit under DeployClip the message
Save this message to ClipIt! app
clipit
clipit
: The operation that is called when you call Clipit.
create_record
: Saves the Clip to an Airtable project.
id_to_name
: A helper API call to convert an ID to a name.
open_dialog
: The Slack API call to open the Clipit dialog.
post_confirmation
: The Slack API call to post the Clipit confirmation message.