Register activities dynamically with worker

For reference, let’s say i have activity type 1, which makes a HTTP call and I have an another activity which performs sqlquery that I have defined after the worker has started, How do I make the dynamic activity execute these activity types depending on the input type that is passed?

I am using the dynamic dsl workflow example that you have shared in the previous discussion as example. Looking to update that example with dynamic activities execution.