The workflow agent controls the execution of automatic activities in a workflow. The agent is comprised of a master repository session and one or more worker sessions. The master session is dormant until the workflow agent is notified by Content Server that an activity has been created or until the sleep interval expires. At that time, the master session queries the repository for information about the activity or activities and assigns the waiting activity to a free worker session.