it is possible to get to Ayutthaya by public transport.
the boat trip return to Bangkok only luxury boat cruise. The boat do not leave direct from Ayutthaya you will have to go on the road transfer about one hour to the pier. It mean you need to leave from Ayutthaya by 12.30