Please help with Dlib Automation

So I setup Dlib and its working fine . It does identify different faces. but how to perform action based on face identified ?
here is what I have so far.

- alias: "Known person"
  trigger:
    platform: event
    event_type: image_processing.detect_face
    event_data:
      entity_id: image_processing.face_identification
      name: 'Person1'

  action:

So if Face of the "Person1’ Identifed then it performs some action but what if I have more than one person ? like If Person1 then this, If Person2 then that, and so on . What do I do . How do I refer to Person2 ?
thanks

I am also looking for the solution.

Can you please show me how you configured it? I cannot make it work.