Deepstack face recognition

I am already using Deepstack object recognition to my full satisfaction but now I also want to use Deepstack face recognition. I have already been able to upload a number of photos to recognize and I succeeded but I am actually looking for example how to use it.
Does anyone have an example for me how to use Deepstack face recognition in an automation?
I’m not getting any further than this at the moment and that doesn’t work.

- id: '160405808'
  alias: Test
  trigger:
  - platform: state
    entity_id: binary_sensor.alarm_office
    to: 'on'
  condition: []
  action:
  - event: image_processing.detect_face
    event_data:
      entity_id: image_processing.recognition.office
  mode: single

I figured it out myself. Thanks for all the help. This is an example of a working automation with Deepstack face recognition. Feel free to use it as a help.

- id: '1604688175464'
  alias: Test
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.frontdoor_motion
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: image_processing.scan
    data:
      entity_id: image_processing.recon_attic
    entity_id: image_processing.recon_attic
  - delay: 00:00:01
  - event: image_processing.detect_face
    event_data:
      entity_id: image_processing.recon_attic
  - delay: 00:00:01
  - choose:
    - conditions:
      - condition: template
        value_template: '{{ ''Rob'' in state_attr(''image_processing.recon_attic'',
          ''matched_faces'') }} '
      sequence:
      - service: notify.mobile_app_droopy
        data:
          message: Testmessage
          title: Rob
      - service: tts.reversotts_say
        data:
          entity_id: media_player.slaapkamer
          message: Rob, this is a testmessage
    default: []
  mode: single