Intent Script examples that work?

Is this one of the possible solutions?
Don’t define an intent, just define an automation?