I want to run a simple Edit fields node to isolate specific fields from my input which is a HTTP node. Even though the input of the Edit fields node has the data I want (See screenshot) I still get null as outputs. I tried rewriting the json, I asked the help of Claude many times without success.
You are my only hope!
What is the error message (if any)?
no error message, I just don’t get what I want.
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
140,
-1440
],
"id": "2517be43-5d39-4e92-bd27-4c2f84172fe8",
"name": "When chat message received",
"webhookId": "4e450112-43d5-4750-8db9-50f85b7b3730"
},
{
"parameters": {
"text": "={{ $json.chatInput }}",
"attributes": {
"attributes": [
{
"name": "Full Name",
"description": "Full Name",
"required": true
},
{
"name": "Short Description",
"description": "Short description"
},
{
"name": "Affiliation",
"description": "Affiliation"
}
]
},
"options": {
"systemPromptTemplate": "You are an expert extraction algorithm.\n\nExtract the full name of the person from the text.\nExtract the main affiliation of the person from the text.\nExtract a description of what the person does from the text.\n\nIf no full name of a person is given, do not return anything\n\nIf you do not know the value of an attribute asked to extract, you may omit the attribute's value."
}
},
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"typeVersion": 1,
"position": [
400,
-1440
],
"id": "97ab74fa-7e77-4ab3-9058-4bf14e103170",
"name": "Information Extractor"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-3-7-sonnet-20250219",
"cachedResultName": "Claude 3.7 Sonnet"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
380,
-1240
],
"id": "91f79805-d0d9-4736-b00d-b57b776eb060",
"name": "Anthropic Chat Model",
"credentials": {
"anthropicApi": {
"id": "0KuUpyjpt7LwRyic",
"name": "Anthropic account 3"
}
}
},
{
"parameters": {
"method": "POST",
"url": " https://orcid.org/oauth/token",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "client_id",
"value": x
},
{
"name": "client_secret",
"value": x
},
{
"name": "scope",
"value": "/read-public"
},
{
"name": "grant_type",
"value": "client_credentials"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
700,
-1780
],
"id": "4d239c8b-2064-41ca-beee-aefd8acea972",
"name": "ORCID request"
},
{
"parameters": {
"url": "=https://pub.orcid.org/v3.0/search/?q={{ $json.output['Full Name'].split(' ').join('%20') }}&rows=1",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/orcid+json"
},
{
"name": "Authorization",
"value": "=Bearer {{ $json.access_token }}"
}
]
},
"options": {
"response": {
"response": {
"responseFormat": "json"
}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1080,
-1500
],
"id": "f15c6b4b-168f-4a70-b91c-c71701ab2ff2",
"name": "HTTP Request"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "8288e5d5-3a24-45d1-b64f-c37789269fe0",
"name": "access_token",
"value": "={{ $json.access_token }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
920,
-1640
],
"id": "43efe405-8460-47aa-a484-b4b509e7d3e4",
"name": "Edit Fields"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "d24153b3-5963-451a-8c5c-d4de638bae05",
"name": "result[0]['orcid-identifier'].uri",
"value": "={{ $json.result[0]['orcid-identifier'].uri }}",
"type": "string"
},
{
"id": "e9d388b5-a39d-4f8d-b58e-592f522dd3f5",
"name": "result[0]['orcid-identifier'].path",
"value": "={{ $json.result[0]['orcid-identifier'].path }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1340,
-1500
],
"id": "5921edf9-5121-42f1-88b2-78c65c2af712",
"name": "Edit Fields1"
},
{
"parameters": {
"url": "=https://pub.orcid.org/v3.0/{{ $json.result[0]['orcid-identifier'].path }}/record",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "accept",
"value": "application/orcid+json"
},
{
"name": "authorization",
"value": "Bearer"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1640,
-1640
],
"id": "46549519-2afc-4b8a-b1ac-e38aac81d5a1",
"name": "HTTP Request1"
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "Information Extractor",
"type": "main",
"index": 0
}
]
]
},
"Information Extractor": {
"main": [
[
{
"node": "ORCID request",
"type": "main",
"index": 0
},
{
"node": "Edit Fields",
"type": "main",
"index": 0
},
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Anthropic Chat Model": {
"ai_languageModel": [
[
{
"node": "Information Extractor",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"ORCID request": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
},
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields1": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "9688dd919447d61e4edfdc9bfc99e1c40883502257c37d52a8a3c5fdcc83504b"
}
}
Share the output returned by the last node
I get this currently:
[
{
"result": [
{
"orcid-identifier": {
"uri": null,
"path": null
}
}
]
}
]
When I’d like to have:
[
{
"result": [
{
"orcid-identifier": {
"uri": (https://orcid.org/0000-0003-0498-621X),
"path": 0000-0003-0498-621X
}
}
]
}
]
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: