ghl_clientportal_answer_agent_run_questions_batch
Submit up to 12 answers for a client portal AI builder run in a single batch write, so multi-question forms resume the planner once instead of per answer.
Instructions
CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running.
Answer every question of one form in a single write.
Records up to 12 answers in one run write and resumes the run once,
so a multi-question form does not resume the planner per answer.
Same per-answer rules as POST …/answers (records review approval
by approve:<reviewId> only, decline:<reviewId> declines,
anything else is a change request); attachmentIds are
ignored here. Project-scoped (404 for another project's run);
locationId comes from the session, never from the body.
Idempotency: an answer whose capId and correlationId match the
recorded one is skipped; when every answer is such a duplicate
nothing is written and the run is not resumed again (still 202).
Endpoint: POST /ai-builder-api/projects/{projectId}/runs/{runId}/answers/batch (Version header: v3; source: v3/clientportal-ai-v3.json)
OAuth scopes: clientportal-ai.write
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| runId | Yes | The run's id. | |
| projectId | Yes | The project's id. |