Free Intro Class
    Botspot Logo

    agenthub · ai.prompt_template

    Prompt Template

    Load an approved prompt from PromptCenter by id and version, bind its variables, and hand the finished messages to a model.

    category AIin variablesout messages · text · output_schemaexecution asyncmodel cost none

    Why the node earns its place

    It separates who writes the prompt from who wires the workflow. The prompt lives in PromptCenter under a version; the canvas points at that version. Editing the wording never means editing — or republishing — the graph.

    It also refuses to run a half-filled prompt. Any {{variable}} that survives interpolation stops the run rather than reaching the model as literal braces, which is the failure mode where an agent confidently addresses someone as {{name}}.

    How it works at run time

    1. 1
      Seed the reserved time variables — current_date, current_time, current_datetime, today — in the caller's timezone. An author never supplies these and they never trip the completeness guard.
    2. 2
      Merge the wired variables over the top, so an author-supplied value of the same name wins.
    3. 3
      Run the completeness guard: any unfilled placeholder raises rather than rendering.
    4. 4
      Interpolate and emit the rendered messages, text and any output schema the prompt declares.

    What you wire

    Inputs

    • variables *
      object

    Outputs

    • messages
      array
    • text
      string
    • output_schema
      object

    Configuration

    KeyTypeDefault & optionsWhat it does
    prompt_id *string
    version *string
    allow_unfilled_placeholdersbooleanSkip the always-on check that refuses to run a prompt with unfilled {{var}} placeholders. Only flip this if you intentionally ship a prompt containing literal double-brace text. Almost always false.

    What usually goes wrong

    Watch for this

    allow_unfilled_placeholders exists for prompts that deliberately ship literal double-brace text. It is not the fix for a variable you forgot to wire — the fix is to wire it. Config Fetch is the usual source for org-specific values like a business name or contact line.

    Behaviour & provenance

    buildersChat & voice agents, Image workflows, Video workflows, Automations
    routesno
    side effectsnone — computes only
    replay safetynot applicable
    talks toPrompt Center
    holdsworkspace runtime token