v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
AI

Stream AI job results

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/v1/ai/jobs/{jobId}/result

Path parameters

jobIdstring uuid required

The unique identifier of the AI job

Response

Job results retrieved successfully

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.

resultSummarystring

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

topicstring

The topic name used for query generation.

omniChatUrlstring uri

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

Example response

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