is_low_impact_ai_character = {

    ai = yes
    NOT = { is_playable_ruler = yes }
    NOT = { is_important_character = yes }

    age = 16

    is_imprisoned = no

    is_leading_army = no

    NOT = {
        any_relation = {
            who = any_holder
            holder_scope = {
                is_playable_ruler = yes
            }
            relation = {
                type = parent
                OR = {
                  type = spouse
                  type = child
                }
            }
        }
    }

    NOT = {
        any_vassals = {
            is_playable_ruler = yes
        }
    }
    NOT = {
        liege = {
            is_playable_ruler = yes
        }
    }

    NOT = { has_active_claim = yes }

    is_regent = no

    has_character_flag = no # Replace with specific flags if needed


    NOT = {
        OR = {
            diplomacy = 10
            martial = 10
            stewardship = 10
            intrigue = 10
            learning = 10
            prowess = 10
        }
    }

}
