Skip to main content
Returns a job. Each call is one turn of a conversation, answered by the automatic search agent on its own — no routing step, no fixed pipeline and no opening search. The agent finds what the turn needs itself, read in the light of the conversation, through a navigator over the workspace’s files, sections and pages (or, for a workspace in a bring-your-own bucket or customer storage, by searching it), then reads documents, queries tables, and selects documents from the metadata catalog until it can answer. Pass a result’s answer.session_id as session_id to ask a follow-up: the agent resumes the conversation, so a question like “and for 2023?” means what it means in context. Only the API key that started a conversation may continue it; a conversation whose turn is still running answers 409 session_busy. A changed scope or access grants starts a fresh conversation and returns a new session_id. A conversation’s first question that asks for nothing, such as a keyboard mash, is answered without running the agent when no document contains any of its words: answer.answer says so, with no citations, no charge, and a null session_id, so the next question starts a fresh conversation. Follow-ups are never checked this way. The agent may ask back instead of guessing when a question is genuinely ambiguous (allow_clarification, on by default). The result’s answer.clarification_questions then lists the questions and answer.answer is null. Reply with clarification_answers and the same session_id, or ask a rephrased question. A turn that sends clarification_answers never asks again. output_schema (a JSON Schema, object root) asks for one turn’s answer as JSON: answer.structured_answer holds the parsed value, or null if the answer still missed the schema after its corrections. A field the source does not state comes back null, whatever type the schema gives it. It applies only to the turn that sends it: to keep structured answers across a conversation, send it on every turn, including the reply to clarifying questions. A clarifying turn returns its questions with structured_answer null. The result is an automatic_agent result: answer — the answer, evidences (its citations), sql_receipts and confidence — and, when the agent answered from a catalog query, a catalog table whose next_cursor pages through POST .../filtered-search. The answer comes back without Ground jobs: answer.grounding_job_ids is null. To locate its quotes, POST /v1/ground once per cited file, with a workspace_file source (source_file_id) and the evidences’ quotes as targets. See Agent and QA answers. Scope a conversation with path_prefix (a folder), paths (exact uploaded files, no limit on how many), or both. The two add up. Unknown or inaccessible paths are refused with 404 before a job exists. See Search.