Register for a Free Account
Name
Email
Choose Password
Confirm Password

Spark Overview: Events, Outcomes and Folders

Spark is Site Stacker's event-based automation tool: a Spark rule watches for something that happens in Site Stacker and then runs one or more outcomes. This guide explains what Spark is, how rules are organized, and how events and outcomes work.

What is Spark?

A Spark rule watches for something that happens in Site Stacker (a new contribution, a CRM record being created or updated, a record type being added, a Motion 2 task being completed, and more) and then runs one or more outcomes: send a message, change record types, start a Motion 2 workflow, assign a task, and more. Spark is widely used for child sponsorship and donor automation, but it works with any of the events listed below.

Spark handles immediate cause-and-effect automation. Motion 2 is the tool for multi-step workflows.

Opening Spark

Open the Spark component from the admin portal.

Folders and the rule tree

Spark rules are organized in folders in the tree on the left. You can create nested folders to categorize your rules however you like. A rule is not tied to a fixed folder: its event type is set on the rule itself, whatever folder it is in.

The tree has two additional columns you can show, Type and Order, which let you sort ascending or descending within the tree.

Events

The event is what a rule watches for. Events are shown with a yellow lightning bolt. Double-click a rule to see the configuration that makes up its event. The events available include:

  • Contributions: New Contribution, New Transaction, New Recurring, Update Recurring, Cancel Recurring, Hold Recurring, Failed Contribution, New Recurring Schedule, Recurring Designation Reminder, Recurring Schedule Reminder, Add To Cart, Remove From Cart, Monthly Recurring Goal Status Change, Contribution Campaign Goal Reached (Active Recurring Donor), Contribution Campaign Goal Reached (Campaign)
  • People (CRM): Person Create, Person Update, CRM Entity Create, CRM Entity Update, Person Type Assignment, Person Type Unassigned, Person Photo Create/Update, Person Relation Assignment
  • Motion 2: Person Assigned To Workflow, Task Complete, Process Status Changed
  • Other: New Activity, Activity Updated, Activity Deleted, Historic Gift Create, New Letter, Letter Status Change, Report Export, Content Item Move, Content Folder Move

Event conditions

Each event has its own conditions that must be met for the rule to fire. For example, the New Contribution event can be limited by:

  • Site and Site Channel
  • Campaign Category: what the event relates to (Project, Missionary, Child, etc.)
  • Content Folder (requires Site and Campaign Category): where the content for the chosen category lives
  • Type: Online or Offline, and Offline Type
  • Is Anonymous, Is First Time Donation, Is Recurring, Is First Time Recurring, Is Last Recurring, Is Original Schedule and Is Campaign Change: Yes / No
  • Amount (Greater / Less Than): the amount range that must be donated for the rule to fire
  • Has Affiliated Person, Has Soft Credit, Has Tribute Person: Yes / No
  • Source Code: a specific source code, if you use one

A condition left empty matches everything, so a rule with no conditions fires on every occurrence of its event. See Spark Event: New Contribution for details on each setting.

Kinds of conditions

  • Yes / No: for example Is Recurring or Is First Time Donation. Leave it empty to match both.
  • Amount ranges: a from and/or to amount.
  • Choices: such as the site channel, campaign category, record type, relationship type, workflow or task.
  • Dates: the reminder events (Recurring Designation Reminder and Recurring Schedule Reminder) can match the current day, month or year and a number of days from the gift's run date. Recurring Designation Reminder can also match days before the campaign owner's birthday.
  • Entity fields: CRM Entity Create and CRM Entity Update can match the values chosen in the entity's dropdown fields.

Every condition you set must match for the rule to fire. For "either/or" cases, create one rule for each case.

Outcomes

An outcome is what happens when a rule's event fires. You can add several outcomes to one rule, and they run in the order they are listed. Depending on the outcome you choose, you fill in different Data Input and Setting fields, and each outcome has its own icon so it is easy to find.

The outcomes include Send Message, Add Record Type, Remove Record Type, Add Relationship, Remove Relationship, Construct Entity Field, Update CRM Record, Create Activity, New Process (starts a Motion 2 workflow), Assign Task, Create User, Add User to Group, Remove User from Group, campaign and recurring-gift outcomes (such as Cancel a recurring contribution and Update campaign goal amount), and Site Planner content outcomes (such as Change Workflow Stage, Move Content Item to Folder and Assign Tags to Content Item).

Spark messages are sent through the Spark Message system message in System Messages, which must be active.

Transformers

A transformer is an optional step that looks up a related record the event doesn't include, such as a person's website profile, so an outcome can use it. See Spark Transformers: Using Related Records, and Spark Outcomes: What Each One Does for every outcome.

Example: thank and tag new donors

  1. Create the record type you want to add, for example Donor, under CRM > Configuration > Record Type.
  2. In Spark, add a rule with the New Transaction event. It fires once per gift, while New Contribution fires once for each campaign in a gift.
  3. Set any conditions you need, such as the Site Channel or Type (Online).
  4. Add a Send Message outcome to the donor with your thank-you. Use variables to add details such as the donor's name.
  5. Add an Add Record Type outcome and choose Donor.
  6. Click Save & Close, then test the rule with a small gift.

Editing existing rules

To edit a rule, double-click it in the tree and change what you need. Check that everything is set correctly before you click Save & Close: an active rule runs every time its event happens, so test new rules carefully before turning them on.

Best practices

  • Start simple: begin with a thank-you or welcome rule, then add more once it works.
  • Name and file rules clearly: use folders such as Donor Care, Recurring Gifts and Sponsorship so others can find and edit them.
  • Create record types first: outcomes and conditions can only use record types that already exist.
  • Use Motion 2 for timing: Spark acts straight away and has no delays. For follow-ups over days or weeks, start a Motion 2 workflow with the New Process outcome.
  • Test before relying on a rule: try it with a test record or a small gift, and review your rules from time to time.

Troubleshooting

  • The rule doesn't fire: check that it is active, and that every condition matches the real record (site channel, category, amounts, record types).
  • No email arrives: check that the Spark Message system message is active and that the recipient has an email address.
  • An outcome does nothing: check that its input exists, for example that the campaign has an owner, or that the transformer found a content item.
  • It fires too often: New Contribution fires once for each campaign in a gift; use New Transaction to act once per gift.

For ready-made examples, see Spark Recipes: Common Automations.

Watch the video

Mastering Automation with Spark (5:16)