Keyboard shortcut for links

Does anyone know how to make Alfred scripts? Or Automator scripts?

in psuedocode what you want to do is

store clipboard text as var1
copy highlighted text
[
paste
]
(
paste var1
)

And trigger this via ctrl+K

I am not personally very familiar with automator programming so if anyone posts their code I will love you