How create registration flow with otp

Hello everyone !
I want create registration user form with otp. And otp will be send to mail confirm (not keycloak default google authenticator).

Please help me custom this flow !

You should have a look at this extension (for authN and hot registration … but could give you different ideas) : keycloak-extension-playground/dynamic-email-code-auth-extension at master · thomasdarimont/keycloak-extension-playground · GitHub
Files · master · Niroj Adhikary / keycloak-email-otp · GitLab

BTW the email confirmation required action could be considered as a similar OTP mechanism, no ?