Well it's still rather abstract but maybe other people will grasp it more easily than me.
Your function node now has this:
msg.wow
return msg;
It does absolutely nothing with msg.wow, in fact it does nothing at all.
What were you expecting it to do?
Here is an example of using context variables to save an input and to retrieve it.
I really have no idea if it is relevant to your issue.
[{"id":"dee12c22f8d1b130","type":"group","z":"a28582204ac0cbe9","name":"Choose a favourite volcano. Save as flow.volcano","style":{"label":true},"nodes":["206fa729.627278","69c0362f.ee91f8","ad906f0717fa10cc"],"x":34,"y":19,"w":632,"h":122},{"id":"206fa729.627278","type":"change","z":"a28582204ac0cbe9","g":"dee12c22f8d1b130","name":"","rules":[{"t":"set","p":"volcano","pt":"flow","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":80,"wires":[[]]},{"id":"69c0362f.ee91f8","type":"inject","z":"a28582204ac0cbe9","g":"dee12c22f8d1b130","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"Popacatapetl","payloadType":"str","x":150,"y":100,"wires":[["206fa729.627278"]]},{"id":"ad906f0717fa10cc","type":"inject","z":"a28582204ac0cbe9","g":"dee12c22f8d1b130","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Aconcagua","payloadType":"str","x":160,"y":60,"wires":[["206fa729.627278"]]},{"id":"06ad53cbb091a55f","type":"group","z":"a28582204ac0cbe9","name":"If inject has msg.work, print that. Otherwise print flow.volcano","style":{"label":true},"nodes":["1c114f08.2571d1","8a3d38cf.09cc48","c06d4acc85f80222","bbc8da46a6989d8c","a491b25559df1c89"],"x":34,"y":159,"w":632,"h":162},{"id":"1c114f08.2571d1","type":"debug","z":"a28582204ac0cbe9","g":"06ad53cbb091a55f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":550,"y":240,"wires":[]},{"id":"8a3d38cf.09cc48","type":"function","z":"a28582204ac0cbe9","g":"06ad53cbb091a55f","name":"Chosen Volcano","func":"const volcano = msg.work ?? flow.get(\"volcano\")\nmsg.payload = \"My favourite volcano is \" + volcano\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":240,"wires":[["1c114f08.2571d1"]]},{"id":"c06d4acc85f80222","type":"inject","z":"a28582204ac0cbe9","g":"06ad53cbb091a55f","name":"No choice","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":200,"wires":[["8a3d38cf.09cc48"]]},{"id":"bbc8da46a6989d8c","type":"inject","z":"a28582204ac0cbe9","g":"06ad53cbb091a55f","name":"Anak Krakatao","props":[{"p":"payload"},{"p":"work","v":"Anak Krakatao","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":240,"wires":[["8a3d38cf.09cc48"]]},{"id":"a491b25559df1c89","type":"inject","z":"a28582204ac0cbe9","g":"06ad53cbb091a55f","name":"Eyjafjallajökull","props":[{"p":"payload"},{"p":"work","v":"Eyjafjallajökull","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":280,"wires":[["8a3d38cf.09cc48"]]}]