Hi Peter,
All the data is WHMCS is stored in the MySQL database on your server. For ticket data you'd need to consume the tbltickets and tblticketreplies tables.

Would that meet your needs, or is there a particular format of data required for import into AI systems?