Skip to content
Weave templates

LLM agent loop

User → planner → tools → observation → response.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"u","type":"ellipse","label":"User","x":40,"y":180,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"p","type":"rect","label":"Planner","x":220,"y":180,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"d","type":"diamond","label":"Tool needed?","x":420,"y":165,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"t","type":"rect","label":"Run tool","x":620,"y":80,"fill":"#fed7aa","stroke":"#c2410c" },
    { "id":"o","type":"rect","label":"Observation","x":820,"y":80,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"r","type":"rect","label":"Respond","x":620,"y":260,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"e","type":"ellipse","label":"Final answer","x":820,"y":260,"fill":"#dcfce7","stroke":"#15803d" }
  ],
  "edges": [
    { "id":"e1","source":"u","target":"p" },
    { "id":"e2","source":"p","target":"d" },
    { "id":"e3","source":"d","target":"t","label":"yes" },
    { "id":"e4","source":"d","target":"r","label":"no" },
    { "id":"e5","source":"t","target":"o" },
    { "id":"e6","source":"o","target":"p","label":"observe" },
    { "id":"e7","source":"r","target":"e" }
  ]
}