{"product_id":"openai-spiritual-weight-analyzer-n8n-workflow-sub-workflow","title":"OpenAI Spiritual Weight Analyzer n8n Workflow Sub-Workflow","description":"\u003ch3\u003eInstant “Spiritual Weight” Scoring with OpenAI—Built for n8n Sub-Workflows\u003c\/h3\u003e\n\u003cp\u003eThis OpenAI Spiritual Weight Analyzer n8n sub-workflow takes a question from your parent workflow, uses an OpenAI chat model to score its “spiritual weight,” classifies its tone and topic, and returns a clean, normalized JSON payload for downstream decision logic.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives input\u003c\/strong\u003e from a parent workflow, including a \u003cstrong\u003equestion\u003c\/strong\u003e and a \u003cstrong\u003esessionId\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls OpenAI\u003c\/strong\u003e with strict instructions to return a \u003cstrong\u003eJSON-only\u003c\/strong\u003e analysis containing a weight, tone, category, and energy.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and sanitizes output\u003c\/strong\u003e, removing any code-block formatting if present.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFails safely\u003c\/strong\u003e: if JSON parsing fails, it falls back to default values rather than breaking your automation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes results\u003c\/strong\u003e by clamping \u003cstrong\u003espiritualWeight\u003c\/strong\u003e to the \u003cstrong\u003e0.0–1.0\u003c\/strong\u003e range.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns structured JSON\u003c\/strong\u003e including the original question, \u003cstrong\u003esessionId\u003c\/strong\u003e, and the fields your workflow can use: \u003cstrong\u003espiritualWeight\u003c\/strong\u003e, \u003cstrong\u003espiritualTone\u003c\/strong\u003e, \u003cstrong\u003ecosmicCategory\u003c\/strong\u003e, and \u003cstrong\u003equestionEnergy\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRouting logic\u003c\/strong\u003e: direct user questions to different follow-up flows based on spiritualWeight, tone, or cosmicCategory.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eContent qualification\u003c\/strong\u003e: flag high spiritualWeight queries for specialized handling in an n8n automation pipeline.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConversation analysis\u003c\/strong\u003e: attach session-level analytics via sessionId and reuse results in downstream decision logic.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n sub-workflow\u003c\/strong\u003e designed to be called by a parent workflow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI integration\u003c\/strong\u003e using an \u003cstrong\u003eOpenAI chat model\u003c\/strong\u003e configured with your OpenAI API credential.\u003c\/li\u003e\n  \u003cli\u003eUses n8n components including \u003cstrong\u003ecode\u003c\/strong\u003e (JSON handling\/clamping), \u003cstrong\u003esticky note\u003c\/strong\u003e (documentation), \u003cstrong\u003en8nn8n-nodes-langchainagent\u003c\/strong\u003e, and \u003cstrong\u003en8nn8n-nodes-langchainlm chat open ai\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIncludes an \u003cstrong\u003eexecute workflow trigger\u003c\/strong\u003e pattern to integrate cleanly into larger automation workflows.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003ePerfect for n8n users, automation engineers, and SaaS operators who need reliable, normalized OpenAI-powered analysis inside an automation workflow.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46146235302067,"sku":"N8N-20275","price":26.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/MMSRymFqLl09n8jzo6aVN_Uv6EvnVs.png?v=1790845316","url":"https:\/\/buyflowscripts.com\/products\/openai-spiritual-weight-analyzer-n8n-workflow-sub-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}