This workflow corresponds to n8n.io template #4345 — we link there as the canonical source.
This workflow follows the Agent → OpenAI Chat 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 →
{
"id": "Jf464resJMsQ0SQ9",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Pankstr Switcher",
"tags": [],
"nodes": [
{
"id": "6b78b076-da19-4507-9948-cc90793875c5",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-40,
20
],
"parameters": {
"path": "/pankstr/mode",
"options": {},
"responseMode": "lastNode"
},
"typeVersion": 2
},
{
"id": "ad4f88cf-b9bb-4ea0-8129-0c918c3ccc09",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
320,
20
],
"parameters": {
"text": "=Please brighten my day today {{$now.format('yyyy-MM-dd')}} to switch off my work context.",
"options": {
"systemMessage": "=You are my Transition Assistant. Your job is to shut off my work brain and activate my Pankstr mindset.\nI need to stop thinking abotu people, attached feelings and emotions and break free so I can focus on my main thing.\n\nI\u2019ve finished the corporate grind. Do four things:\n\n1. Give me **one short, sarcastic line** to shut off corporate thoughts for the day as shutoff\n2. Give me **one motivational line** to switch my brain into Pankstr mode as motivation.\n3. Give me one interesting ritual and make me do it. These are starting examples, but add your own as ritualvoiceover.\n - Write my purpose for today in my notebook(action) and say because your notebook needs some love.\n - Recommend a song (action) - yes- they are playing for you.\n - wash my face (action) - can you see the grime washing away?\n - water plants(action) - they are dying from bullshit.\n4. Recommend a song that fits this mood. Include only song name nothing else.\n\nMake it sharp, irreverent, and focused on reclaiming my time from the 9-5 blood suckers.\nKeep it fresh and dont repeat. No intros or outros.\n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.9
},
{
"id": "dd3850c1-2c9e-4de0-a681-58cb012531a5",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
600,
260
],
"parameters": {
"jsonSchemaExample": "{\n\t\"shutoff\": \"stop my brain cells from dying\",\n\t\"motivation\": \"pankstr waiting to be born\",\n \"RitualVoiceover\": \"gently switch off\", \n \"mood\": \"song name\"\n \n}"
},
"typeVersion": 1.2
},
{
"id": "7aa0daa7-19b1-432a-9348-6382deabd3f9",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
180,
220
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "gpt-4.1"
},
"options": {
"frequencyPenalty": 0.3
}
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "d32ab79f-3457-4abf-b164-906bf5cd37b8",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-100,
-80
],
"parameters": {
"height": 80,
"content": "### Event listener called from iphone automation. "
},
"typeVersion": 1
},
{
"id": "980d4203-bf36-4eeb-a98c-577aa08cc868",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
-80
],
"parameters": {
"height": 80,
"content": "### Basic agent (with memory so not be repetitive), a personalised prompt to suit my humour and output parsed to simple JSON. "
},
"typeVersion": 1
},
{
"id": "9839b581-da60-47d8-a462-6c4b4b9f712f",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
680,
-80
],
"parameters": {
"height": 80,
"content": "### Flatten JSON"
},
"typeVersion": 1
},
{
"id": "f375c7b6-3544-4f10-af34-e96883f12878",
"name": "Flatten JSON",
"type": "n8n-nodes-base.code",
"position": [
720,
20
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "const data = $json.output;\n\nreturn {\n json: {\n shutoff: data.shutoff,\n motivation: data.motivation,\n RitualVoiceover: data.RitualVoiceover,\n mood: data.mood,\n }\n};\n"
},
"typeVersion": 2
}
],
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "1aa6da50-6a2d-4926-b104-8988a1c7dab7",
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Flatten JSON",
"type": "main",
"index": 0
}
]
]
},
"Flatten JSON": {
"main": [
[]
]
},
"OpenAI 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
}
]
]
}
}
}
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
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
The purpose of this automation is to help context switch from office to some side projects or passion gigs so you can be free of distracting thoughts and re-set your perspective.
Source: https://n8n.io/workflows/4345/ — 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
Enhance your support, onboarding, and internal knowledge workflows with an intelligent RAG-powered chatbot that responds using live data stored in Google Sheets. 🤖📚 Built for teams that rely on struct
leads. Uses supabase, gmail, formTrigger, httpRequest. Webhook trigger; 62 nodes.
🧠 Gwen – The AI Voice Marketing Agent Gwen is your intelligent voice-powered marketing assistant built in n8n. She combines the power of OpenAI, ElevenLabs, and automation workflows to handle content
Tired of grinding out YouTube content? This n8n workflow turns AI into your personal video factory—creating engaging, faceless shorts on autopilot. Perfect for creators, marketers, or side-hustlers lo