Village Product and Developer Docs
  • 📘Welcome to Village Labs
    • Welcome to Village Labs
    • Self Service Onboarding
    • Help Pages
      • Adding and Deleting Users
      • Mapping Users to Source tool IDs
      • How to follow or unfollow other users
      • Configuring & Removing Daily Slack Notification Whitelist
      • Changing the Reporting Lines & Teams
      • Following Custom Reports
      • Google Drive Privacy: When will my documents appear in Village Reports?
    • Custom Reports
      • Creating Team Reports
      • Creating Custom Reports & Custom Prompt Library
    • Meetings
      • Connecting your Calendar
      • Configuring your Meetings
      • Meeting Summary Reports
    • Village Assistant
      • Github PR Review Tool
    • Security & Compliance
    • Data Privacy & Permissions
  • 🔌Data Connections
    • Airtable
    • Ashby
    • Clickup
      • Finding ClickUp User IDs
    • Figma
    • Github
      • Finding GitHub User IDs
    • Gitlab
    • Google - OAuth (Recommended)
    • Google - Manual Connection
    • Hubspot
    • Jira
      • Finding Jira User IDs
    • Confluence
      • Finding Confluence / Jira User IDs
    • Linear
    • Asana
    • Monday
    • Notion
    • Pipedrive
    • Slack
    • Basecamp
    • Zoom
  • 👩‍💻Legacy Developer Docs
    • Developer Quickstart
    • Village APIs: Introduction
      • Activity API
      • User Status API
      • Patch User API
      • Segments API
      • Redemption API
      • Master Award Controls
      • Connections (Referrals) APIs
      • GET APIs
    • 3rd Party Payments Integrations
    • Embedding Village Dashboards
  • 🕵️LEGACY Knowledge Base
    • Admin Quickstart
    • Referrals Support
    • The Basics of Village in 15 Minutes
    • Programs & Rules
      • Triggers
        • Activities
        • Goals
      • Conditions
        • Segment Conditions
        • Time Conditions
        • Max Budget Conditions
        • Conditional Multipliers
    • Awards
      • Monetary (Cash) Awards
      • Non-Monetary Awards
        • Funding
          • In-depth use cases for funding pools
      • Badges & Statuses
      • Award Expiration
    • Segments
      • Segmentation Use Cases
    • Rule Evaluation Logic Deep-dive
    • The Village Dashboards
      • Admin Account Creation
      • User Access Management
      • Network Settings
      • User Dashboard
    • BigQuery
    • Managing Payment Integrations
    • Referrals (Connections)
      • Pre-populating Users' Unique Referral Codes In Signup Flows & Forms
  • No and Low Code Solutions
    • No and Low Code Solutions
      • No & Low Code Solutions
  • Feedback
    • Village Docs Feedback Form
    • Feature Requests
    • Talk to our Team
Powered by GitBook
On this page
  • Overview
  • Action Triggers
  • Sales Triggers
  • Creating Activity Triggers

Was this helpful?

  1. LEGACY Knowledge Base
  2. Programs & Rules
  3. Triggers

Activities

Understanding how and when to use activity-based triggers

PreviousTriggersNextGoals

Last updated 1 year ago

Was this helpful?

Overview

Activity triggers are the simplest type of trigger within Village. They correspond to things that occur on your platform like events or behavior (Actions) or transactions (Sales).

During the implementation and setup phase, you'll need to map the activities that occur on your platform which you want to use within incentive or segmentation rules to the triggers that you set up within Village. This is done using the .

Action Triggers

Action triggers are the simplest type of trigger. They correspond to events that occur on your platform, such as user sign-up, document upload, or delivery completion. These triggers are straightforward to set up and can be used as a component of any rule, or as part of the qualification requirements of a goal.

When activity happens on your platform, the corresponding trigger will start the evaluation of the rule or goal logic of which it is a part.

Sales Triggers

Sales triggers are very similar to action triggers. However, they are designed to reference the value of a transaction, rather than whether a distinct activity occurred or not. When you set up a Sale trigger inside the Activity API, the "Amount" field references the total value of each transaction, and you can then use this amount as the basis for rules logic.

  • For example, if you want to award 1% cash back per sale, you would create a rule using a Sales trigger that awards .01 per transaction, or $.01 for every $1 in the amount field. If the transaction was for $10, this would award .01 * $10 = $0.10.

It's worth knowing that when you are passing an Action (versus a Sale) to Village using the Activity API, it's likely the amount field will be 1, since a single action occurred, eg. 1 signup. But the same logic applies to Actions as Sales if you were passing multiple Actions at once to Village through a single API call, eg. where action amount = 5.

Creating Activity Triggers

Inside the Triggers section, choose either the Action or Sales tab. Click on the "New Action/Sales Trigger" button. The following inputs are required:

Input
Description

Name

This may be user-facing, so choose a name that is identifiable for both external and internal users.

Short ID

This is the ID that will be used to map the trigger you’ve created in Village to a given activity on your platform inside the Activity API. This is also the ID used in the database to identify a particular trigger.

Description

Enter a short description to help identify the trigger. This is internal only.

Associated Users

Specify which of your users you would like this trigger to be associated with. Associated users will appear as recipients when you create a rule using this trigger (or in a rule with a goal-trigger that uses this trigger within its qualification logic). Please ensure these users are also being passed through by the Activity API.

For example: some events occurring on your platform may have multiple associated users. A food delivery taking place on a 3-sided marketplace platform likely has an associated consumer, deliverer and restaurant user. Creating one or multiple associated users will enable all of these users to be recipients when the associated rule executes.

Qualification Period

You have the option to restrict the time period in which a given activity or transaction will activate the trigger. For example, if you only want the trigger to activate for transactions during 6-9pm, you can set this with the qualification period. The trigger will not activate for a transaction that occurs at 5pm.

As a reminder, once you have created triggers within Village's admin dashboard, you still need to ensure that these are mapped correctly in the Activity API for rules that use these triggers to execute when the activity occurs on your platform.

🕵️
Activity API