Store AI chat conversations with OpenAI GPT-4.1-mini and Pinecone
How it works
Chat input triggers the workflow when a user sends a message. The primary AI Agent processes the incoming message using OpenAI's Chat Model to generate intelligent responses. Context is retrieved from an assistant service using the "Get context from Assistant" node to enhance response quality with relevant historical information. A secondary AI Agent handles database logging by formatting and sending chat data via POST request to your storage endpoint. The Edit Fields node structures the conversation data to match your database schema before storage. All conversations are automatically stored with proper formatting, timestamps, and metadata for future retrieval and analysis.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Text automations using Apple Shortcuts
Overview This workflow answers user requests sent via Mac Shortcuts Several Shortcuts call the same webhook, with a quer...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments