Skip to content
View original post on X: Santiago
Published
28/100

Santiago explains turning agent tasks into reusable TypeScript workflows

AISantiago says users can have an agent build a task once as a TypeScript workflow, then run it repeatedly. He argues that models should handle only tasks that require them, while other steps are encoded in code, which makes troubleshooting easier and lets behaviors be reused across automations.
SantiagoVerified on X
@svpino
View on X

How to turn your tasks into workflows and reusable behavior.

You ask your agent to build it once, and then you run it again and again.

Huge advantage to doing this:

  • You only use models for tasks that only models can do
  • Every other step is encoded in TypeScript
  • Very easy to troubleshoot
  • You can reuse your behaviors across automations
Source details

Santiago · x.comPublished · added here

Original title: How to turn your tasks into workflows and reusable behavior.