Skip to content

Make scenarios

Every agent in view. You call the shots. Two scenarios. One posts an outside metric on a schedule you set. One posts an approval tile when a webhook arrives.

Import

  1. In Make, open a scenario and choose Import Blueprint.
  2. Replace <INGEST_TOKEN> in the HTTP module that posts to Botopticon before you turn scheduling on.
  3. In the scheduled scenario, replace <YOUR_METRIC_URL> in the first HTTP module with a URL that returns JSON like {"value": 123}. The post maps that value, never a sample.
  4. If your URL returns another shape, such as {"data":{"mrr":123}}, remap value in the post body to the field that holds your number. Run the scenario once and check the output: without a number the board rejects the post.
  5. The tile key is make-mrr, so it never replaces the Board Keeper MRR tile (Keeper/revenue).
  6. Schedule the scenario to run every 12 hours (always under 24 hours). The tile's TTL is 24 hours, so a daily run can let it go stale before the next one.
  7. The approval scenario needs a Pro workspace. Its body sends needs_you true with a needs object, so the pane turns amber with the ask. If approval is locked, the board rejects the post.
  8. If Make asks you to remap the HTTP module, set the URL, method, headers, and body to the values in the blueprint.

Scheduled status

{
  "name": "Post a daily metric to Botopticon",
  "flow": [
    {
      "id": 1,
      "module": "schedule:RunAScheduledEvent",
      "version": 1,
      "parameters": {},
      "mapper": {},
      "metadata": {
        "designer": { "x": 0, "y": 0 }
      }
    },
    {
      "id": 2,
      "module": "http:MakeARequest",
      "version": 3,
      "parameters": {},
      "mapper": {
        "url": "<YOUR_METRIC_URL>",
        "method": "get",
        "parseResponse": true
      },
      "metadata": {
        "designer": { "x": 300, "y": 0 }
      }
    },
    {
      "id": 3,
      "module": "http:MakeARequest",
      "version": 3,
      "parameters": {},
      "mapper": {
        "url": "https://www.botopticon.com/api/ingest",
        "method": "post",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer <INGEST_TOKEN>"
          },
          {
            "name": "Content-Type",
            "value": "application/json"
          }
        ],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"bot\":\"Keeper\",\"tile\":\"make-mrr\",\"type\":\"kpi\",\"title\":\"MRR\",\"subtitle\":\"Outside metric\",\"props\":{\"value\":{{2.data.value}},\"unit\":\"USD\"},\"needs_you\":false,\"ttl_seconds\":86400}"
      },
      "metadata": {
        "designer": { "x": 600, "y": 0 }
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": { "orphans": [] }
  }
}

Approval webhook

{
  "name": "Ask the Botopticon board for a decision",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {},
      "mapper": {},
      "metadata": {
        "designer": { "x": 0, "y": 0 }
      }
    },
    {
      "id": 2,
      "module": "http:MakeARequest",
      "version": 3,
      "parameters": {},
      "mapper": {
        "url": "https://www.botopticon.com/api/ingest",
        "method": "post",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer <INGEST_TOKEN>"
          },
          {
            "name": "Content-Type",
            "value": "application/json"
          }
        ],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"bot\":\"Keeper\",\"tile\":\"ship\",\"type\":\"approval\",\"title\":\"Ship the copy\",\"subtitle\":\"Waiting on a person\",\"props\":{\"ask\":\"Ship the checkout copy?\",\"context\":\"The board is ready for a decision.\",\"severity\":\"high\"},\"needs_you\":true,\"needs\":{\"who\":\"Keeper\",\"kind\":\"approval\",\"ask\":\"Ship the checkout copy?\"},\"ttl_seconds\":86400}"
      },
      "metadata": {
        "designer": { "x": 300, "y": 0 }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": { "orphans": [] }
  }
}