-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Implement automatic AI agent replies if no human response is detected after a set duration
As a user of the chat system,
I want the AI agent to automatically send a response if no human reply is received within 15 minutes,
so that conversations do not remain unanswered and users feel acknowledged even during periods of human unavailability.
Description
Introduce an AI-driven auto-reply mechanism in the chatroom.
If no human agent provides a response within a configurable 15-minute inactivity period, the AI should automatically send a predefined reply.
The system should ensure the timer resets when any human response is detected and should send only one AI reply per inactivity cycle.
This improves user engagement and prevents long wait times during human delays.
Acceptance Criteria (AC)
AC1 – Triggering Auto-Reply
When the user sends a message and no human agent responds within 15 minutes,
the AI agent must automatically send a predefined reply.
AC2 – Timer Reset on Human Response
If a human agent sends a message before the 15-minute timer completes,
the timer must reset, and no AI auto-reply should be sent.
AC3 – Single Auto-Reply Per Cycle
The AI must send only one auto-reply per 15-minute inactivity window.
AC4 – Logging
The system must log:
Start time of inactivity timer
Timer resets
Auto-reply sent event
User/human agent messages that interrupt the timer
AC5 – No Duplicate Replies
System must ensure there are no duplicate or repeated AI messages due to refresh, page reload, or socket reconnect.
AC6 – Multi-User Handling
System must correctly track inactivity for each conversation session independently.