C1 verb /ˈɪmprəvaɪz/
improvise
Meaning
To create or perform something spontaneously without preparation.
Example
The actor had to improvise his lines when he forgot the script.