Subject: CRITICAL SECURITY BUG - Agent Caching Customer Data Between Different Callers Priority: URGENT - Security Breach Issue Summary: Our Retell AI agent is incorrectly caching and reusing customer authentication data (specifically the custnum variable) between completely different phone calls from different customers. This is causing Customer B's verification attempts to be checked against Customer A's account, creating a severe security vulnerability. Expected Behavior: Each phone call should be completely isolated When Customer A calls and authenticates with custnum "12345", this should be forgotten when the call ends When Customer B calls next, they should authenticate with their own custnum (e.g., "67890") Variables should NEVER persist between different callers Actual Behavior: Customer A (Rosa) calls and authenticates with custnum "222923" Call ends Customer B calls from a different phone number Agent incorrectly sends custnum "222923" (Rosa's) for Customer B's verification Customer B provides their postal code (e.g., "N0B1M0") Verification fails because it's checking Customer B's postal against Rosa's account Evidence from Our Logs: Execution 1 (22:48:54): custnum: "222923", postal: "N2K4M5" - FAILED (wrong postal for Rosa) Execution 2 (22:50:43): custnum: "222923", postal: "N2K4L7" - SUCCESS (Rosa's correct postal) Execution 3 (22:52:02): custnum: "222923", postal: "N2K4L7" - SUCCESS (Rosa's correct postal) Execution 4 (00:58:31): custnum: "222923", postal: "N0B1M0" - FAILED (different customer, but using Rosa's custnum!) All verification attempts are using the same custnum "222923" regardless of who is calling. Our Configuration: Agent ID: [Your Agent ID] Webhook endpoints: /webhook/authenticate-customer - Returns custnum for current caller /webhook/verify-identity - Receives custnum from agent for verification Critical Function: verify_identity is receiving the SAME custnum for different callers What We've Already Tried: Updated our prompt with explicit instructions to reset all variables between calls Added "EVERY CALL IS A NEW CUSTOMER" instructions Specified that custnum should come from THIS call's authenticate_customer response Added examples showing correct vs incorrect behavior Confirmed our backend (n8n) is working correctly - the issue is the agent is sending the wrong custnum Prompt Instructions We've Added (Not Working): ## CRITICAL SECURITY PROTOCOL - CALL ISOLATION ### Every Call is Independent Each phone call represents a unique, isolated session with no connection to any previous or future calls. **At the start of EVERY new call:** 1. Initialize with a completely clean state 2. Set current_call_custnum = null 3. Clear all customer-specific variables 4. Treat the caller as completely unknown 5. Wait for authenticate_customer to identify THIS specific caller Impact: Security Risk: Customers could potentially access other customers' account information Verification Failures: Legitimate customers cannot verify their identity Business Impact: We cannot deploy this to production with this bug Required Solution: Each call must have completely isolated memory/context No variables should persist between different phone calls The custnum from authenticate_customer should be stored ONLY for the duration of the current call When a new call starts, ALL previous data must be forgotten Questions: Is there a setting we're missing for "call isolation" or "session management"? Are variables being cached at the platform level that we need to clear? Is there a way to force a complete context reset between calls? Can you confirm that call_id changes between different calls and that each call_id should have its own isolated context? Reproduction Steps: Person A calls the agent Agent runs authenticate_customer which returns custnum "12345" Person A completes verification and hangs up Person B calls the agent from a different phone Agent SHOULD get a new custnum from authenticate_customer for Person B Instead, agent uses Person A's custnum "12345" when calling verify_identity Additional Context: You previously mentioned that "Each call in Retell AI should be isolated by default" You stated that each call has its own unique call_id and retell_llm_dynamic_variables Despite this, we're seeing clear evidence of variable persistence between calls Urgent Request: Please investigate why customer data is persisting between calls and provide a solution immediately. This is blocking our production deployment and represents a critical security vulnerability. We need either: A configuration change to enforce call isolation A platform fix if this is a bug Clear documentation on how to prevent variable caching between calls