Open a LinkedIn Profile (or any other website with the profile you want) and click "Add/ Edit Variables" and select Variables you're interested in.
Next, we can create our shortcut. Select Shortcuts and Create Shortcut. We'll hit // to select our Variables and hit Save.
Now, every time we want to send a message to someone from LinkedIn, we just need to open the relevant tabs in LinkedIn, and key in your Shortcut.