Deploy a custom, branded AI chatbot on your website using this n8n workflow. Integrate seamlessly with a Langflow backend for advanced RAG and LLM orchestration.
Download this n8n workflow template and start using it instantly.
This n8n template is ideal for:
Developers seeking robust, low-code AI backend orchestration using Langflow.
Businesses needing a fully branded, embedded website chat solution.
Users looking for advanced n8n templates focusing on AI deployment.
Automation specialists customizing the n8n node ecosystem for external AI services.
This powerful n8n workflow provides a complete solution for deploying a custom, branded AI chatbot on any website. By leveraging a specialized n8n trigger, the workflow manages the public-facing interaction while delegating complex Artificial Intelligence (AI) logic, such as Retrieval-Augmented Generation (RAG) and LLM orchestration, to a self-hosted or cloud-hosted Langflow instance. This architecture allows users to benefit from Langflow's visual AI building capabilities while using n8n for reliable deployment, custom branding, and streamlined response handling. This comprehensive n8n solution simplifies the process of creating and maintaining complex conversational agents using flexible n8n node configurations.
The logic of this n8n workflow flows sequentially from the user's interaction on the website to the final AI response:
Langflow HTTP Request n8n node. This n8n node is critically configured to send a secure POST request containing the user's input (chatInput) to the designated Langflow API endpoint.Edit Fields n8n node is then executed. This Set n8n node analyzes the complex JSON received from Langflow and uses a precise JSON path ({{ $json.outputs[0].outputs[0].results.message.data.text }}) to extract only the final, clean text response.output field, completing the n8n workflow. The initial n8n trigger automatically sends this clean response back to the chat widget embedded on the user's website, providing a real-time conversational experience.To deploy this powerful n8n workflow template and integrate Langflow, follow these steps:
Langflow n8n node. This involves providing the API key or security token necessary to authorize requests to your Langflow instance.Langflow HTTP Request n8n node, update the placeholder values in the URL (https://LANGFLOWURL/api/v1/run/FLOWID?stream=false) to match your live Langflow deployment URL and the specific flow ID you wish to use.YOURPRODUCTIONWEBHOOK_URL with the URL copied in the previous step. Utilize the customization options (also detailed in the sticky notes) to brand the chatbot title, initial messages, and language settings. When chat message received (n8n trigger): This is the initiating n8n trigger node. Function: Starts the n8n workflow immediately upon receiving a message from the embedded chat widget on the website. Key Configuration: Configured for webhook mode, allowing embedding on public websites, and permitting all origins ().
Langflow (HTTP Request n8n node): Function: Serves as the crucial connector, sending the user's request to the external Langflow AI backend for processing. Key Configuration: Uses POST method, dynamically injects user input using JSON body: "input_value": "{{ $json.chatInput }}", and secures the connection using httpHeaderAuth credentials.
Edit Fields (Set n8n node): Function: Cleans and transforms the complex JSON output received from Langflow into a simple text response suitable for the n8n chat widget. Key Configuration: Extracts the desired text content using the precise JSON path expression {{ $json.outputs[0].outputs[0].results.message.data.text }} and assigns it to the output field.
Generate professional LinkedIn and Facebook content, create images using Google Imagen, and manage human approval loops seamlessly with this advanced n8n workflow. Use this n8n template for marketing.

Automate your sales process with this advanced n8n workflow. Use AI to generate personalized sales proposals instantly, update ClickUp CRM records, and draft follow-up emails via Gmail.

Deploy this powerful n8n workflow template to generate detailed, AI-powered SEO audit reports automatically using DataForSEO and advanced LLMs like Claude, delivered instantly via email.

Deploy a multilingual educational quiz bot using this comprehensive n8n workflow. Integrates OpenAI's GPT-4o-mini, Supabase for state management, and WhatsApp automation.

Automate YouTube Shorts creation using this advanced n8n workflow. Leverage OpenAI for scripts and prompting, and a rendering API to generate images, audio, and assemble the final vertical video automatically.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































