Help with creating Siri Intents

Hello, everyone,

Sorry if the answer to this post is obvious, I'm quite a newbie with XCode (fine with Swift), but I'm making an app which would let you put text input into an action in Shortcuts and return a result using predefined Swift code. I already have my Swift code, but I don't know how to use the Siri Intents to make it work with shortcuts, or even if that's along the lines of what I want to do (make it only work with Shortcuts, not Siri). Any advice would be greatly appreciated.

Thanks, cph101