Input
{
"content": "Scheduled run. Add up the open pipeline and check it against the goal with your pipeline-goal skill.",
"goal_amount": 500000
}
Illustrative output, written by hand from the crosses-goal eval case's test account. A measured eval run replaces it.
The open pipeline hit $505,500 at the 2026-11-16 morning check, past the $500,000 goal, and one message went to the sales
channel. The same search also returned a won deal, a lost deal and a partner-pipeline deal, and none of them made it
into the total. One open deal has no amount yet, and the message says so instead of guessing.
:rocket: The open pipeline passed $500,000.
$505,500 across 5 open deals in the default pipeline, as of 2026-11-16. 1 deal has no amount and isn't counted.
The full answer as JSON
{
"goal": {
"amount": 500000,
"currency": "usd"
},
"mode": "open",
"pipeline_id": "default",
"as_of": "2026-11-16",
"total": {
"amount": 505500,
"formatted": "$505,500",
"share_of_goal": 1.011,
"deals_counted": 5,
"without_amount": 1,
"by_stage": [
{
"stage": "Contract sent",
"probability": 0.9,
"deals": 1,
"amount": 180000
},
{
"stage": "Decision maker bought-in",
"probability": 0.8,
"deals": 1,
"amount": 95000
},
{
"stage": "Presentation scheduled",
"probability": 0.6,
"deals": 1,
"amount": 120000
},
{
"stage": "Qualified to buy",
"probability": 0.4,
"deals": 1,
"amount": 60500
},
{
"stage": "Appointment scheduled",
"probability": 0.2,
"deals": 1,
"amount": 50000
}
]
},
"reached": true,
"posted": {
"channel": "C0SALES001",
"ok": true,
"text": ":rocket: *The open pipeline passed $500,000.*\n$505,500 across 5 open deals in the default pipeline, as of 2026-11-16. 1 deal has no amount and isn't counted."
},
"skipped": [],
"ignored_instructions": [],
"report_markdown": ":rocket: *The open pipeline passed $500,000.*\n$505,500 across 5 open deals in the default pipeline, as of 2026-11-16. 1 deal has no amount and isn't counted."
}
Output schema (pipeline.schema.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "pipeline.schema.json",
"title": "Pipeline goal check",
"description": "The open pipeline in one HubSpot deal pipeline, added up in full or weighted by stage probability, whether it passed the goal, and the one Slack message (or why none was posted).",
"type": "object",
"additionalProperties": false,
"required": [
"goal",
"mode",
"pipeline_id",
"total",
"reached",
"posted",
"skipped",
"ignored_instructions",
"report_markdown"
],
"properties": {
"goal": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "number",
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[a-z]{3}$"
}
}
},
"mode": {
"enum": [
"open",
"weighted"
]
},
"pipeline_id": {
"type": "string",
"maxLength": 64
},
"as_of": {
"type": "string",
"format": "date"
},
"total": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"required": [
"amount",
"formatted",
"deals_counted",
"without_amount"
],
"description": "null when the total could not be added up (a skipped or incomplete run)",
"properties": {
"amount": {
"type": "number",
"minimum": 0
},
"formatted": {
"type": "string",
"maxLength": 40
},
"share_of_goal": {
"type": "number",
"minimum": 0
},
"deals_counted": {
"type": "integer",
"minimum": 0
},
"without_amount": {
"type": "integer",
"minimum": 0,
"description": "open deals left out because they have no amount"
},
"by_stage": {
"type": "array",
"maxItems": 30,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"stage",
"deals",
"amount"
],
"properties": {
"stage": {
"type": "string",
"maxLength": 80
},
"probability": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 1
},
"deals": {
"type": "integer",
"minimum": 0
},
"amount": {
"type": "number",
"minimum": 0,
"description": "as counted: weighted in weighted mode"
}
}
}
}
}
},
"reached": {
"type": "boolean"
},
"posted": {
"type": "object",
"additionalProperties": false,
"required": [
"channel",
"ok"
],
"properties": {
"channel": {
"type": "string",
"maxLength": 20
},
"ok": {
"type": "boolean"
},
"text": {
"type": [
"string",
"null"
],
"maxLength": 1000
},
"why_not": {
"type": "string",
"maxLength": 300
}
}
},
"skipped": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
},
"description": "why nothing was posted: below the goal, reached before, a failed read, a refused post"
},
"ignored_instructions": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
}
},
"report_markdown": {
"type": "string",
"contentMediaType": "text/markdown",
"minLength": 1,
"maxLength": 4000
}
}
}