Tap on the name of the group of which you want to create an invite link. Scroll down slightly, an option for "Invite via Link" will appear. Click on "Invite via Link".
After that WhatsApp group link will be generated automatically.