Dynamic Prompt Feature
Group Billing
Author(s)
- Alapan Das
- ...
Last Updated Date
[2025-08-28]
SRS References
Version History
| Version | Date | Changes | Author |
|---|---|---|---|
| 1.0 | 2025-08-28 | Initial draft | Alapan Das |
| ... | ... | ... | ... |
Overview
The Dynamic Prompt Feature enables the BotProxyService to update chatbot prompts for individual subscribers and product types via a secure API endpoint. This allows administrators or automated systems to tailor chatbot behavior and messaging dynamically, improving user engagement and lead collection effectiveness.
API Endpoint
- Endpoint:
POST /api/SubscriberPrompts/update - Request Body:
{
"subscriberId": "string",
"productType": "string",
"prompt": "string"
} - Functionality:
Updates or creates the prompt for the specifiedsubscriberIdandproductType. The prompt can contain multi-line text and will be used by the chatbot for future interactions.
Workflow
- Administrator or system sends a POST request with the new prompt.
- Service validates and stores the prompt for the given subscriber and product type.
- Chatbot retrieves and uses the updated prompt for relevant conversations.
Advantages
1. Personalization
- Prompts can be customized for each subscriber and product type, allowing for highly targeted and relevant chatbot interactions.
2. Flexibility
- Prompts can be updated at any time without redeploying the service, enabling rapid response to changing business needs or marketing strategies.
3. Scalability
- Supports multiple subscribers and product types, making the solution scalable for large deployments.
4. Improved User Experience
- Dynamic prompts ensure that users receive accurate and context-specific responses, increasing satisfaction and conversion rates.
5. Operational Efficiency
- Reduces manual intervention and hardcoding, streamlining prompt management and maintenance.
Implementation Notes
- Ensure proper validation and security for the update endpoint.
- Support multi-line prompts and special characters.
- Log changes for audit and troubleshooting purposes.