π¬ Build a personalized shopping assistant with Zep Memory, GPT-4 and Google Sheets
β‘ 1,453 views Β· π¬ Support Chatbots
Description
β What problem does this workflow solve?
Most e-commerce chatbots are transactional; they answer one question at a time and forget your context right after. This workflow changes that. It introduces a smart, memory-enabled shopping assistant that remembers user preferences, past orders, and previous queries to offer deeply personalized, natural conversations.
βοΈ What does this workflow do?
- Accepts real-time chat messages from users.
- Uses Zep Memory to store and recall personalized context.
- Integrates with:
- π Product Inventory
- π¦ Order History
- π Return Policy
- Answers complex queries based on historical context.
- Provides:
- Personalized product recommendations
- Context-aware order lookups
- Seamless return processing
- Policy discussions with minimal user input
π§ Why Context & Memory Matter
Traditional bots:
- β Forget what the user said 2 messages ago
- β Ask repetitive questions (name, order ID, etc.)
- β Canβt personalize beyond basic filters
With Zep-powered memory, your bot:
- β Remembers preferences (e.g., favorite categories, past questions)
- β Builds persistent context across sessions
- β Gives dynamic, user-specific replies (e.g., βYou ordered this last weekβ¦β)
- β Offers a frictionless support experience
π§ Setup Instructions
π§ Zep Memory Setup
- Create a Zep instance and connect it via the Zep Memory node.
- It will automatically store user conversations and summarize facts.
π¬ Chat Trigger
- Use the βWhen chat message receivedβ trigger to initiate the conversation workflow.
π€ AI Agent Configuration
- Connect:
- Chat Model β OpenAI GPT-4 or GPT-3.5
- Memory β Zep
- Tools:
Get_Ordersβ Fetch user order history from Google SheetsGet_Inventoryβ Recommend products based on stock and preferencesGet_ReturnPolicyβ Answer policy-related questions
π Google Sheets
- Store orders, inventory, and return policies in structured sheets.
- Use
readaccess nodes to fetch data dynamically during conversations.
π§ How it Works β Step-by-Step
- Chat Trigger β User sends a message.
- AI Agent (w/ Zep Memory):
- Reads past interactions to build context.
- Pulls memory facts (e.g., βUser prefers menβs sneakersβ).
- Uses External Tools:
- Looks up orders, return policies, or available products.
- Generates Personalized Response using OpenAI.
- Reply Sent Back to the user through chat.
π§© What the Bot Can Do
- π Suggest products based on past browsing or purchase behavior.
- π¦ Check order status and history without requiring the user to provide order IDs.
- π Explain return policies in detail, adapting answers based on context.
- π€ Engage in more human-like conversations across multiple sessions.
π€ Who can use this?
This is ideal for:
- π E-commerce store owners
- π€ Product-focused AI startups
- π¦ Customer service teams
- π§ Developers building intelligent commerce bots
If youβre building a chatbot that goes beyond canned responses, this memory-first shopping assistant is the upgrade you need.
π Customization Ideas
- Connect with Shopify, WooCommerce, or Notion instead of Google Sheets.
- Add payment processing or shipping tracking integrations.
- Customize the memory expiration or fact-summarization rules in Zep.
- Integrate with voice AI to make it work as a phone-based shopping assistant.
π Ready to Launch?
Just connect:
- β OpenAI Chat Model
- β Zep Memory Engine
- β Your Product/Order/Policy Sheets
And youβre ready to deliver truly personalized shopping conversations.
π Nodes Used
AI Agent, OpenAI Chat Model, Zep, Chat Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File