---
title: "Answer Tool"
method: POST
path: "/v0/aice/{orgid}/{projectid}/answerTool"
tags: ["Tools"]
---

# Answer Tool

`POST /v0/aice/{orgid}/{projectid}/answerTool`

Answer the given natural language question. Please note, it only has the capability to answer questions on structured data.

The payload should contain the question, and optionally, any supplemental context that could be beneficial, such as additional information from a second query attempt after the user has provided further context.

This operation performs the exact same function as the "callAnswer" operation, but is designed to be compatible with OpenAI-style tool calls.

## Path parameters

- `orgid` string, required
- `projectid` string, required

## Query parameters

- `demo` boolean

## Request body

- QuestionPayload
  - `chatContext` string — The context of the chat so far (optional).
  - `question` string — A question that can be answered by structured data, written in English.

## Response `200`

default response

- AnswerToolResponse
  - `answer` string, required
  - `questionUrl` string
  - `result` ResultTable
    - `data` object[]
    - `schema` Schema, required
      - `fields` Field[], required
        - `name` string, required
        - `type` string, required
  - `sparql` string
  - `terms` Term[]
    - `definition` string
    - `term` string
    - `url` string

---

[API](https://skmtc.dev/data/apis/data-world-public-api.md) · [All operations](https://skmtc.dev/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/data/data-world-public-api/revisions/0a0cb1f94dad/schema)
