@Graeme *****
I have done this journey a few times. If both flights were booked at the same time. You will do immigration at Bangkok, but not the main one. You follow the signs for Phuket, and that will take you to immigration, and into the domestic terminal. The main clue will be if your luggage is booked through to Phuket.