Step 1: Invite the bot
The bot will request these 3 permissions: Send messages Manage roles Manage channels
The two first ones are essential and the bot will not function properly without them. The last one is optional and allows the bot automatic configuration function to work properly. Although not recommended, you can opt-out from this permission but then step 2 below cannot be skipped.
The bot also requires the server member intent, i.e. it needs to be able to list your users and their roles. However, it does not use the presence or message content intent, i.e. it cannot read messages on your server and cannot monitor online presence of your users.