Just go to the Thailand embassy website and check what is required to visit Thailand. You will get information about how to apply for Thai pass and health insurance. Look at YouTube videos there is information about everything. As an American you also have 30 days exemption for visa. You can also apply for 60 days visa and do 30 days extension in Thailand. Other people will advise how
It does not work when you outside the country, even when inside it still has challenges, just ask your hotel to do it for you when you have arrived. Nobody even bothers to ask whether you have uploaded your results, but you will get a message to reminding you.