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": "WORKING - Code Node HTTP",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "test-working",
"responseMode": "lastNode",
"options": {}
},
"id": "webhook-001",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
240,
300
]
},
{
"parameters": {
"jsCode": "// Use n8n's built-in $http helper\nconst prompt = 'Generate 3 LinkedIn messages for Jane Smith at TechCorp. Format as JSON: {\"message1\": \"...\", \"message2\": \"...\", \"message3\": \"...\"}';\n\ntry {\n const response = await this.helpers.httpRequest({\n method: 'POST',\n url: 'https://sendo-wine.vercel.app/generate',\n body: {\n prompt: prompt\n },\n json: true\n });\n \n return [{\n json: {\n api_success: response.success,\n message1: response.response?.message1 || 'NOT FOUND',\n message2: response.response?.message2 || 'NOT FOUND',\n message3: response.response?.message3 || 'NOT FOUND',\n full_response: response\n }\n }];\n} catch (error) {\n return [{\n json: {\n error_message: error.message,\n api_success: false,\n message1: 'ERROR: ' + error.message,\n message2: 'Check n8n execution logs',\n message3: 'for details'\n }\n }];\n}"
},
"id": "code-001",
"name": "Fetch API",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"fromEmail": "mechconect18@gmail.com",
"toEmail": "godbhargav@gmail.com",
"subject": "=\u2705 WORKING - AI Messages",
"emailType": "html",
"text": "",
"html": "=<h1>\ud83c\udf89 It Works!</h1>\n<h2>DEBUG INFO:</h2>\n<p><strong>Keys in $json:</strong> {{ Object.keys($json).join(', ') }}</p>\n<p><strong>Full $json:</strong></p>\n<pre>{{ JSON.stringify($json, null, 2) }}</pre>\n<hr>\n<h2>API Success: {{ $json.api_success }}</h2>\n<h3>Message 1:</h3>\n<p>{{ $json.message1 }}</p>\n<h3>Message 2:</h3>\n<p>{{ $json.message2 }}</p>\n<h3>Message 3:</h3>\n<p>{{ $json.message3 }}</p>",
"options": {}
},
"id": "email-001",
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2,
"position": [
680,
300
],
"credentials": {
"smtp": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Fetch API",
"type": "main",
"index": 0
}
]
]
},
"Fetch API": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2025-11-05T08:05:00.000Z",
"versionId": "1"
}
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.
smtp
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
WORKING - Code Node HTTP. Uses emailSend. Webhook trigger; 3 nodes.
Source: https://github.com/Bhargav-Dhamshetty/sendoai/blob/f7f47f3e4827fb0642c329fce233dae24d76a088/n8n-workflows/WORKING_CODE_NODE.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.
This workflow receives new consult bookings via webhook (Calendly v2 or a generic scheduling tool), generates timed confirmation and reminder messages, runs each SMS through a separate compliance work
This workflow uses webhooks, Twilio SMS, SMTP email, and a Bar-Compliance Guardrail sub-workflow to request client ratings 48 hours after matters close. It routes replies so 4–5 star clients get a Goo
This workflow automates flight price comparison across multiple booking platforms (Kayak, Skyscanner, Expedia, Google Flights). It accepts natural language queries, extracts flight details using NLP,
Automate the tracking of customer subscription expiry dates, create renewal tasks in ClickUp, and dispatch friendly email reminders before the due date. The workflow listens for incoming subscription
This workflow receives missed-call webhooks from Twilio or CallRail, normalizes call details, and instantly sends a compliant text-back via Twilio when allowed, then emails your firm a delivery-status