Hi guys , I need some help not an expert and in learning process I tried to create a work flow to generate videos via VEO3 all was perfect but I’m stuck in the http request node specially in the json parameter. There it is { “prompt”: “{{ $json.message.content.prompt }}” evry time I try to execute the step I got this message error request Json parameters need to be valid I tried to check the validity of my json parameter with a json validator and seems to be good but not in N8N. Could you help me guys please thanks
{ "prompt": "{{ $json.message.content.prompt }}"
Is not a valid json document. The trailing }
is missing.
I recommand not using "
for text variables. There is the toJsonString()
function available in n8n, that converts an input to a valid json document. It also takes care about escaping of special characters.
{ "prompt": {{ $json.message.content.prompt.toJsonString() }} }
thx sir will try it ad let you know the results !!!