Transform chatbots into AI advisors with memory and real-time context

Go to Workflow
12 views
Built by Yenire Yenire
Created on June 07, 2026

Description

How it works
• Receives a user message from a chat
• Uses an LLM node to understand user intent and generate a response
• Retrieves and stores conversation memory in a database (Supabase)
• Fetches real-time product or business data from an external API (e.g. Shopify)
• Applies custom logic to ensure a consistent, human-like tone
• Sends a contextual response back to the user

Set up steps
• Import the workflow into n8n
• Create and connect the required credentials (LLM, database, API)
• Configure environment variables and placeholders
• Adjust the prompt and logic to your specific business needs
• Test the workflow using sample user messages

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat
Shopify
n8n-nodes-base.shopify
Telegram
n8n-nodes-base.telegram