Dots functions as an autonomous agent equipped with a virtual computer environment that allows it to fetch and execute complex tasks. It maintains task continuity by utilizing context from past conversations with ChatGPT and Codex to tailor its actions to user preferences.