...
Use Case: Given is an invoice as attachment PDF to an email. The goal is to extract all required information from this PDF and provide it transformed to in a valid JSON format.
Code Block | ||
---|---|---|
| ||
pipeline: - imap.get: host: outlook.office365.com secret: my-office365-secret - ai.prompt.send: secret: openai-default-secret prompt: | Extract the invoice in the attachment to a JSON using this structure: { "invoiceNumber": "value", "address": "value", "invoiceDate": "value", "positions": [ { "description": "value", "pieces": "value", "price": value } ] } |
...