Skip to main content

Private AI support and utilities

This module connects Business Central to a "private" artificial intelligence service (for example an internally hosted model or a service compatible with OpenAI-style chat APIs) and uses it to automatically create purchase invoices from a vendor's PDF file.

Open the Private AI Setup page using the search function (it is listed among administration pages).

Field Description
API Endpoint Full address of the private AI chat completion service that requests are sent to. Required.
Model Name of the model to use on the service. Required.
Token Access key for the service. The value is masked and stored securely for the company. If left blank, requests are sent without authentication.
  1. Open the Purchase Invoices list.
  2. Choose the Create Invoice from PDF... action.
  3. Select the vendor invoice PDF file.
  4. Wait for the conversion: the PDF to Text window opens and extracts the text from the document; choose Cancel to stop the operation.
  5. The extracted text is sent to the private AI, which returns the invoice data: vendor VAT registration number, invoice number and date, and lines (description and amount).
  6. When finished, the newly created purchase invoice opens, ready to be reviewed and completed.
  • The vendor is identified by the VAT registration number read from the document. If no vendor is found, the operation stops with the message Unknown vendor with VAT registration no. ....
  • The vendor invoice number is copied exactly as it appears in the document.
  • For each line read from the PDF, an invoice line is created with its description and amount.
  • If no file is selected or the conversion is cancelled, nothing is created.