LogoLogo
Using BunnyDeveloper
  • Getting started
    • Welcome to Bunny
    • Superdesk - Sample SaaS Co.
  • Product tour
    • Admin UI
      • Tables
      • Forms
      • Search (beta)
    • Product catalog
      • What's a product?
      • Product quick start
      • Products
      • Features
      • Feature editor
      • Plans
      • Price lists
      • Charges
      • Coupons
      • Categories
      • Platforms
      • Tenants
    • Customer management
      • Accounts
      • Contacts
      • Deals
      • Subscriptions
      • Leads
      • Campaigns
    • Subscription management
      • What is a subscription?
      • Subscription states
      • Trial subscriptions
    • Quoting
      • What is a quote?
      • Quote states
      • Quote builder
      • Building a quote
      • Sharing a quote
      • Applying a quote
      • Undoing a quote
      • Amendments
      • Renewals
      • Cancellations
    • Approval workflows
      • How approvals work
      • Approvers
      • Approval rules
    • Customer portal
      • Viewing quotes
      • Invoice history
      • Paying invoices
      • Subscriptions
    • Billing
      • Bill runs
      • Invoices
      • Credit notes
      • Price adjustments
      • Proration
      • Billing day
      • Currencies
      • Sales tax and VAT
      • Payment methods and types
      • Payment plugins
      • Usage records
      • Revenue movements
    • Entities
      • Invoices
      • Quotes
      • Branding
    • Accounting
      • GL mappings
      • Journal entries
      • Revenue recognition
      • Intracom VAT summary
    • Workflows
    • Analytics
      • Using analytics
      • Trials
      • Monthly Recurring Revenue
      • Collections
    • Access control
      • Users
      • Roles
      • Groups
      • API clients
    • Settings
      • Company
      • Outbox
      • Jobs
      • Security
      • Single sign-on
  • Advanced guides
    • Integrations
      • Airbyte
      • Avalara AvaTax
      • Docusign
      • Dropbox Sign
      • HubSpot
      • Mailchimp
      • QuickBooks
      • PandaDoc
      • Salesforce
      • SendGrid
      • Slack
      • Stripe
      • Xero
    • Single sign-on
    • SCIM user provisioning
  • Best practices
    • Pricing by number of users
    • Committed + overage pricing
  • Release notes
    • April 22, 2025 release
    • Mar 28, 2025 release
    • Mar 13, 2025 release
    • Feb 27, 2025 release
    • Feb 13, 2025 release
    • Jan 24, 2025 release
    • Jan 16, 2025 release
    • 2024 Releases
      • Dec 19, 2024 release
      • Dec 12, 2024 release
      • Dec 9, 2024 release
      • Nov 21, 2024 release
      • Nov 14, 2024 release
      • Nov 1, 2024 release
      • Oct 25, 2024 release
  • Legal
    • Terms of service
    • Privacy
    • Subprocessors
Powered by GitBook
On this page
  • Building and testing workflows
  • Object and schedule
  • Triggers
  • Jobs
  • Conditions
  • Actions

Was this helpful?

  1. Product tour

Workflows

PreviousIntracom VAT summaryNextAnalytics

Last updated 4 months ago

Was this helpful?

A powerful feature of Bunny is workflows, which let you customize many aspects of how Bunny operates. Bunny comes pre-configured with a number of workflows that model best practices in various functional areas, such a dunning.

You can also create your own workflows that help you further automate your revenue operations. Examples of workflows are:

  • Notify #sales channel in Slack when a deal closes

  • Push new contacts to a mailing list in Mailchimp

  • Automatically assign an account's invoice template based on country

  • Notify account managers by email when their accounts are up for renewal

Let's get into the details.

Workflows have three main components to them.

  • The object driving the workflow and its schedule

  • Conditions

  • Actions

The following sections go into detail about each of them.

Building and testing workflows

When you are building new workflows, you want to minimize the side effects new or incomplete workflows can have on other users' work. For example, you can disable a workflow completely or isolate it to just your user, so no one else is effected until it is working properly.

Some customers like to build out new business logic in a Bunny sandbox and copy over the business logic when it has been thoroughly tested. This is where the YAML tab can be very useful.

The YAML tab allows you to copy and paste workflow recipes between workflows and Bunny instances. If you are feeling adventurous, you can even write all your workflows by hand.

Object and schedule

Workflows can be defined for the following objects:

  • Account

  • Contact

  • Coupon

  • Deal

  • Event

  • Feature

  • Lead

  • Invoice

  • Payment

  • Payment method

  • Plan

  • Quote

  • Subscription

  • Tenant

  • Tenant provisioning changes

  • User

There are two different types of workflows: triggers and jobs. A trigger is run whenever an object is created or updated and affects just that object. A job is run periodically and affects all the objects that are selected by its conditions.

Triggers

Triggers are workflows that run when an object is created or updated. For example, the trigger workflow below runs every time a new account is created.

Jobs

Jobs are workflows that run at periodic intervals, either hourly or daily. Bunny makes no guarantees about when in those intervals a job will run, only that it will run once.

Whereas a trigger affects only one object every time it runs, a job affects all the objects that meet its conditions.

The job above will run daily and perform its actions on all accounts of type Customer that have over 1,000 employees.

Conditions

Jobs and triggers have roughly the same conditions available to them with the exception that jobs don't have the concept of a current user. When a user updates an account and a workflow is triggered by that event, Bunny knows that this is the current user and can do things with it in conditions and actions.

Actions

For any object that is affected by a workflow, Bunny will carry out the actions that are part of the workflow.

Action
Description

Condition

Executes a set of actions if a condition is met

Set attribute

Sets the value of an attribute

Send email

Sends an email

Webhook

Calls a webhook

Workflow
Workflow expressed as YAML
Workflow trigger
Account job