{"product_id":"n8n-website-chatbot-workflow-gpt-4o-mini-session-memory","title":"n8n Website Chatbot Workflow: GPT-4o-mini + Session Memory","description":"\u003ch3\u003eTurn your website visitors into real conversations—instantly\u003c\/h3\u003e\n\u003cp\u003eThis n8n website chatbot workflow provides a public chat webhook that answers user messages with OpenAI’s \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e, while using \u003cstrong\u003esession memory\u003c\/strong\u003e to keep the dialogue coherent across multiple turns.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cp\u003eDesigned for n8n automation engineers and SaaS operators, this workflow connects your site to an AI-powered support\/chat experience:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives visitor messages\u003c\/strong\u003e through the public \u003cstrong\u003en8n chat webhook trigger\u003c\/strong\u003e (via your embedded chat widget URL).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInterprets the message\u003c\/strong\u003e using an \u003cstrong\u003eAI agent\u003c\/strong\u003e with a customizable \u003cstrong\u003esystem prompt\u003c\/strong\u003e, so the chatbot can follow your website’s tone and support boundaries.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaintains recent context\u003c\/strong\u003e by pulling conversation history from \u003cstrong\u003ebuffer memory\u003c\/strong\u003e (the last \u003cstrong\u003e10 messages\u003c\/strong\u003e) to avoid repetitive, disconnected replies.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a response\u003c\/strong\u003e by calling the OpenAI Chat Model node configured with \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns the generated reply\u003c\/strong\u003e back to the chat widget for the visitor.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eWebsite visitors ask questions about your product—your chatbot responds consistently within the same session.\u003c\/li\u003e\n  \u003cli\u003eEarly-stage SaaS support triage: answer FAQs and guide users based on your defined system prompt boundaries.\u003c\/li\u003e\n  \u003cli\u003eLead qualification style chat: use the system prompt to steer conversations toward the next best action.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8nnodes-langchainchat trigger\u003c\/strong\u003e: exposes the chat webhook that your website widget connects to.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8nnodes-langchainagent\u003c\/strong\u003e with a \u003cstrong\u003ecustom system prompt\u003c\/strong\u003e for response control.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8nnodes-langchainlm (OpenAI Chat Model)\u003c\/strong\u003e: configured to use \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8nnodes-langchainmemory (buffer window)\u003c\/strong\u003e: session memory using the last \u003cstrong\u003e10 messages\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eSetup steps: add an \u003cstrong\u003eOpenAI API credential\u003c\/strong\u003e, select it in the OpenAI Chat Model node, update the agent system prompt, activate the workflow, and embed the chat widget using the public URL.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45738622681267,"sku":"N8N-17520","price":27.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/ClRQBESDZ_kHJIhi5rKPs_hNykwean.png?v=1785230385","url":"https:\/\/buyflowscripts.com\/products\/n8n-website-chatbot-workflow-gpt-4o-mini-session-memory","provider":"N8N Commerce","version":"1.0","type":"link"}