Alexa Skill includes LAMBDA script, python_script, home assistant scripts and automation for last_called device to work with purposed intents
Create 2 helpers. The first is a simple input_text helper called "input_text.alexa_last_device". The second is a template sensor. I created mine in yaml. It looks like this (look at the code block for correct format) -
- sensor:
- name: "Resolved Echo Target" unique_id: echo_target state: "{{ states('sensor.echo_target') }}" attributes: friendly_name: "Resolved Echo Target"
Create 2 more helpers if you want shopping list and task list functionality. These will be input_text helpers. One named input_text.shopping_item_captured and another named input_text.task_item_captured.