To automatically make the American team you need to a US PGA Tour member and finish as one of the top 6 Americans in Fed Ex Cup points post the 2022 BMW Championship. If not, you can hope to be one of 6 Captains Picks after the BMW.
There are 8 automatic qualifications for the International team based, fundamentally, on World Rankings. 4 Captains Picks will complete the team of 12.