docunite® NEO icon

docunite® NEO

Manage documents and use AI features with the docunite® NEO API. Supports upload, OCR extraction, classification, enrichment, chat and more. Perfect for automated document processing and intelligent data extraction.

Document → Chat

AI-generated

Summary

Send a chat prompt to a specified document in docunite4 NEO, optionally including prior chat history, to receive an AI-generated response based on the document's content.

Inputs

  • Document ID (required) — The ID of the document to chat with.
  • Prompt (required) — The question or prompt to send as input for the chat.
  • Chat History — Optional prior chat history represented as a JSON array to provide context for the chat.

Output shape

a single JSON object containing the AI-generated chat response related to the specified document

The output is returned as JSON data. If chat history is provided, it must be valid JSON or the operation will throw an error. No binary data is returned in this operation.

Examples

Example 1: Chatting with a document providing a prompt question and optional previous conversation context

Set the Document ID to the target document, enter a text prompt, and optionally supply chat history as a JSON array to continue a multi-turn conversation with the document's AI assistant.

Discussion