# Customer Rules

### Customer Rules

These are conditions set in automation that define how and when specific actions should take place based on customer details or actions, like Email, Name, Country, and Sign-up.<br>

### Types of Customer Rules

> <mark style="color:orange;">Email</mark>
>
> <mark style="color:orange;">Name</mark>
>
> <mark style="color:orange;">Country</mark>
>
> <mark style="color:orange;">Sign Up</mark>

### Use Case

> #### 1. **Email Trigger**
>
> Email contains a specific pattern or keyword.
>
> * **Scenario**: You want to target customers who have a specific keyword or domain in their email addresses, such as "**john**" in the email or specific domains like "**@gmail.com**".
> * **Example**:
>
>   * If your customer database includes emails like "**<john.doe@example.com>**" or "**<johnny.smith@example.com>**", you can set a trigger to capture all emails that contain "**john**".
>
>   * **Use**: This can help you send targeted campaigns or promotions for specific customer segments, or personalize the email content for those customers. For instance, sending a special offer to anyone with a "**john**" in their email as part of a VIP group or a birthday offer.
>
> #### 2. **Name Trigger**
>
> Name contains a specific keyword.
>
> * **Scenario**: You want to target customers with a specific name or part of their name, such as all customers whose first or last name contains the word "**John**."
> * **Example**:
>
>   * A trigger like “**Name contains ‘John**’” will include customers like “**John Doe**,” “**Johnny Smith,**” or “**Johnny Walker**.”
>
>   * **Use**: This is ideal for personalizing content or promotions targeting a particular customer group. For example, sending a personalized offer or a discount to customers named "John" could increase engagement through the feeling of personal attention.
>
> #### 3. **Country Trigger**
>
> Country matches a specific country or geographic location.
>
> * **Scenario**: You may want to send region-specific content, offers, or newsletters to customers based on their country.
> * **Example**:
>
>   * **Trigger**: Country equals “United States”
>
>   * **Use**: You can target all customers from the United States with region-specific offers, localized content, or promotions. For instance, sending free shipping offers to customers located in the U.S. but not to customers in other countries.
>
> #### 4. **Sign Up Trigger**
>
> Customer signs up or registers.
>
> * **Scenario**: You want to trigger a workflow based on when a customer creates an account or subscribes to your service.
> * **Example**:
>
>   * **Trigger**: Sign-up date within the last 7 days.
>
>   * **Use**: This could trigger a welcome email, a discount offer, or a follow-up email for new customers who have just signed up. For example, sending a welcome email with a special offer for customers who signed up within the past week to encourage their first purchase.

#### Email

Triggers only for customers with specific email addresses or domains.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3iakRxNEbZZUX8YMos9PDSL8yLGj6rM8ZcK16QPsDW_AyjNMeuwhfbgmti_eROh1CWkE51rcWJb-CeS9ucLCIc75k1wT0RMRtnzEk0PKzmaqxifbVBxbY3deD-3lNuDJFcNUUMjLHvOWLOxmBOZQnwSis?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Email</p></figcaption></figure>

#### Name

Targets customers with certain names.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeHlAZWY4Ga3t3KeeZQTa-JFEFLMW03jW-cVd5HkxqTVzbyuw6LoOLshxOB-X6k5beLu1dZLExHLo-uxqPlHUvF2waT4GVyo2Pc1WLOuz0Naa3H_lwE-PiYpOWgfZK7CAXAoZuYOkJBJq-iK7JtxdIcNkqW?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Name</p></figcaption></figure>

#### Country

Sends emails based on the customer’s location.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdAtUCHl0SUbkNGt4xbLWPav9VTL-SuWiUBpfTQjjgyoFJ9SDxh8M42qC5uMHwQi8IvMneIEPLZ6BSfJr-cy2rtJeymwAmiWZYgeT6Q9VxIloNRV99hz_6dAOE6YT_5rKZk8_0f9Qnnq8w8Qg39g9K5w7c?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Country</p></figcaption></figure>

#### Signed up

Starts the automation for customers who signed up on a particular date or within a time range.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXemWbSTAUKXLmMXc7U6IAw4r4K3MNEvIVJHDGjnkZkPdYyWzsgxgKJxLBm7c-QUDDVP3SJjGYEj0R9HUtjZOFytfFtApBLBj746e1Qt_H4jn4n-x-gZH5vUvzSOEPE9YE8Ox19C_mrfgoSi5YWITEergRmg?key=Ho1iXyq1YhqmnJh0kGHBTFh6" alt="" width="375"><figcaption><p>Signed Up</p></figcaption></figure>
