Google assistant commands

Does anyone know if it is possible to connect some google assistant or siri commands to functions within my app?

For example I could say “hey google, create a note in [my app]”
And the assistant will know what to do.

Is it possible to register these kinds of commands?