Closed preritdas closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes introduce a new private method _agent_notes
in the kvCORE
module, which generates custom agent notes for leads based on the pii_md5
object. This method formats household income and net worth attributes into a string. The _email_body
method is updated to include these agent notes in the email sent to agents. Additionally, a test is added to ensure the presence of "Agent Notes" in the email body.
Files | Change Summary |
---|---|
real_intent/deliver/kvcore/__init__.py |
Added _agent_notes method to generate agent notes and modified _email_body to include them. |
tests/test_kvcore.py |
Added assertion in test_kvcore_email_body to check for "Agent Notes" in the email body. |
Objective | Addressed | Explanation |
---|---|---|
Custom fields for agent notes (Issue #94) | ✅ | |
Multi-line comments for agent notes (Issue #94) | ❌ | No implementation for multi-line comments. |
_email_body
method in the kvcore
module, which relates to the inclusion of agent notes.🐇 In the land of kvCORE, notes now take flight,
With agent insights shining bright.
Income and worth, all neatly aligned,
In emails they dance, perfectly designed.
Hopping along, we celebrate this feat,
For better leads, our work is complete! 🌟
Early access features: enabled
Closes #94.
Populate kvCORE user's
Agent Notes
(for each lead) with stringified key values of curated PII attributes.Curated PII attrs are hardcoded. Uses new
._agent_notes
method to allow the entire class to be subclasses for eventual per-lead insights.Eventually, call
super()._agent_notes(...)
before appending AI insight to the end, similar to the subclassing behavior from the original FUB integration to the AI one.Summary by CodeRabbit
New Features
Tests