How do I set up a webhook trigger for home assistant?

How does one make a trigger that is triggered by opening a link?

Visiting this link:

http://<ha_ip_address_here>:8123/api/webhook/do_my_thing

Will trigger an automation that has this trigger:

trigger:
  - platform: webhook
    webhook_id: do_my_thing
action:
...

See: https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger