Automatic slug for admin

I would like to have a custom slug available in the page header.

Therefore, it should be generated from the admin, through a customized blueprint.

So far, I have two fields:

  • An input text field
  • A second input text field where the user should insert the corresponding slug. This second input is validated against a slug pattern check.

Would it possible to automatically generate the slug in the second field from the first field value (and keep this second field hidden)?

I think the admin plugin already do that with this blueprint:
Just curious: what would you use this slug for?