How do i capture Agent name and Ref number using Entity If not Bot Should reprompt

Hi Team

at end of call Bot needs to capture Agent name and reference number. I have tried with string and person name but its only capturing name and ending call. if any one of them missed bot should prompt. How do i handle this situation using Entity node