How do we add a repeat group question automatically?

You could do this as outlined in our previous post:

Maybe this post should also be helpful:

In addition, our support article Grouping Questions and Repeating Groups should also be helpful for you to understand how a repeat group and a repeat count works.