The biggest problem with the Action Button found on the iPhone 16 and iPhone 15 Pro models is that it can only be set to do one thing. However, by setting it to run a custom shortcut, you can get your Action Button to perform different actions based on your location, Focus mode, iPhone orientation, and more.
Source : How to Make Your Action Button Do Different Things Depending on Time, Location, and More