Quantifying and managing uncertainty in human-AI dialogue