N8n - http node to use groq API - Adding Json Object as a Value to a KeyValue Pair in a Node


I am trying to convert my input into HTML code only. But the output gives me some JS variables as below (see screenshot). It only happens when I use the dynamic variable {{ $json.life_and_background }}. How can I fix this issue and get the desired output? Many thanks for your help!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

1.49.0
default: SQLite
default: own, main
Docker

From my understanding, the variable that I use from the previous node alters the json. Because there are some “” and /n in it. I have tried different models. It works well when I copy paste the plain text directly in the json but not when I use the variable

Hi @Alexandre_MOREY

you need to switch the toggle so it evaluates the expressions :wink:
image


Hi Ria, thank you for your reply! The json, looks fine so that’s why I don’t understand why the output comes out with some JS instead of HTML…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.