import jsonimport osimport requestsdef notify_slack(msg): webhook_url = os.getenv("SLACK_WEBHOOK_URL") requests.post(webhook_url, json={"text": msg})with open("output/signature-check.json") as f: data = json.load(f)buyer = data["outputs"]["structured_data"]["pages"][0]["data"].get("buyer", {})if not buyer.get("buyer_signed"): name = buyer.get("buyer_name", "Unknown") notify_slack(f"🚨 Buyer {name} has not signed the document.")
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.