To create Google Tasks records from Google Docs without manual input, use a ready-made scenario.
You can launch this Google Docs + Google Tasks integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.