Recently, in a project I needed to use Smart Links in order to achieve SSO with the native applications that the company were using.
In order to do that, I found the following web: http://jackstromberg.com/o365-smart-linksso-link-generator/ were allows to generate Smart Links in a simple way.
Cheers!