Help pulling a sensor's current value into a blueprint as default?

Hello! I’m trying to make a blueprint that allows me to quickly add filament rolls and colors via rfid tagging, I was hoping to get the current RFID tag value as a default setting so I didn’t have to copy and paste, but I’m not having any luck. Can someone guide me?

blueprint:
  name: Filament Change
  description: Change filament helpers based on RFID Tag
  domain: automation
  input:
    new_tag:
      name: Tag on this Roll
      default: ' {{ the_tag }} '
    brand:
      name: The Current Brand
    color:
      name: The Current Color
    offset:
      name: Scale Tare Offset
      description: "The empty weight of the spool"
      default: "180"

alias: The new Roll
description: ""
trigger:
  - platform: tag
    tag_id: !input new_tag
condition: []
variables:
   the_tag: "{{ states('sensor.current_filament_tag') }}"
action:
  - service: input_text.set_value
    data:
      value: !input brand
    target:
      entity_id: input_text.filament
  - service: input_text.set_value
    data:
      value: !input color
    target:
      entity_id:
        - input_text.filament_color
  - service: input_number.set_value
    data:
      value: !input offset
    target:
      entity_id: input_number.scale_tare_offset
mode: single

It doesn’t work that way. Inputs are not part of the executable code, as they only define constants. No templates are allowed here.

You will need to add your variable with some template code in the the variables section. You can store a value using a helper between runs of the BP.
Also template used in triggers have their own subset of rules, so it can be tricky .

Perhaps storing your tag ID in a helper, and triggering off of that? Set the trigger to be whenever that helper changes? Don’t know what exactly is your goal…