AI chatbots could be used at HMP Wandsworth, a justice minister has said, after two inmates were recently released from the prison by mistake.