{"product_id":"n8n-chat-trigger-deepseek-langchain-agent-workflow","title":"n8n Chat Trigger + DeepSeek LangChain Agent Workflow","description":"\u003ch3\u003eTurn chat messages into DeepSeek-powered AI replies in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow lets you receive a user’s message via an \u003cstrong\u003en8n public chat trigger\u003c\/strong\u003e, then forwards it to a \u003cstrong\u003eLangChain AI Agent\u003c\/strong\u003e using the \u003cstrong\u003eDeepSeek Chat Model (deepseek-flash)\u003c\/strong\u003e to generate a response—perfect for embedding conversational AI into your web widget or app.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a chat message\u003c\/strong\u003e through an \u003cstrong\u003en8n chat trigger\u003c\/strong\u003e (public chat\/webhook URL).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes the payload\u003c\/strong\u003e by mapping the incoming message into a \u003ccode\u003echatInput\u003c\/code\u003e field.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends \u003ccode\u003echatInput\u003c\/code\u003e to a LangChain AI Agent\u003c\/strong\u003e for processing and response generation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses the DeepSeek Chat Model\u003c\/strong\u003e (\u003ccode\u003edeepseek-flash\u003c\/code\u003e) to produce the agent’s reply.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup (quick and practical)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreate and select a \u003cstrong\u003eDeepSeek API credential\u003c\/strong\u003e for the \u003cstrong\u003eDeepSeek Chat Model\u003c\/strong\u003e node.\u003c\/li\u003e\n  \u003cli\u003eEnable the chat trigger and copy the \u003cstrong\u003epublic chat\/webhook URL\u003c\/strong\u003e to the client or widget that will send chat messages to n8n.\u003c\/li\u003e\n  \u003cli\u003e(Optional) Update the \u003cstrong\u003eagent instructions\/prompt\u003c\/strong\u003e inside the AI Agent node to match the behavior you want.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCustomer support chat\u003c\/strong\u003e where users ask questions and receive DeepSeek-generated answers via an n8n-powered endpoint.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS in-app assistant\u003c\/strong\u003e for contextual Q\u0026amp;A, where your UI sends messages to the n8n Chat Trigger and displays the response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers\u003c\/strong\u003e prototyping conversational workflows using n8n + LangChain without building a full backend.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Chat Trigger:\u003c\/strong\u003e \u003ccode\u003en8nn8n-nodes-langchainchat trigger\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePayload mapping:\u003c\/strong\u003e \u003ccode\u003eset\u003c\/code\u003e node to map incoming message into \u003ccode\u003echatInput\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLangChain Agent:\u003c\/strong\u003e \u003ccode\u003en8nn8n-nodes-langchainagent\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeepSeek model:\u003c\/strong\u003e \u003ccode\u003en8nn8n-nodes-langchainlm chat deep seek\u003c\/code\u003e using \u003ccode\u003edeepseek-flash\u003c\/code\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46029445398707,"sku":"N8N-19593","price":69.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/IVekVCACvuhxd-TP48COl_AaWczPr8.png?v=1789463601","url":"https:\/\/buyflowscripts.com\/products\/n8n-chat-trigger-deepseek-langchain-agent-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}