Inten Script Script Question

Afternoon All

Is there a way to parse a variable from Alexa in an intent script?

Basically I want to say:

“Alexa ask home assistant to turn on bed heater”

Alexa to come back with:

bheater:
   speech: 
     type: plain 
     text: Okay. How long would you like the bead heater on for?

“Okay. How long would you like the bead heater on for?”

Then (this is the bit I don’t know how to do / if it’s possible) for Alexa to take my answer and use it in a script.

I’m okay with the script part, I just need to know how to get the intent scrip to set up and then parse the answer.

bheater_timed:
  sequence:
  - alias: Bed Heater Timed
    service: switch.turn_on
    data:
      entity_id: switch.bh
  - delay:
      minutes: {SOMEHOW GET DATA FROM ALEXA}
  - alias: Bed Heater Off
    service: switch.turn_off
    data:
      entity_id: switch.bh