Agent Notification Feature (Techinical Document)
Description
As a customer service agent, I want to send details or updates to customers via multiple communication channels (SMS, WhatsApp, or RCS) while interacting with them on a call, so that I can deliver quick, efficient, and personalized service on the customer’s preferred platform.
Requirements and Attributes
1. To Number
The recipient's number can be manually entered in the text box via a webhook or fetched from customer details.
This includes both domestic and international numbers.
For international numbers:
The agent must select the appropriate country code.
India’s country code is set as the default.
2. Type of Notification
The agent can select one of the following notification types:
SMS
WhatsApp
RCS
3. Template ID
A Template ID is chosen from the pre-registered templates based on the selected notification type in the agent group settings.
Only relevant template types will be displayed on the agent’s UI.
The Template ID must align with queue settings and notification types.
Approach
1. Agent Group Configuration
A new tab will be added in the agent group settings for "Notification Type".
Agents can select the type of notification (SMS, WhatsApp, RCS) and associate up to 5 templates for each notification type.
Once configured, these mappings will be saved in MySQL.
2. On Agent UI
When an agent is on a call, a dedicated section will be available for triggering notifications.
The agent can:
Select the country code.
Enter the phone number manually.
Choose the notification type (SMS, WhatsApp, RCS).
Select a template.
3. Static Templates
If the selected template is static:
The request will be sent directly to the Gateway-Products Real-Time Queue.
The status of the message will be fetched from MongoDB, based on the
phonon_uuid
and the respective collection.
4. Dynamic Templates
If the selected template is dynamic:
After selecting the country code, phone number, notification type, and template, a pop-up window will open.
The pop-up will display all dynamic fields for the agent to fill in.
Once the dynamic fields are completed, the agent will press the "Send" button to trigger the notification.
The request will then be sent to the Gateway-Products Real-Time Queue.
The status of the message will be fetched from MongoDB, based on the
phonon_uuid
and the respective collection.
5. Message Status Tracking
After sending a notification:
Static Templates: The status (e.g., Sent, Sending, Delivered) will appear on the UI and will be fetched from MongoDB.
Dynamic Templates: The status will be tracked similarly after the pop-up submission.
The UUID and message status will appear in the top-right corner of the agent UI.
The UUID will also be logged in the comments section.
After every 15 second agent will be able to refresh the status
6. Phone Number Validation
Validation must ensure the phone number format is correct for both domestic and international numbers.
India’s country code is set as the default.
An error message will display for invalid inputs.
This document has been developed by Phonon.io for the sole and exclusive use of the customer / prospective customer with whom this document is being shared. Further, this document has been provided by Phonon.io to the recipient in good faith and based on request from the recipient for the same. This document is a confidential document and contains confidential product technology, workflow and commercial details that are for the sole usage of the intended recipients of this document. Recipients are advised not to share this document with any third party that is not the intended recipient of this document and neither to bring this document in full or parts into the public domain. Any unauthorized access may be brought to Phonon.io’s notice immediately. Phonon.io is free to take any legal action it deems necessary against any person or entity that violates this confidentiality agreement. Phonon.io is bound and governed by the rules of the state of Gujarat in India. In case you are not in agreement with the terms set in this clause or are not an intended recipient of this document, please destroy the document and intimate us of the same at info@phonon.io.