Validate game files against compliance rules

Recipe ToolsWorkatoDatabaseMarketingDirectory ServicesCloud PlatformDeveloper Tool

What it does

When someone calls this automation, it downloads files from Google Cloud Storage and extracts text from PDFs. It matches games against a compliance database, retries on error, and logs results to MySQL so the team knows which games passed.

Who it's for

Legal teams who need to validate game files against a database without manual review.

How teams use this

Validate game files in real time

Download PDF files from cloud storage, extract game names, and match them against a compliance database in real time. The automation logs which games passed and which failed so the team has a complete audit trail.

Automate monthly compliance reporting

Run this automation on a schedule each month to process all new game files and populate a compliance report in MySQL. The team can then export results for stakeholders without manual file review.

Add market-specific validation rules

Extend the Python code to filter games by market region and check only those that apply to each market. This requires adding a market condition to the matching logic so compliance is region-aware.

Notify teams of compliance failures

Include a notification step after the automation completes so the operations team receives a summary of games that did not match. This requires adding a message with the Games Not Found list.

How it works

  1. Start the compliance check. A real-time function call begins the automation to process files for compliance validation.
  2. Fetch compliance records. Query the ComplianceDocument table in MySQL to retrieve the list of games and markets that must be checked against compliance rules.
  3. Download each file from cloud storage. For each file in the batch, download the object from Google Cloud Storage so the PDF can be processed and checked for compliance.
  4. Extract text and match games. Run Python code to convert PDF text and match every game from the game_market_view against the compliance database, retrying up to 3 times if an error occurs.
  5. Log results to MySQL. Create lists of games and markets found or not found, then write the results back to MySQL so the team can review which games passed compliance.