AI

Stream AI job results

Changed on

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

Request

  • Base URL
    https://blobsrus.omniapp.co/api
  • URL
    https://blobsrus.omniapp.co/api/v1/ai/jobs/{jobId}/result
  • Auth
    HTTP bearer

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.

When the AI publishes a dashboard, the message discloses that the publish occurred. If the published draft contained changes made by someone other than the caller (drafts are per-dashboard, not per-user), the message also discloses that fact with attribution and timestamp.

resultSummarystring

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

When the AI publishes a dashboard, the summary discloses that the publish occurred. If the published draft contained changes made by someone other than the caller, the summary also discloses that fact.

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",
      "status": "complete",
      "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"
}

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property // to the response with the status