Welcome to ST.
3 weeks makes for a good introductory trip for Thailand.
We have had very informative previous threads on Thailand. Very easy to look up.
But August is problematic.
It is either too hot or raining (or both). Or you get the typhoon, which is cooling though.

If you like the sun and the beaches, it is best to go in the dry months (November to March).
One last advice:
The tropics in general - and Thailand in particular - have their own slow and slowing ways that are impossible to fight. Don't be ambitious about sightseeing, however tempting that may be. Join the flow. Sit on the floor and linger over your meal. Get a nice traditional massage from a temple. Take a boat that goes nowhere. Take a long train. and buy food from food vendors who rush up to your window at every stop.
I'd suggest, for 3 weeks in the dry months:
- at least 5 days in Bkk. maybe 3 days on arrival and 3 days before departure
- then the rest of the trip divided half-half between north-south (Mae Hong Son or Laotian border for north? Krabi for south?).
- o and take trains, flat-bed trucks, elephants, anything but those so-called VIP coaches full of young backpackers who still think it is glamorous to smoke in the 21st century.
Bon voyage.