Skip to content

Instantly share code, notes, and snippets.

@shaheermir
Created January 14, 2026 21:26
Show Gist options
  • Select an option

  • Save shaheermir/60c3ed61c0971fa719dc51d9343c9430 to your computer and use it in GitHub Desktop.

Select an option

Save shaheermir/60c3ed61c0971fa719dc51d9343c9430 to your computer and use it in GitHub Desktop.
Plan Block - Sample Payload
{
"blocks": [
{
"type": "plan",
"block_id": "plan_block_001",
"plan_id": "plan_abc123",
"title": "Analyze Q4 Sales Data",
"tasks": [
{
"task_id": "task_1",
"title": "Fetch sales data from database",
"status": "complete",
"output": {
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Retrieved 15,432 sales records from Q4 2025."
}
]
}
]
}
},
{
"task_id": "task_2",
"title": "Calculate regional performance metrics",
"status": "in_progress",
"details": {
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "Aggregating sales by region and comparing to Q3 targets."
}
]
}
]
}
},
{
"task_id": "task_3",
"title": "Generate summary report",
"status": "pending"
},
{
"task_id": "task_4",
"title": "Identify top-performing products",
"status": "pending",
"sources": [
{
"type": "source_url",
"url": "https://analytics.example.com/reports/q4-2025",
"title": "Q4 2025 Analytics Dashboard"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment