Discourse Automation

Is it possible to create and register our own trigger for our custom automation? Is there any document steps/samples for it? I’m trying to create a “accepted_solutions“ trigger, the “first_accepted_solutions“ is not fit to my use case since I’m would like the automation to be triggered for every single post marked as solution.