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.
- View in the task library: tasks.mechanic.dev/auto-remove-a-customer-tag-x-days-after-its-added
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"tag_to_monitor__required": null,
"days_to_wait_before_untagging__number_required": null
}
Learn about task options in Mechanic
shopify/customers/update
user/task/untag_customer
Learn about event subscriptions in Mechanic
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.
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.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!