Chaining two models: writer and editor

One model’s output becomes the next one’s input: a quick draft, then a careful edit.

Intermediate5 min

In this lesson

  • Wiring model to model
  • Several outputs from one workflow

Build it yourself

This workflow is created in your account and opened in the editor, where you can change and run it.

The nodes in this workflow

Topic

topic

The article topic.

Writer

Claude Haiku

A quick, cheap draft.

Editor

Claude Sonnet

Makes the text clear and precise.

Draft

draft

Returns the result under this key in the API response and in chat.

Final text

article

Returns the result under this key in the API response and in chat.