MyBotBoxMyBotBox

Triggers

Core ways to start MyBotBox workflows

A trigger defines how a workflow starts. Pick one trigger per workflow.

Two flavours live side-by-side:

  • Core triggers — built-in entry points (API, Chat, Manual, Schedule, Webhook, Input Form). Use them when no provider-specific block applies.
  • Provider triggers — service-specific blocks (Slack, GitHub, Stripe, Gmail, …) that handle provider signature verification, payload normalization, and DB-level dedup automatically.

Every provider trigger ships with per-trigger setup instructions and a sample payload that surface in the configuration modal — the same content this site mirrors per page. A matching pair of verify.ts (Bun) + verify.py (Python stdlib) scripts under apps/sat/tests/staging/triggers/<provider>/ lets you smoke-test a deployed webhook without leaving the terminal.

Core Triggers

Webhook providers

Providers push events to a MyBotBox-hosted URL. Signature verification, replay protection, and DB-level dedup (via webhook_event_dedup, see migration 0109) are wired in by default.

Pollers

For services without a usable push API, MyBotBox polls on a configurable cadence (5/15/30/60 min) and dedupes on a stable per-message identifier. Pollers are driven by the internal /api/webhooks/poll/dispatch endpoint, fired by Cloud Scheduler — see the triggers runbook for ops setup.

Quick Comparison

TriggerStart condition
APIAuthenticated HTTP POST
API PromptNatural-language prompt over HTTP
ChatChat deployment message
Input FormManual submit in editor or parent workflow
ManualRun button in editor
ScheduleTimer managed in schedule modal
WebhookInbound HTTP request
Webhook providersInbound HTTP request, provider-signed
PollersInternal scheduler tick + cursor advance

Using Triggers

  1. Drop the trigger block in the start slot.
  2. Configure auth / signing secret / OAuth credential as the in-modal instructions describe.
  3. Connect the block to the rest of the workflow.
  4. Save Changes then Deploy API.
  5. Smoke-test with the bundled verify.ts / verify.py script for that provider.

What the rendered docs look like

Captured 2026-04-27 from docs.mybotbox.com:

Triggers index page

A typical webhook-provider page (Stripe):

Stripe trigger page

A poller page (Gmail):

Gmail poller page

The same instructions[] and samplePayload you see here render verbatim in the editor's Configure Trigger modal — single source of truth in apps/sat/triggers/<provider>/{webhook,poller}.ts.

Deployments power every trigger. Update the workflow, redeploy, and all trigger entry points pick up the new snapshot. Learn more in Execution → Deployment Snapshots.

Legacy Starter blocks remain for existing flows but no longer appear in new builds.