Problem with switch( function

What are you trying to achieve?

To develop a workflow to use Chat GPT to analyse my ‘Gmail’ emails and then label them / funnel them into specific folders determined by Chat GPT

Steps taken so far

I have already got the necessary modules installed and up and running, i am having real trouble with the switch( function as it is not converting my output label names into the LABEL_******* codes… i am constantly getting the error “400 (invalidArgument): No label add or removes specified”
I am getting the correct output from the chat GPT module but once it goes into the set label module it is causing an error. Is something wrong with my code?

Screenshots: scenario setup, module configuration, errors

Did you try running this particular module by itself (right click it) and entering example data to see if your function is outputting something?

Hi @Scott_Jojo_Edwards, Adding to @XenoMax’s question, have you tried just putting one of the labels “Label_xxxx” alone to test if this mapping format even works ? I don’t think you need “”.