How to map json output from http request in chat gpt api chat completions?

I got json data from https request. now i am passing the this http request json data through this code {
“model”: “gpt-4o”,
“messages”: [
{
“role”: “user”,
“content”: “Based on the following information, can you provide insights or predictions? Here is the data: {{$(‘Edit Fields’).item.jsonString}}”
}
]
}

but gpt is not taking previous node data. please suggest what can i do?

i am using n8n cloud. operating system windows 11.
**n8n EXECUTIONS_PROCESS setting default
Database (default:

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 Like