> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/ce/customer-use-cases/introduction/first-registration-coupon.md).

# First Registration Coupon

There are numbers of marketing strategies you might use to gain new customers for your online store. One of them could be a Welcome Campaign that offers a discount coupon for first time users that register at your store. Here, you might use the power of value streams in Value Stream Modeller. You can create such a scenario with a simple value stream, like the one presented in the example.

### Overview video

{% embed url="<https://youtu.be/moMmoqiLDMY?feature=shared>" %}

### Process flow

In this use case, we create a simple value stream that covers the following flow:

<figure><img src="/files/iMw3OOPDiz1RROR0pOR4" alt=""><figcaption></figcaption></figure>

The value stream starts automatically when a first time user registers as a customer on the storefront. The registration event serves as a trigger for OE.\
OE catches the customer creation event from the storefront and passes the customer's ID to the CE API endpoint responsible for creating coupons. CE creates a coupon and saves it in the database. As a result the discount coupon code is visible in the Management Dashboard, under **Customer Management** -> **Coupons**.

<figure><img src="/files/ObdgZ6SvjSglrN1Iyi4U" alt=""><figcaption></figcaption></figure>

For the first time registration use case, the coupon works only for the customer with the given ID that is read from the previous step. But, the coupon can have different redemption rules, like for example, it can only work for a certain category of products, can be valid only for some period, or work only with some minimum order value, or more depending on your preferences.

The next step of the value stream takes care of sending an email to the new customer with the created coupon code. OE triggers the mailing service to send out an email with coupon details, encouraging the customer to make a purchase in your store. The customer can use the coupon straightaway at checkout if they fulfill the set coupon rules.

The value stream as described here can look like this:

<figure><img src="/files/mUBUXqAdJOy0AUx3T1Gy" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This use case serves only as an example of what you can achieve with CE and value streams in Value Stream Modeller. The value streams we presented here can be adjusted to your actual needs. For a ready-to-use template, see [New Registered Customer](/value-stream-modeller/value-stream-examples/new-customer-registration.md) in Value Stream Examples. For further information, contact our [Sales Team](mailto:sales@emporix.com).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.emporix.io/ce/customer-use-cases/introduction/first-registration-coupon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
