Add document AI result from LLM prompt
POST/documents/:documentId/ai/prompts/:llmPromptEntityName
Run an LLM prompt against a document; available as an Add-On Module
Request
Path Parameters
Document Identifier
LlmPrompt Entity Name
Query Parameters
Site Identifier
Artifact Document Identifier
- application/json
Body
Override the LLM Prompt Entity model id
Responses
- 200
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
System Prompt
aiPromptResult
object
Analysis Category
Inserted Timestamp
Result content
UserId that created Result
values
object[]
Document AI prompt values
Document AI prompt result type
Possible values: [KEY_VALUE, ENTITY]
Entity type when resultType is ENTITY
Entity Type namespace
Possible values: [PRESET, CUSTOM]
attributes
object[]
required
Attributes extracted from result content
Document AI prompt result attribute key
Document AI prompt result attribute string values
{
"systemPrompt": "string",
"aiPromptResult": {
"analysisCategory": "string",
"insertedDate": "string",
"content": "string",
"userId": "string",
"values": [
{
"resultType": "KEY_VALUE",
"entityType": "string",
"entityNamespace": "PRESET",
"attributes": [
{
"key": "string",
"stringValues": [
"string"
]
}
]
}
]
}
}