Automated chemical analysis with a continuously flowing sample or carrier stream with formation of a segmented stream