handle json thank team response and current text response