answer_context_gap
Save an answer to a client project's Context gap as a sourced draft, so the gap reads answered for consultant review before publishing.
Instructions
Save the answer to one of a client project's Context gaps as a draft of the Context record the gap is about
(for example Audience › Ideal customer profile), with the sources it comes from. The gap then reads answered.
The draft waits on the project's Context page, where the consultant publishes or discards it; publishing resolves
the gap. The published Context stays unchanged until then. This tool doesn't publish, discard or delete.
Use when the user answers a gap's question, for example while going through list_context_gaps with them.
`body` is the record's whole text, written from the answer. Every answer cites at least one source: the user's own
words (`user_statements`, recorded as quotes reported by the AI, not verified) and/or Knowledge Base documents
(`kb_sources`, each with the content_hash kb_get_document returned, which is refused once the document has
changed). A record that already has a draft waiting for review takes no new draft, except one that replaces this
connection's own earlier draft.
Args:
project_id: The project (from list_projects()).
gap_id: The gap's gap_id from list_context_gaps.
body: The record's full text, in Markdown.
published_revision_number: The gap's published_revision_number from list_context_gaps (null for a `missing`
gap). A record published again since is refused.
title: Optional record title. Default: the current title, or the context type's name for a new record.
kb_sources: Knowledge Base documents the answer comes from: [{document_id, content_hash}].
user_statements: The user's own words the answer comes from, quoted exactly.
replace_draft_number: The draft_number an earlier call returned (or the gap's answer.draft_number), to replace
that draft with this one.
proposal_id: Optional UUID for this answer. A repeat with the same proposal_id and arguments returns the saved
draft instead of saving another; an OUTCOME_UNKNOWN error names the one it used.
[Provider: Unilytics]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| title | No | ||
| gap_id | Yes | ||
| kb_sources | No | ||
| project_id | Yes | ||
| proposal_id | No | ||
| user_statements | No | ||
| replace_draft_number | No | ||
| published_revision_number | Yes |