https://retellai.com/?utm_source=discord&utm_medium=seo logo
Description:There is an issue with inbound SMS age...
# ❓・ai-evy-support
e
@AI Evy Description: There is an issue with inbound SMS agent handling in Retell AI where the previous agent session continues even after the agent is removed or reassigned. Steps to Reproduce: Configure an inbound SMS number. Assign an agent (Agent A). Start an SMS conversation. Change the agent (Agent B) or remove the agent. Send another inbound SMS. Expected Behavior: The previous agent session should terminate immediately. The system should either: Use the newly assigned agent, or Stop responding if no agent is assigned. Actual Behavior: The previous agent (Agent A) continues handling messages. Session/context does not reset after agent removal or change. Critical Observation: The issue persists until one of the following actions is performed: Sending an outbound SMS, or Changing the inbound SMS number After either of these actions, the system resets and starts behaving correctly. Impact: Users receive responses from outdated agent configurations. Breaks expected real-time agent switching behavior. Can lead to incorrect or unintended communication. Likely Root Cause (Stronger Hypothesis): Session or conversation state is being cached and not invalidated on agent update/removal. Outbound SMS or number change likely triggers: Session refresh Cache invalidation Rebinding of agent configuration Suggested Fix: Force session invalidation when: Agent assignment is updated Agent is removed Ensure inbound message handling: Always fetches the latest agent configuration Does not rely on stale session cache Environment: Retell AI – SMS (Inbound Flow) Issue reproducible consistently
a
Thanks for tagging me @Ejaz. I'll look through relevant sources and get back to you shortly.
### Answer I don't have specific documentation about SMS agent session handling, cache invalidation, or the behavior you're describing with inbound SMS agents in the available sources. The issue you're experiencing—where a previous agent continues handling messages even after being removed or reassigned—appears to be a technical bug related to session management that isn't covered in the documentation I have access to. For this type of platform-specific issue involving SMS agent session persistence and cache invalidation, I recommend: *Visit [Documentation]() * *Visit [Hire certified Retell partner]() * Would you like a general answer based on my knowledge instead?
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.