Webhooks templating

I’ve started to use webhooks for my tasker automations instead of authenticating with the API/using tokens. I’ve got it working but I need 3 separate automations (with 3 different webhook IDs) to call the various services in HASS. Here’s my current code:

- alias: "Webook Incoming"
  hide_entity: true
  trigger:
    platform: webhook
    webhook_id: HOOK_ID
  action:
    service_template: '{{ trigger.json.service }}'
    data_template:
      entity_id: '{{ trigger.json.entity_id }}'

- alias: "Webook Incoming Input Select"
  hide_entity: true
  trigger:
    platform: webhook
    webhook_id: HOOK_ID_2
  action:
    service_template: '{{ trigger.json.service }}'
    data_template:
      entity_id: '{{ trigger.json.entity_id }}'
      option: '{{ trigger.json.option }}'

- alias: "Webook Incoming Input Text"
  hide_entity: true
  trigger:
    platform: webhook
    webhook_id: HOOK_ID_3
  action:
    service_template: '{{ trigger.json.service }}'
    data_template:
      entity_id: '{{ trigger.json.entity_id }}'
      value: '{{ trigger.json.value }}'

My question is whether there is a way to merge them into 1 automation using templates? The first one works well for most things involving turn on/off but for other services like input_text or input_select I need the additional things like option or value. When I try to include extra options in the first automation but they aren’t use, I get an error.

The answer may just be there’s no way to do it all in one and it’s not the end of the world, was just wondering if there was a way to streamline

Did you ever get a response? Or implementation working? I’m searching for similar.

No, I just kept it working with 3 automations.