In musical terms this is called a ‘segue’ (pronounced seg-way).

As far as what constitutes a good one, the rules are that there ain’t no rules! ;-)