After setting up AEM I/O events following this, you will get the following AEM events mapped to I/O events OOTB and you can immediately hook them up with your I/O actions or webhooks.
What if you want to map more AEM event types into I/O events such as asset_published or asset_metadata_updated? Here are the high-level steps. In general, what it takes is just to find the underlying OSGi event and map to a new I/O event code through a custom com.day.cq.dam.eventproxy.service.mapping.OsgiXdmEventMappingConfigurationImpl factory config. Let's take asset_published and asset_metadata_updated events as examples.
Publish an asset and go to /system/console/events to find the event that can be uniquely identified by the event topic, path, and type. something like below,
Use event topic, path, and type to define a custom OSGi config com.day.cq.dam.eventproxy.service.mapping.OsgiXdmEventMappingConfigurationImpl-asset_published with below properties