Add chatInput directive