Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyaml
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:

  1. The invoice PDF is loaded and automatically converted to an AI compatible format.

  2. The prompt is sent with the information extracted from the PDF to the first ai-invoice-backend.

  3. 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.