15Build your own

Bringing code into the environment

When workflows need more than templates and chat: scripts, APIs, and automated pipelines.

Morgan KavanaghPublished 2026-03-28

When chat is not enough

There comes a point in every workflow where manual prompting reaches its limit. You find yourself doing the same sequence of steps every day: paste this document, apply this prompt, copy the output, reformat it, paste the next document. At this point, the value is not in the AI model; it is in the automation that connects the steps. This is where code enters the picture. Not because you need to become a programmer, but because a small script can connect the pieces and turn a manual sequence into an automated pipeline.

Scripts as connectors

A script does not need to be complex. At its simplest, it is a list of instructions: read this file, send its contents to this model with this prompt, save the response to this location. What changes is reliability and scale. A script does not forget a step, does not get tired, and processes the hundredth document with the same care as the first. In an augmented environment, the AI itself can help you write these scripts. You describe what you want the script to do, the model generates it, you review and test it. The code is generated text, subject to the same review process as any other AI output.

APIs as building blocks

Most AI models are accessible through APIs, which are standardised interfaces that let software send requests and receive responses. An API turns a model from something you interact with manually into a component you can build into larger systems. Your script calls the API, the model processes the request, and the response feeds into the next step. APIs also connect to other systems: your database, your file storage, your email server, your project management tool. The combination of AI APIs and system APIs is what enables end-to-end automation.

The progression: manual, semi-automated, fully automated

The progression from manual work to automation is gradual. You start by doing the task manually and learning where AI helps. Then you create templates and reusable prompts, which is semi-automated. Then you write or generate scripts that execute the workflow without manual intervention, which is fully automated. At each stage, the human role shifts: from doing the task, to designing the workflow, to monitoring and improving the system. You do not need to reach full automation. Many workflows are most effective at the semi-automated stage, where the human adds judgment at specific points and the AI handles the volume.

Examples

A simple automation

Every week, you receive a folder of meeting transcripts. You have been pasting each one into a chat, asking for a summary, and copying the summary into a shared document. You write a script (or have the AI write it) that reads every file in the folder, sends each to the model with your tested summary prompt, and saves the summaries to a shared location with consistent naming. The weekly task goes from 90 minutes to 5 minutes.