...
Code Block | ||
---|---|---|
| ||
pipeline: - ai.prompt.send: secret: ai-invoice-backend input: $uri:drive:invoice.pdf prompt: Extract all fields from the invoice. - ai.prompt.send: secret: ai-privacy-backend prompt: Make sure there is no privacy related data. |
What happens here is:
The invoice PDF is loaded and automatically converted to an AI compatible format.
The prompt is sent with the information extracted from the PDF to the first
ai-invoice-backend
.The result of the first prompt is then passed automatically to the next
ai-privacy-backend
.
This way you can combine the power of multiple AI backend to leverage your result.