Skip to main content

App triggers

An app trigger starts a workflow when something happens in a connected app, such as a new GitHub issue, a paid Shopify order or a new Typeform response. You add it with the App Trigger node: pick the app, your connection and the trigger, fill in its inputs and publish.

Apps offer two kinds of triggers:

Instant triggersPolling triggers
How events arriveThe app calls Blokkio the moment the event happens (a webhook).Blokkio asks the app for new items on an interval.
DelayUsually under a second.Up to one poll interval (your plan sets it, from 5 minutes down to 15 seconds; see Plans and limits).
SetupBlokkio adds the webhook to the app when you publish and removes it when you unpublish. Slack Events is set up by hand once.Nothing beyond the connection.
Marked with(instant) in the name, a lightning icon in the trigger list and Instant trigger in the toolbox.
NeedsBlokkio must be reachable from the internet, and the connection must be allowed to manage webhooks.Read access.

Use an instant trigger when the app offers one and the delay matters. Use the polling trigger when your connection can't manage webhooks (for example a read-only token, or no admin rights on a repository) or when your Blokkio server isn't reachable from the internet.

All app triggers​

AppInstant triggersPolling triggers
GitHubNew issue, New pull request, New push, New release, Repository event (any events you choose)New issue, New pull request, New release, New star
GitLabNew issue, New merge request, New pushNew issue, New merge request
StripeNew event (any events you choose), New customer, Checkout completed, Payment succeededNew customer, New charge
ShopifyNew order, Store event (orders, products, customers, checkouts, refunds, inventory)New order
TypeformNew responseNew response
SlackNew event (Events API, set up by hand)New message in channel
AirtableNew record
AsanaNew task
DropboxNew file
GmailNew email
Google DriveNew file in folder
HubSpotNew contact
JiraNew issue
LinearNew issue
NotionNew database item
OneDriveNew file in folder
OutlookNew email
Outlook CalendarNew event
PipedriveNew deal
TrelloNew card
ZendeskNew ticket, New or updated ticket

Airtable, HubSpot, Zendesk, Jira, Trello, Asana and Pipedrive only have polling triggers for now: their webhooks need an app-level registration, an admin-only setup or a renewal Blokkio doesn't do yet.

How instant triggers work​

  1. Publish. When you publish a workflow with an instant trigger, Blokkio calls the app with the trigger's connection and creates a webhook that points at a URL unique to this trigger, for example https://api.blokkio.com/api/app-webhook/…. The signing secret the app uses for that webhook is stored encrypted. The webhook is created as part of the publish: if the app refuses (a missing permission, a repository that doesn't exist, a URL the app can't reach), the publish fails with the app's reason and nothing is published. Fix the cause and publish again.
  2. Events. Every delivery is checked before it starts anything:
    • Signature. The app signs each delivery; Blokkio verifies it with the trigger's signature preset (GitHub, Stripe, Slack, Shopify, Typeform's HMAC, GitLab's secret token). A delivery that isn't signed with the webhook's secret is refused with 401.
    • Replays. Stripe and Slack sign a timestamp: deliveries older than 5 minutes are refused. Every app also sends an event or delivery id; a delivery with an id Blokkio has already accepted (a retry or a replayed request) is acknowledged without starting a second run.
    • Filter. Events the trigger isn't about are acknowledged and ignored, for example GitHub's ping, or a closed issue for New issue.
    • Payload. The run gets the part of the event the trigger is about, for example the Stripe customer for New customer (instant) or the form response for Typeform. The fields show up in the expression picker.
  3. Environment. Instant triggers run in the workflow's environment, like every trigger: the environment you published to, else the project's default. The webhook is created with the connection's settings for that environment (including environment overrides), so publishing to another environment creates a new webhook.
  4. Changes. When you change the trigger's connection or inputs, or publish to another environment, Blokkio creates the new webhook under a new URL and then removes the old one. Republishing without changes keeps the webhook.
  5. Unpublish, pause, delete. Pausing, unpublishing or deleting the workflow removes the webhook from the app within about a minute. Deleting the connection first removes the webhooks it created. Events sent to an old URL are refused.

If removing a webhook fails (the app is down, the token expired), Blokkio retries with a growing delay. A webhook whose connection was deleted can't be removed by Blokkio: delete it in the app.

Listening and the last event​

Open the trigger node to see its status:

StatusMeaning
ListeningThe webhook is set up; events start runs. The panel also shows the environment runs use.
Setting up…Blokkio is creating the webhook (after resuming a workflow or changing its environment).
Setup failedThe app refused the webhook. The panel shows the app's answer and what to check. Blokkio retries on its own; publish again to retry now.
Not listeningThe workflow isn't published, or is paused.

The panel also shows when the last event arrived, how many arrived, and the last event itself. Use as sample data makes it the trigger's sample output, so you can build the rest of the workflow with real data.

Requirements​

  • A public URL. The app must reach Blokkio over the internet. If the app runs on a laptop or inside your network, use a tunnel, or the polling trigger.
  • Permissions. The connection must be allowed to manage webhooks:
    • GitHub: admin access to the repository; a fine-grained token needs Webhooks: Read and write, a classic token or the OAuth app the admin:repo_hook (or repo) scope.
    • GitLab: the Maintainer role in the project, and a token with the api scope.
    • Stripe: a secret key, or a restricted key with Webhook Endpoints: Write.
    • Shopify: the scope for the topic (read_orders, read_products, read_customers…); for public apps, approval for protected customer data. The connection also needs the app's secret to verify deliveries: the Dev Dashboard app connection has it (client secret); an Admin API access token connection needs its API secret key field filled in.
    • Typeform: a token with the webhooks:write scope (personal tokens have it).

Slack Events (manual setup)​

Slack sends Events API events to one Request URL per Slack app, which you set in the app's settings. Blokkio therefore can't register it for you; you paste the URL once:

  1. Use a Slack connection of type Bot token (your own Slack app) and fill in its Signing secret (api.slack.com/apps → your app → Basic Information → App Credentials). Blokkio verifies every event with it.
  2. Add the App Trigger, choose Slack and New event (instant, Events API). Optionally list the event types to accept, for example app_mention, reaction_added.
  3. Copy the Request URL shown in the trigger panel. In your Slack app open Event Subscriptions, turn it on and paste the URL. Slack checks it right away; Blokkio answers the check even before you publish.
  4. Under Subscribe to bot events add the events you want and save. Reinstall the app if Slack asks.
  5. Publish the workflow. The status changes to Listening.

The URL stays the same while the trigger node exists, also across pauses. One Slack app sends its events to one URL, so use one workflow per Slack app (route by event type inside the workflow with a Switch). The one-click Add to Slack connection can't be used here, because that Slack app belongs to the Blokkio platform.

Troubleshooting​

ProblemFix
Publishing fails with Couldn't set up the webhook … answered 404The repository, project or form doesn't exist or the connection can't see it. Check the inputs and the connection's access.
… answered 403 or 401The connection isn't allowed to manage webhooks (see Requirements) or its token expired. Reconnect or use a token with the right scope.
Instant triggers need a public URLBlokkio's API address is localhost. Set Webhooks:PublicBaseUrl or use the polling trigger.
Status is Listening but no runs startCheck the app's webhook delivery log (GitHub: repository Settings → Webhooks → Recent deliveries; Stripe: Developers → Webhooks). A 401 answer means the signature didn't match: publish again to create a fresh webhook. A 200 with ignored means the event isn't one this trigger handles.
Shopify: needs the connection's 'client_secret' or 'api_secret_key'Fill in the API secret key of an Admin API access token connection.
Slack shows Your URL didn't respond with the value of the challenge parameterOpen the trigger panel once so the URL exists, and copy it again (it starts with your Blokkio API address).
Shopify: Address for this topic has already been takenAnother subscription for the same topic uses that URL. Remove old subscriptions in the store and publish again.

Custom apps​

Custom apps can declare instant triggers too, for any API with a "create webhook / delete webhook" endpoint (Calendly-style subscriptions, project hooks, form webhooks…). See Manifest reference → Instant (webhook) triggers.