Skip to content

Latest commit

 

History

History
 
 

auto-remove-a-customer-tag-x-days-after-its-added

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto-remove a customer tag x days after it's added

Tags: Schedule, Untag

Use this this task to monitor for the addition of a new customer tag, and to schedule the customer to be untagged some number of days later. Useful for granting temporary access to discounts, or other resources.

Default options

{
  "tag_to_monitor__required": null,
  "days_to_wait_before_untagging__number_required": null
}

Learn about task options in Mechanic

Subscriptions

shopify/customers/update
user/task/untag_customer

Learn about event subscriptions in Mechanic

Documentation

Use this this task to monitor for the addition of a new customer tag, and to schedule the customer to be untagged some number of days later. Useful for granting temporary access to discounts, or other resources.

This task monitors new and updated customers, watching for the configured customer tag.

As soon as that tag is detected, the task will add a second tag, indicating that the customer is scheduled to be untagged. (For example, if the task is configured to watch for the tag "Approved", the task will add the tag "Approved - will be auto-removed by Mechanic".) The task will then schedule a followup event for the future, according to the configured number of days to wait. At that time, the task will remove both tags.

Important note: To prevent the task from untagging the customer later, manually remove the task's additional tag (i.e. the "will be auto-removed by Mechanic" tag). If the additional tag is found missing, the task will leave the tag in place instead of auto-removing it.

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!