I’ve built a court order processing flow that extracts deadlines from PDF documents and writes them to Airtable. The flow successfully extracts case numbers, order titles, and deadline information (types and dates) using AI.
My main challenge is handling variable numbers of deadlines. Currently, I’m using multiple Get List Item nodes (13 pairs) to extract specific indexes from my deadline lists. This works when an order has exactly that many deadlines, but fails when there are fewer or more.
I need a more flexible approach that can:
Process any number of deadlines from a single court order
Properly pair each deadline type with its corresponding date
Write all deadlines to Airtable without needing to specify exact indexes in advance
I’d appreciate guidance on restructuring this flow to handle variable-length data more elegantly.
I can see why using List numbers doesn’t work for any case outside of the main one you described. I used to build a SaaS for a large risk management firm, which pulled out dates in terms of bankruptcies chapter events from government logs.