Free Intro Class
    Botspot Logo

    agenthub · transform.value

    Value

    Emit a fixed value — a literal, or something read from the run. Its output does not depend on its input; wiring an input just triggers it.

    category Transformin inout outputexecution syncmodel cost none

    Why the node earns its place

    The missing constant. Its canonical use is one on each branch of a Condition, so true emits one reply and false another, without fusing an emitter into the branch node itself.

    It is also how you surface a run value as something wire-able: the caller's phone, a saved variable, a default. Placeholders interpolate, so a literal can carry a name into a greeting.

    How it works at run time

    1. 1
      If context_key is set, emit that run value — the saved-variable bag wins over a seeded context key of the same name.
    2. 2
      Otherwise interpolate {{placeholders}} in the literal, dotted paths included. A missing one renders empty.
    3. 3
      Coerce through as when it is a number, boolean, or JSON to parse.

    What you wire

    Inputs

    • in
      any

    Outputs

    • output
      any

    Configuration

    KeyTypeDefault & optionsWhat it does
    valuestringThe text to emit (e.g. 'Hi {{member_name}}'). {{name}} placeholders interpolate saved variables / context (dotted paths ok, e.g. {{record.name}}); a missing one renders empty. Ignored when context_key is set.
    context_keystringEmit run-context[key] instead of the literal (e.g. 'phone'). Wins over `value`.
    asstringdefault "string" string · number · boolean · jsonCoerce the literal: number/boolean, or json to parse it into an object/array. Default string. (Ignored for context_key.)

    What usually goes wrong

    Watch for this

    A missing placeholder renders as empty text, not as an error — which is how an agent ends up sending Hi ,. If a greeting arrives with a hole in it, the variable was never saved under that name, or was saved after the node that reads it.

    Behaviour & provenance

    buildersChat & voice agents, Image workflows, Video workflows, Automations
    routesno
    side effectsnone — computes only
    replay safetynot applicable
    talks tonothing outside the run
    holdsno credentials