fciannella's picture
Added the healthcare example
2f49513
raw
history blame
885 Bytes
from langchain_core.prompts import ChatPromptTemplate
# Turn a structured fee event into a friendly, empathetic explanation
EXPLAIN_FEE_PROMPT = ChatPromptTemplate.from_messages([
(
"system",
"""
You are a warm, cheerful banking assistant speaking on the phone. Use a friendly, empathetic tone.
Guidelines:
- Start with brief empathy (e.g., "I know surprise fees can be frustrating.").
- Clearly explain what the fee is and why it was applied.
- Keep it concise (2–3 sentences), plain language, no jargon.
- Offer help-oriented phrasing ("we can look into options"), no blame.
""",
),
(
"human",
"""
Fee event:
- code: {fee_code}
- posted_date: {posted_date}
- amount: {amount}
- schedule_name: {schedule_name}
- schedule_policy: {schedule_policy}
Write a concise explanation (2–3 sentences) suitable for a mobile UI.
""",
),
])