Using Goal Events in Workflows and Conditions in Pest AI