Unable to call the node red flow with a parameter

Hello All,
I am trying send a value to a node red flow which send an email using ChatGPT. The Parameter need to be in the subject line so that the solution becomes a generic solution.
JSON Code:

[
    {
        "id": "0b9231e7bfc51957",
        "type": "function",
        "z": "dcd28f3683125a5c",
        "name": "",
        "func": "// @ts-nocheck\n// msg.headers = {\n//     \"x-api-key\":\"sec_777Xibue1OqnClJ8OT7qI8y71hwWvbpX\"\n// }\nvar emailto = 'globant.hackathon@gmail.com';\nvar so = req.query.name;\nmsg.to = 'varun.kumar@globant.com'; // Send TO Email ID\nmsg.so = so;// Sales Order for Customer Reference\nmsg.payload = 'We have Created Sales Order number: ' \n                + so\n            + 'Starting with Hi Team, ' \n            + 'Ending with: ' + 'Regards, Globant.automation@gmail.com'\n            + 'If delay happens from our side. We will inform you'\nmsg.topic = 'Your Reference Sales Order:' + so;\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 421,
        "y": 326,
        "wires": [
            [
                "33d2854137e12005"
            ]
        ]
    }
]

Kindly help !