You are helping me build the following AI agent workflow. ## Goal Chat Support Customer Authentication: Guest users authenticate during chat by clicking a unique login URL that updates their session with customer data in Redis. ## Specification - What it does: You can authenticate as a guest during your chat session by clicking a unique login link that instantly updates your conversation with your customer profile data. This process uses Redis to securely manage your session context while the AI agent generates the necessary links for you to log in seamlessly. - Trigger: Triggered by an event (Event ยท on chat message) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - OpenAI Chat Model: LLM processing and agent reasoning - Redis: Session context and profile storage - AI Agent: Conversational interface and logic execution ## Known pitfalls, handle each one explicitly in your implementation 1. Session hijacking risks increase if you do not rotate session IDs after authentication so regenerate the key upon successful login. 2. n8n webhook delays may cause stale data in the chat stream so add a status check step before rendering user profile information. 3. High traffic volumes can exhaust Redis memory so set maxmemory policies to evict least recently used keys automatically. ## Reference implementation https://n8n.io/workflows/4216 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/chat-support-customer-authentication/ via usecasesforagents.com