The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Cold Email Agent Template",
"nodes": [
{
"parameters": {
"inputSource": "passthrough"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "ff56b561-b493-4cde-8e28-8276aa03905c",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"resource": "assistant",
"assistantId": {
"__rl": true,
"value": "asst_ruzdoJMpStaumjZRufwIw13D",
"mode": "list",
"cachedResultName": "Cold Email Copywriter"
},
"prompt": "define",
"text": "={{ $json.query }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
220,
0
],
"id": "75369829-12e7-420c-8f49-9ff0aeeebb10",
"name": "OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7b1cd361-36ad-4529-8273-6f779936c934",
"name": "response",
"value": "={{ $json.output }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
580,
0
],
"id": "a4cc1aa7-04eb-4c9f-b704-02b09dd20c1b",
"name": "Edit Fields"
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2ac97b1d-d8a1-46d6-ad41-f901407ac35c",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "h9k7k5jYaaqEh2vz",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
About this workflow
Cold Email Agent Template. Uses executeWorkflowTrigger, openAi. Event-driven trigger; 3 nodes.
Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →