input and chat