Document AI — DMS

Preview Document with Creator Agent

Let a Creator Agent prepare a document from a free-text request, e.g. "Create a grating quotation for Muster GmbH: 3 pressed gratings 1000 x 500 galvanised". The agent reads its knowledge bases (prices, rules), Relations AI (recipient...

post/document_generation/creator-agent-preview

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/document_generation/creator-agent-preview
  • Auth: HTTP bearer

Request body

agent_idstring required

Creator Agent ID from po_documents_creator_agents_list.

promptstring

What to create, with all facts the user gave (recipient, items, quantities, numbers).

variablesobject

Known values that must be used as given (they win over the agent).

source_pofidstring

Optional document whose text serves as a fact source (e.g. an inquiry).

workspace_idinteger

Target workspace (default: agent configuration).

localestring

Locale for numbers, dates and currency (e.g. de_DE).

output'pdf' | 'none'

none skips the preview PDF.

Response

Success

status'success' required
_billingobject

Changes

No recorded changes to this operation across all 1 revision of this API.