Move logic of "transcribe step by step" to Scripting API from JSON