Outgoing webhook that triggers on a user mention or direct message

I’m trying to create a webhook that triggers when a user is mentioned in a message in a channel or is sent a direct message (DM) but I can only get it to work for either or not both if I use “all_public_channels” in the Channel field on the outgoing webhook page I will listen on all public channels as expected but not on DMs and if I use “all_direct_messages” it listens on all DMs but not public channels is there a way to make it listen on both or do I have to use two separate outgoing webhooks?

Yes you can listen to both in a single WebHook, use comma in the Channel field:

Channel: all_public_channels,all_private_groups,all_direct_messages