To make something up or invent it as one goes on; to proceed guided only by imagination, instinct, and guesswork rather than by a careful plan.
He had no speech prepared, so he improvised.