docs.wundaflow.com
  • Overview
  • Roadmap
  • Typical use-cases
  • Glossary
  • Core concepts
    • Workflows
    • Tasks
    • Workers
    • Triggers
    • Signals
    • Webhooks
    • Retry policies
    • Wallets
    • KV Store
  • API
    • API Methods
      • Execute a workflow
      • Pause a workflow
      • Resume a workflow
      • Cancel a workflow
      • Check workflow status
      • Poll for notifications
      • Generate a wallet address
      • Read from KV Store
      • Write to KV Store
    • Authentication
    • Connectors
    • Secrets
    • Errors
  • Token
    • Tokenomics
    • Reward pools
  • Wundaverse
    • Intro
    • Randomness
      • Verifiable Delay Function (VDF)
    • Blobbs NFT
    • WundaGames
      • Wundaflip
  • DISCLAIMER
Powered by GitBook
On this page
  • Off-chain triggers
  • On-chain triggers
  1. Core concepts

Triggers

PreviousWorkersNextSignals

Last updated 11 months ago

While workflows can be instantiated using our API, calling them from existing web2 applications is only one use-case.

Triggers start new workflow executions, but you can also send to already running workflows.

There are four methods to trigger workflows in two categories:

Off-chain triggers

  1. API triggers. See the API documentation in the left navigation.

  2. Webhook triggers. Similar to API triggers, webhook triggers allow you to start workflows from any 3rd party app that supports webhook notifications. Just create a custom webhook endpoint in the Wundaflow UI and you're good to go.

  3. Time-based triggers. Workflows can be executed on a given date-time or, using cron-syntax, regularly on any schedule down to per minute.

On-chain triggers

  1. Logic triggers. Workflows are executed based on custom logic conditions being met on the blockchain. Supported: Bitcoin, Ethereum, Base, BNB Chain, Polygon.

Logic trigger examples:

  • Smart contract address or addresses. A workflow is executed on any interaction with the contract address.

  • Smart contract balance. A workflow is executed when a given balance is reached.

  • Smart contract method. A workflow is created when a specific method is called on a given smart contract address. This is particularly useful for creating NFT-connected workflows or those involving gaming assets. We use this extensively for both Wundaflip and Blobbs NFT.

  • Transaction amount. A workflow is created based on the value of a given transaction in the native currency/token.

  • Block number. A workflow is created when the block number is mined.

signals