Data template assistance

Trying to add a automation and dont get the last part of the documentation

Added folder_watchers to configuration yaml and restarted.

Trying to create the templated but dont get how to?

Doco’s state ’ Automations can be triggered on filesystem event data using a data_template

In automations do I go to trigger select template? Or do I need to be this templated?

#Send notification for new image (including the image itself)
automation:
  alias: New file alert
  trigger:
    platform: event
    event_type: folder_watcher
    event_data:
      event_type: created
  action:
    service: notify.notify
    data_template:
      title: New image captured!
      message: "Created {{ trigger.event.data.file }} in {{ trigger.event.data.folder }}"
      data:
        file: "{{ trigger.event.data.path }}"