[2ff88f42] Refine Webhook Filter: Restrict to Strategic Fields (Name, URL, JobTitle, Position) only

This commit is contained in:
2026-02-20 09:36:34 +00:00
parent f400bed368
commit 405a7656f6

View File

@@ -34,9 +34,11 @@ def process_job(job, so_client: SuperOfficeClient):
# Only if 'Changes' list is provided by Webhook
changes = [c.lower() for c in payload.get("Changes", [])]
if changes:
# Define what we care about
relevant_contact = ["name", "department", "urladdress", "number1", "number2", "country", "business"]
relevant_person = ["firstname", "lastname", "jobtitle", "position", "mrmrs"]
# Define what we care about (Strategic triggers for re-evaluation)
# Company: Name/Department (Identity), Urls (Source), Numbers (Matching)
relevant_contact = ["name", "department", "urladdress", "number1", "number2"]
# Person: JobTitle (Persona Logic), Position (Role Logic)
relevant_person = ["jobtitle", "position"]
is_relevant = False