Transform chatbots into AI advisors with memory and real-time context
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model, Shopify and Postgres Chat Memory.
How it runs
Trigger: On Telegram events (message).
- Code: runs custom JavaScript code
- Get many products (Shopify): get many (product)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Postgres Chat Memory
- Code: runs custom JavaScript code
- Send a text message (Telegram): uses Telegram
Services it uses
Other Telegram + OpenAI templates (807) · Other OpenAI + PostgreSQL templates (191) · Other Telegram + PostgreSQL templates (70)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Code
n8n-nodes-base.code - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Shopify
n8n-nodes-base.shopify - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat
From the author
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.…