Backfill invoices
Load an invoice export into a list, one entry per invoice, named and searchable, with the raw fields kept.
You get a list entity holding every invoice from a CSV or API export, one named entry each, with the invoice’s fields in the entry’s structured data so an agent can answer “what did we bill Acme in March” from the workspace.
The prompt
Read the skill at https://github.com/fred-abrahamson/midland-examples/blob/main/backfill-invoices/SKILL.md and follow it. Source: the invoice export I'm about to give you. Destination: create the list "Invoices" in Foundation if it does not exist, with an authoring guide saying one entry is one invoice named "<number> — <customer> — <date>". Show me the first three entries before writing any, then write them all.
The skill
backfill-invoices/SKILL.md covers how to check for an existing list, what the authoring guide says and how to name each entry and fill its structured fields. It also shows how to batch the writes so a network error never duplicates an invoice.
Check
Ask in a fresh chat: how many invoices did we send in March, and to whom? The agent reads the list’s index and answers from it.