Post a tile from n8n
Every agent in view. You call the shots. Import one workflow. A 12-hour schedule or a webhook posts an outside metric to your board.
Import
- In n8n, choose Import from File and pick the JSON.
- Open the Post tile node. Replace <INGEST_TOKEN> with your workspace ingest token.
- Open the Get your number node. Replace <YOUR_METRIC_URL> with a URL that returns JSON like {"value": 123}. The webhook path reads value from the request body instead. The workflow posts the number it got, never a sample.
- If your URL returns another shape, such as {"data":{"mrr":123}}, open the Post tile node and change $json.value to the path that holds your number. Run the node once and check the output: without a number the board rejects the post.
- The tile key is n8n-mrr, so it never replaces the Board Keeper MRR tile (Keeper/revenue). Keep the key unique when you add another tile.
- Leave the workflow inactive until the token is in place. Then activate it.
- The schedule runs every 12 hours and posts a metric no agent touches. The tile's TTL is 24 hours, so one late run never leaves it stale. The webhook path is botopticon-tile. Use the webhook when you have a new number. Do not post the same body again just to keep a tile fresh.
- To post a different tile, replace the JSON body. To post to one board, add "board": "<board name>". An approval body needs needs_you true and a needs object with who, kind, and ask. Approval is a Pro tile. If the catalog marks it locked, the post is rejected.
Workflow JSON
{
"name": "Post a metric to Botopticon every 12 hours",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 12
}
]
}
},
"id": "c0ffee00-0000-4000-8000-000000000001",
"name": "Every 12 hours",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [240, 220]
},
{
"parameters": {
"httpMethod": "POST",
"path": "botopticon-tile",
"responseMode": "lastNode",
"options": {}
},
"id": "c0ffee00-0000-4000-8000-000000000002",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [240, 460],
"webhookId": "botopticon-tile"
},
{
"parameters": {
"url": "<YOUR_METRIC_URL>",
"options": {}
},
"id": "c0ffee00-0000-4000-8000-000000000004",
"name": "Get your number",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [430, 220],
"notes": "Replace <YOUR_METRIC_URL> with a URL that returns JSON like {\"value\": 123}. The webhook path sends value in its body instead. If your URL returns another shape, such as {\"data\":{\"mrr\":123}}, change $json.value in the Post tile body to the path that holds the number. Without a number the board rejects the post.",
"notesInFlow": true
},
{
"parameters": {
"method": "POST",
"url": "https://www.botopticon.com/api/ingest",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <INGEST_TOKEN>"
},
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\"bot\":\"Keeper\",\"tile\":\"n8n-mrr\",\"type\":\"kpi\",\"title\":\"MRR\",\"subtitle\":\"Outside metric\",\"props\":{\"value\":{{ Number($json.body ? $json.body.value : $json.value) }},\"unit\":\"USD\"},\"needs_you\":false,\"ttl_seconds\":86400}",
"options": {}
},
"id": "c0ffee00-0000-4000-8000-000000000003",
"name": "Post tile",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [620, 340]
}
],
"pinData": {},
"connections": {
"Every 12 hours": {
"main": [
[
{
"node": "Get your number",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Post tile",
"type": "main",
"index": 0
}
]
]
},
"Get your number": {
"main": [
[
{
"node": "Post tile",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}