v4

latestOpenAPI 3.1.02026-08-01207318738.7 KB
AI

Get AI job result

Retrieve the full result of a completed AI job, including all actions taken by the AI (queries generated, data retrieved) and the final summarized answer. Results are only available for jobs in COMPLETE state and are retained for 14 days after completion. The response is streamed directly from storage.

get/api/v1/ai/jobs/{jobId}/result

Path parameters

jobIdstring uuid required

The unique identifier of the AI job

Example:123e4567-e89b-12d3-a456-426614174000

The unique identifier of the AI job

Response

Full job result including the AI's actions, query results (with CSV data), and the final Markdown-formatted answer.

messagestring

The AI's final response message in Markdown format. This is the complete answer to the original prompt, incorporating data from all executed queries.

omniChatUrlstring uri

URL to view this conversation in the Omni chat interface. Opens the chat session where the job actions and results are visible.

resultSummarystring

Summary of the job result. Typically matches the final message content.

topicstring

The topic name used for query generation.

Example response

{
  "actions": [
    {
      "message": "I'll generate a query to find the top 5 products by total revenue.",
      "result": {
        "csvResult": "Name,Total Revenue\nRay-Ban Sunglasses,\"678,994.41\"\nLevi's 501 Jeans,\"475,072.00\"",
        "hasResults": true,
        "queryName": "Top 5 Products by Revenue",
        "resultId": "928c5838-000d-4943-b305-f6242c1b4922",
        "status": "success",
        "totalRowCount": 5
      },
      "timestamp": "2025-01-15T10:00:10.000Z",
      "type": "generate_query"
    }
  ],
  "message": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
  "omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001",
  "resultSummary": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
  "topic": "order_items"
}