From 0e6cb8bbd0cfeed0aaef500146a2eb260883b370 Mon Sep 17 00:00:00 2001 From: ipu Date: Mon, 29 Sep 2025 18:46:52 +0300 Subject: [PATCH] add applicant names to prompt --- src/services/chat_service.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/chat_service.py b/src/services/chat_service.py index c88ecd9..559411a 100644 --- a/src/services/chat_service.py +++ b/src/services/chat_service.py @@ -249,6 +249,13 @@ class ChatService: if application.get("phq", {}).get("effectiveDate", None): effective_date = application.get("phq", {}).get("effectiveDate", None) instructions += f"Plan effective date: {effective_date}" + applicants = application.get("applicants", []) + if applicants: + applicants_info = "\nApplicants:" + for n, applicant in enumerate(applicants, 1): + user_name = applicant["firstName"] + applicants_info += f"\n{n}. {user_name}" + instructions += applicants_info if current_page: instructions += f"\n\n# User now is currently on page: {current_page}"