How can I offer multiple OTP options?

After logging in, I want to show the user multiple OTP options. E.g. an e-mail option and Google Auth. I created the page page where they can select which one they want, and then I send them to the authenticator of their choosing.

The current setup goes as follow: AuthenticatorFactory creates an authenticator class, which in the authenticate() function shows them the page where they can select which one they want, which in turn sends them back to the action() function. Where I check which one they selected, and based on that I want to give them the flow for that authentication process.

How would I go about that? Any tips? Am I even doing it good by giving them the option to pick in an authenticator class? I’m pretty new to Keycloak and Java so any help would be nice!