When the user needs to validate employee expense claims against company policies and supporting documentation. This skill extracts and analyzes expense claim PDFs and corresponding invoices, verifies that all claimed items have matching receipts with correct amounts, and checks compliance with destination-specific expense caps based on employee levels. Triggers include expense claim processing, reimbursement validation, policy compliance checking, invoice verification, or when dealing with travel expense files in PDF/tar.gz formats.
Process a batch of employee expense claims by:
FLAG = 1 and send "Over-Cap Notice" email to employee + CC manager.FLAG = 0..tar.gz files) in /workspace/dumps/workspace/files/policy_en.pdfTRAVEL_EXPENSE_REIMBURSEMENT with tables:
2024Q4REIMBURSEMENT (target table)ENTERPRISE_CONTACTS (employee/manager email mapping).tar.gz archives to a temporary directory (/workspace/dumps/workspace/extracted/).*_main.pdf: The expense claim form with header info and itemized expenses.*_invoice_*.pdf: Supporting invoices, numbered sequentially.For each claim directory:
Based on validation:
FLAG = 1 and send "Expense Over-Cap Notice: {claim_id}" email.FLAG = 0.TRAVEL_EXPENSE_REIMBURSEMENT.PUBLIC."2024Q4REIMBURSEMENT" with appropriate flag.CLAIM_ID, EMPLOYEE_ID, EMPLOYEE_NAME, DEPARTMENT, DEST_CITY, DEST_COUNTRY, TRIP_START, TRIP_END, NIGHTS, TOTAL_CLAIMED, FLAG.emails-send_email tool.ENTERPRISE_CONTACTS)ENTERPRISE_CONTACTS)2024Q4REIMBURSEMENT table is empty (start ID from 1).filesystem-list_directory, filesystem-directory_treepdf-tools-read_pdf_pages, pdf-tools-get_pdf_infosnowflake-list_databases, snowflake-list_tables, snowflake-describe_table, snowflake-read_query, snowflake-write_querylocal-python-execute (for complex parsing/analysis)emails-send_email2024Q4REIMBURSEMENT