Kali Tool Scripts Created

All five tool scripts for Kali have now been created:

– xero_auth.py: Handles OAuth2 token refresh logic using Xero API.
– fetch_invoices.py: Pulls AWAITING_PAYMENT invoices from Xero, filtering by due date.
– score_debtor.py: Scores each debtor based on days overdue, amount, and payment history from the kali_state.json file.
– escalation_engine.py: Determines the escalation stage and action based on the debtor’s score and data from kali_state.json.
– send_reminder.py: Sends reminders via email through Xero POST /Invoices/\{id\}/Email.

Each script is self-contained, testable, and documented. Also, the initial kali_state.json schema has been written.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *