The best practice is to add the agent from front end via the registration form. Still, if you wish to add them manually you need to follow the below steps:

1. Create the user account

Go to admin-Users – Add New.   The user needs to have subscriber level

2. Create Agent Account

Add the same email address

3. Add the User Id to Agent account

4. Add agent ID in user acccount