Append opportunity context: note, spend basis, next action, requirements, tasks, and discovered people. Writes are explicit and receipt-backed.
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"opportunity_id": {
"type": "string",
"minLength": 1
},
"note": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"body_markdown": {
"type": "string",
"minLength": 1,
"maxLength": 65536
},
"tags": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"source_urls": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"related_note_ids": {
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"created_from_objective_id": {
"type": "string",
"minLength": 1
}
},
"required": [
"title",
"body_markdown"
],
"additionalProperties": false
},
"estimated_spend": {
"type": "object",
"properties": {
"min": {
"type": "number",
"minimum": 0
},
"max": {
"type": "number",
"minimum": 0
},
"currency": {
"type": "string",
"const": "USD"
},
"period": {
"type": "string",
"enum": [
"one_time",
"monthly",
"annual"
]
},
"confidence": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"basis": {
"type": "string",
"minLength": 1
},
"source_note_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"required": [
"confidence",
"basis"
],
"additionalProperties": false
},
"next_action": {
"type": "string",
"minLength": 1
},
"next_action_due_at": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"technical",
"security",
"legal",
"procurement",
"commercial",
"staffing",
"implementation",
"data",
"success_criteria",
"other"
]
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"status": {
"type": "string",
"enum": [
"open",
"in_progress",
"blocked",
"satisfied",
"dismissed"
]
},
"priority": {
"type": "string",
"enum": [
"low",
"medium",
"high",
"urgent"
]
},
"owner_operator_user_id": {
"type": "string",
"minLength": 1
},
"due_at": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"source_note_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"required": [
"category",
"title"
],
"additionalProperties": false
}
},
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"status": {
"type": "string",
"enum": [
"open",
"in_progress",
"blocked",
"completed",
"dismissed"
]
},
"assignee_operator_user_id": {
"type": "string",
"minLength": 1
},
"due_at": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"title"
],
"additionalProperties": false
}
},
"people": {
"type": "array",
"items": {
"type": "object",
"properties": {
"person_id": {
"type": "string",
"minLength": 1
},
"role": {
"type": "string",
"enum": [
"primary_buyer",
"economic_buyer",
"champion",
"technical_evaluator",
"security",
"legal",
"procurement",
"blocker",
"advisor",
"stakeholder",
"unknown",
"owner",
"supporting_operator",
"technical_owner",
"delivery_owner",
"executive_sponsor"
]
},
"relationship_status": {
"type": "string",
"enum": [
"unknown",
"active",
"supportive",
"neutral",
"blocked"
]
},
"notes": {
"type": "string",
"minLength": 1
},
"is_primary": {
"type": "boolean"
}
},
"required": [
"person_id",
"role"
],
"additionalProperties": false
}
}
},
"required": [
"opportunity_id"
],
"additionalProperties": false
}