Setting a boolean based on context.user_id

That table is a bit oversimplified, and context.parent_id is not reliably set for automations, depending on what kind of trigger they use.

More details here: How to use context