Skip to main content

Weaver I/O

Inputs and outputs (I/O) define how data flows through your agent in Weaver. Understanding ports, types, and chaining rules helps you design reliable workflows.

Quick Guide

● = required input, ○ = optional input.
Blue = outputs, Red = inputs.
Always connect blue → red.

Why I/O Matters

Every agent in Weaver depends on clear data flow. If required inputs are missing, the workflow pauses or fails. If outputs are miswired, downstream skills won’t get the right data. Mastering I/O is the key to predictable orchestration.

For an overview of how ports appear on the Canvas, see the Weaver Interface.

1. Understanding Port Symbols

SymbolPort ColourMeaning
● SolidRed inputRequired — execution halts until this input is filled
○ HollowRed inputOptional — only runs if input is provided
● SolidBlue outputPrimary output — data passed forward
○ HollowBlue outputSecondary or derived output

2. Supported Input Types

Weaver supports multiple input categories and structured subtypes.

Main Categories

CategoryDescription
TextFreeform strings or prompts
ImagePNG, JPG, or SVG uploads
AudioVoice or audio file inputs
VideoShort clips or references
OthersStructured formats like JSON, arrays, or objects

Structured Subtypes

SubtypeExampleNotes
string"Write a haiku"Most common input type
number3.14Float or decimal
integer42Whole numbers only
booleantrueOften used as toggles
array["one", "two"]Supports batching
object{ "key": "value" }Flexible payload container
binaryPNG, CSVStored in object store; Weaver returns signed URL
date2025-01-01ISO 8601 date format
anyFlexible fallback — not validated
Goal: Summarise weekly_sales.csv and send report Steps: 1. Read file from S3 (file input) 2. Summarise table (JSON output) 3. Email summary (string input)

For detailed component input/output specs, check the Component Library.

3. Chaining Outputs to Inputs

The rule is simple: blue output → red input.

  • Connect a component’s output (blue) to the next component’s input (red).
  • You can pass one output into multiple inputs if needed.
  • Use transformers (like JSON Filter) if the format doesn’t match downstream requirements.
Example: Take "Research Results" (blue JSON output) → Connect to "Summarise Findings" (red string input) → Pass to "Generate Report" (blue text output).

4. Execution Rules

Weaver decides whether a component runs based on its inputs:

  • Runs → all required (● red) inputs are connected and resolved.
  • Waits → at least one required input is not yet provided.
  • Skips → required input missing and no fallback provided.

This ensures that workflows don’t attempt to run components without the necessary data.

Debugging Ports

If a component stays red, it usually means a required input is missing or miswired. Use Debugging with Weaver to inspect input/output logs.