This workflow follows the Agent → Emailsend recipe pattern — see all workflows that pair these two integrations.
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": "\u77ed\u7bc7\u5c0f\u8bf4\u5de5\u4f5c\u6d41",
"nodes": [
{
"parameters": {
"promptType": "define",
"text": "=\u4ee5\"{{ $json.data }}\" \u4e3a\u4e3b\u9898\u521b\u4f5c\u4e00\u4e07\u5b57\u5185\u5bb9\u7684\u5c0f\u8bf4\u5927\u7eb2,\u7ae0\u8282\u5b89\u6392\u4ee5\u53ca\u6807\u9898\u540d\uff0c\u6807\u9898\u63a7\u5236\u572815\u5b57\u4ee5\u5185\u8981\u6709\u5438\u5f15\u529b",
"hasOutputParser": true,
"options": {
"systemMessage": "\u4f60\u662f\u4e00\u4e2a\u70ed\u95e8\u7684\u77ed\u7bc7\u5c0f\u8bf4\u4f5c\u8005\uff0c\u64c5\u957f\u7f16\u5199\u4e00\u4e07\u5b57\u5de6\u53f3\u7684\u723d\u6587\u7c7b\u578b\u7684\u5c0f\u8bf4\uff0c\u5c0f\u8bf4\u7684\u9762\u5411\u5bf9\u8c61\u662f\u6ca1\u6709\u592a\u591a\u793e\u4f1a\u7ecf\u9a8c\u7684\u9ad8\u4e2d\u751f,\u5185\u5bb9\u7a81\u51fa\u597d\u4eba\u6709\u597d\u62a5\uff0c\u6076\u4eba\u6709\u6076\u62a5\uff0c\u5f00\u5934\u8981\u6709\u5438\u5f15\u529b\uff0c\u5bf9\u8bdd\u8981\u6709\u5f20\u529b\u80fd\u591f\u5f15\u8d77\u8bfb\u8005\u7684\u60c5\u7eea\u5171\u9e23\uff0c\u5c3d\u53ef\u80fd\u591a\u7684\u5bf9\u8bdd\uff0c"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
20,
-80
],
"id": "a8b917a2-920a-4e86-a02d-242613a4c3bf",
"name": "AI Agent",
"notesInFlow": true,
"notes": "\u5927\u7eb2ai"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
"typeVersion": 1,
"position": [
0,
140
],
"id": "7659db96-1674-499e-a30d-69bd410ca6c3",
"name": "DeepSeek Chat Model",
"credentials": {
"deepSeekApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsonSchemaExample": "{\n\t\"\u5927\u7eb2\": \"California\",\n\t\"\u7ae0\u8282\u5217\u8868\": [{\n \"index\": 0,\n \"description\": \"\"\n }],\n \"\u6807\u9898\":\"\"\n}"
},
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"typeVersion": 1.2,
"position": [
200,
140
],
"id": "33b5263f-1baa-4538-8798-f7112b31968d",
"name": "Structured Output Parser"
},
{
"parameters": {
"options": {
"reset": false
}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
600,
-80
],
"id": "b035c776-1f97-40e2-ad79-8e24148a3d6e",
"name": "Loop Over Items"
},
{
"parameters": {},
"type": "n8n-nodes-base.noOp",
"name": "Replace Me",
"typeVersion": 1,
"position": [
1400,
-60
],
"id": "b382158e-fc66-45ef-a457-6d4df87faecd"
},
{
"parameters": {
"fieldToSplitOut": "output[\"\u7ae0\u8282\u5217\u8868\"]",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
380,
-80
],
"id": "318e15e5-5519-4bc5-803e-10f87fbe5d80",
"name": "Split Out"
},
{
"parameters": {
"promptType": "define",
"text": "=\u6839\u636e\u5927\u7eb2\"{{ $('AI Agent').last().json.output['\u5927\u7eb2'] }}\"\u548c\u7ae0\u8282\u5b89\u6392\"{{ $('AI Agent').last().json.output['\u7ae0\u8282\u5217\u8868'].map(x => x[\"description\"]).join(';') }}\"\u7f16\u5199\u7b2c{{ $json.index }}\u7ae0\u5185\u5bb9, \u5b83\u7684\u7ae0\u8282\u5b89\u6392\u662f\" {{ $json.description }}\"\uff0c\u5185\u5bb9\u4e3a1200\u5b57\uff0c\u4ec5\u8f93\u51fa\u6587\u672c\u5185\u5bb9\u4e0d\u8981\u5728\u524d\u540e\u589e\u52a0\u5176\u4ed6\u7684\u5185\u5bb9\u8bf4\u660e\uff0c\u8bf7\u4e25\u683c\u63a7\u5236\u5b57\u6570\u4ee5\u53ca\u8f93\u51fa\u7684\u8bf4\u660e",
"options": {
"systemMessage": "\u4f60\u662f\u4e00\u4e2a\u70ed\u95e8\u77ed\u7bc7\u5c0f\u8bf4\u4f5c\u5bb6\uff0c\u5584\u4e8e\u53d1\u73b0\u793e\u4f1a\u75db\u70b9\u548c\u4eba\u751f\u767e\u6001\u6765\u7f16\u5199\u723d\u6587\u5c0f\u8bf4"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
920,
-60
],
"id": "540ac95c-dd5b-46d2-b0d9-9bb92549410d",
"name": "AI Agent1",
"notesInFlow": true,
"notes": "\u7ae0\u8282\u7f16\u5199"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
"typeVersion": 1,
"position": [
880,
160
],
"id": "615c8ca4-3120-4514-9d9c-7f4895e247b8",
"name": "DeepSeek Chat Model1",
"credentials": {
"deepSeekApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"language": "python",
"pythonCode": "# Loop over input items and add a new field called 'myNewField' to the JSON of each one\ndata = \"\"\nlength = len(_input.all())\n\nfor index, item in enumerate(_input.all()):\n if index == length - 1:\n data += item.json.output\n else:\n data += (item.json.output + \"\\n\" + \"------\")\n \nreturn {\"data\": data}"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
920,
-380
],
"id": "e3f303d9-73c0-4c80-b654-84f35166c8e0",
"name": "Code"
},
{
"parameters": {
"fromEmail": "354353484@qq.com",
"toEmail": "673125641@qq.com",
"subject": "=\u5c0f\u8bf4 - {{ $('AI Agent').last().json.output['\u6807\u9898'] }}",
"emailFormat": "text",
"text": "={{ $json.data }}",
"options": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
1280,
-380
],
"id": "27eccc4d-f65f-4ef0-a7a1-102ae3f12830",
"name": "Send Email",
"credentials": {
"smtp": {
"name": "<your credential>"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-480,
60
],
"id": "e6361cab-fff6-4fa3-8c8f-1cc5470d3ec1",
"name": "When clicking \u2018Test workflow\u2019"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "c4609f77-e5d9-48bc-8ef0-33bcf9674c65",
"name": "data",
"value": "\u8f9b\u8f9b\u82e6\u82e6\u7ed9\u6751\u91cc\u5356\u6c34\u679c\uff0c\u4e0d\u66fe\u60f3\u6751\u91cc\u4eba\u89c9\u5f97\u81ea\u5df1\u8d5a\u5dee\u4ef7\u592a\u591a",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-260,
60
],
"id": "0bc134c9-563c-445f-a02d-285ce4784d95",
"name": "Edit Fields"
}
],
"connections": {
"DeepSeek Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
],
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Replace Me": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "Replace Me",
"type": "main",
"index": 0
}
]
]
},
"DeepSeek Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "f47b2491-3de7-4040-a3f6-3d40841f4cf4",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "mJdw6dILFEjHC1S5",
"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.
deepSeekApismtp
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
How this works
This workflow effortlessly generates complete short stories from simple prompts, delivering polished narratives directly to your inbox via emailSend integration. It's ideal for writers, bloggers, or content creators seeking quick inspiration without the hassle of starting from scratch, saving hours of brainstorming and drafting. The key step involves an AI agent powered by lmChatDeepSeek that iteratively builds the story—outlining, fleshing out scenes, and refining details—before structuring the output for seamless delivery.
Use this workflow when you need rapid, custom short fiction for social media, newsletters, or personal projects, especially if you're handling high volumes of ideas. Avoid it for highly specialised genres requiring deep research, as the AI's general knowledge may fall short; opt for manual editing in those cases. Common variations include tweaking the prompt for specific themes or integrating with tools like Google Docs for further collaboration.
About this workflow
短篇小说工作流. Uses agent, lmChatDeepSeek, outputParserStructured, emailSend. Event-driven trigger; 12 nodes.
Source: https://github.com/youerning/blog/blob/1444dcea6b58025a68cc06c5ca2e40f54aaff69c/n8n/novel-workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
How it Works
Stop reading job listings that aren't a fit. This workflow automatically crawls five major job boards (LinkedIn, Indeed, WeAreDevelopers, Stepstone, and Xing) and scores every listing against your per
Code Schedule. Uses memoryBufferWindow, agent, stickyNote, outputParserStructured. Event-driven trigger; 45 nodes.
3790. Uses memoryBufferWindow, agent, outputParserStructured, lmChatOpenAi. Event-driven trigger; 45 nodes.
Stock Analysis Agent (Hebrew, RTL, GPT-4o)