Chatbot already does this without needing any training. It’s even used commercially.
(Oh, not sure why this was bumped.)