Added dynamic splitting of long dialogue into chunks