Admins can create flexible custom actions using Salesforce Flows. To get started, build your flow first, then create an "Act On It" action that launches the flow when selected by users.
Both screen flows and auto-launched flows can be used as message actions. Data like the message's related record ID can also be passed into the flow to provide useful context.