Right approach to create custom services in PX4?

Hi! I am planning to write a custom service in mavsdk and have that command received by PX4. For the mavsdk part, I am following this guide. For the PX4 part, however, I could not figure out what modifications do I need to implement the business logic of the custom service. Do I need to write my own dialect in the PX4?