How to make an AI say the truth