Skip to content

Routines and Execution Model

ThinkWork documents routines as multi-step automations that can chain agent invocations, branching, and external actions.

All automations are backed by AWS Step Functions.

A typical run looks like this:

  1. EventBridge or an API trigger starts the state machine
  2. ThinkWork creates an AUTO- thread for the run
  3. AgentCore executes the configured step or prompt
  4. The run finishes as succeeded or failed

For routines, each step becomes part of the Step Functions execution path.

Every automation run is recorded with status, timing, and the associated thread.

That gives you two useful views of the same work:

  • the thread view, which shows the agent conversation and outputs
  • the execution view, which shows state-machine progress and failures

Automations can also be triggered manually, and retry behavior can be configured for failed runs.

That makes it practical to:

  • test before enabling a schedule
  • rerun a failed job
  • override the prompt for a one-off run