You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/engage/audiences/generative-audiences.md
+42-32Lines changed: 42 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@ In this article, you'll learn how to use Generative Audiences along with some be
17
17
18
18
To create an audience with Generative Audiences:
19
19
20
-
1.Navigate to **Engage > Audiences**, and click**+ New audience**.
21
-
2.From the dropdown menu, select **Audience**.
22
-
3. Select **Generative Audiences** as your audience type. Generative Audiences is available for all audience types except Linked Audiences.
20
+
1.From the Segment app, navigate to**Engage > Audiences**.
21
+
2.Click **+ New audience**, then select **Audience** from the dropdown menu.
22
+
3. Select your audience type. Generative Audiences is available for all audience types except Linked Audiences.
23
23
4. From the Build screen, click **Help me build**.
24
-
5. Enter your prompt in the audience description box.
24
+
5. Enter your audience prompt in the description box.
25
25
- Use a minimum of 20 characters and up to 300 characters maximum.
26
-
6. Click **Build**. Based on your prompt, CustomerAI generates audience conditions for you to review.
26
+
6. Click **Build**. Based on your prompt, CustomerAI generates audience conditions for your review.
27
27
- Segment displays a progress bar until the audience conditions are generated.
28
28
29
29
> success ""
@@ -34,60 +34,58 @@ To create an audience with Generative Audiences:
34
34
Once Segment generates the audience conditions, the prompt box remains open for reference. You can close this box, or modify your audience description and click **Build** again. Modifying an audience overwrites the existing audience conditions Segment previously generated.
35
35
36
36
> info ""
37
-
> Once Segment generates the audience, you can also adjust or remove any conditions straight from the audience builder.
38
-
37
+
> Once Segment generates the audience, you can also edit any conditions straight from the audience builder.
39
38
40
39
## Use cases and examples
41
40
42
-
Use the following examples to help you get started with audience prompts.
41
+
Use the following examples to help you get started with audience prompts.
43
42
44
43
- To build an audience with customers who haven't made a purchase in the last 30 days enter: `Customers who haven't purchased in the last 30 days.`
45
44
46
45
- To find all profiles that have recently opened an email enter: `Profiles that recently opened an email.`
47
46
48
47
- To build an audience with customers who spend over $50 on an order enter: `Customers who have orders greater than $50.`
49
48
49
+
> info ""
50
+
> You'll have more accurate results if you base your audience prompts on specific events and traits that are in your Segment space.
50
51
51
52
## Best practices
52
53
53
54
As you use generative audiences, keep the following best practices in mind:
54
55
56
+
- Avoid using any customer Personal Identifiable Information (PII) or sensitive data. Personal, confidential, or sensitive information isn't required to use CustomerAI.
55
57
- Write specific descriptions. CustomerAI generates more accurate conditions when you use the names of existing events and traits.
56
58
- Ensure that all events and traits you reference exist in your workspace.
57
-
-Avoid using sensitive data or customer Personal Identifiable Information (PII).
58
-
-Experiment with your prompts. If you don't receive what you want on the first try, rewrite your prompt. Submitting a new prompt replaces existing conditions.
59
+
-Try different prompts. If you don't receive what you want on the first try, rewrite your prompt. Submitting a new prompt replaces existing conditions.
60
+
-Preview your audience to ensure you're matching with the correct profiles prior to moving on to the next step.
59
61
60
62
> success ""
61
-
> Segment recommends previewing your audience to ensure you're matching with the correct profiles prior to moving on to the next step.
63
+
> As your writing your prompt, you can view traits and events that are active in your workspace from the audience builder. In the builder, after you add a condition, click the property field for a dropdown of active and inactive traits and events in your workspace. <br>
64
+
> You can also use the Profile explorer (**Unify** > **Profile explorer**) to view specific events and traits that are in your Segment space. <br>
65
+
>
66
+
> Learn more about [using existing events and traits](/docs/engage/audiences/#building-an-audience) to build audiences.
62
67
68
+
> warning ""
69
+
> Due to a [limited space schema](#limited-space-schema), CustomerAI may not recognize some events or traits that are inactive in your workspace.
63
70
64
-
##Known limitations
71
+
### Using negative conditions
65
72
66
-
### Limited space schema
67
-
68
-
Segment's generative AI service is handled by a third party that needs to be fed context about your Engage workspace and has limitations to how many contextual parameters Segment can send it. Because of this, Segment limits the amount of data it sends to the AI service. Segment solves this limitation by including up to 100,000 of the most recently used events and traits in your Engage space.
69
-
70
-
Event properties may not be populated due to this.
71
-
72
-
### Foreign language support
73
-
74
-
At this time, Segment only supports audience description prompts in the English language. Foreign language support is currently unavailable and might provide undesired results.
75
-
76
-
### Negative conditions
77
-
78
-
Audience descriptions around not having profile traits or users who have not performed certain events are expected to have their conditions configured in the following way:
73
+
Below are a few examples of how CustomerAI configures audience conditions for negative prompts. Negative conditions might include, for example, building an audience of users without a certain profile trait, or who haven't performed certain events.
79
74
80
75
1.**Prompt**: "Customers who have not purchased in the last 30 days."
81
-
76
+
-**Expected output**: Segment generates a condition where *the event is performed at most 0 times*.
82
77

83
78
84
-
-**Expected output**: Segment generates a condition where *the event is performed at most 0 times*.
85
79
86
80
2.**Prompt**: "Customers who don't have a phone number."
87
-
81
+
-**Expected output**: Segment generates a condition where *the trait doesn't exist*.
88
82

89
83
90
-
-**Expected output**: Segment generates a condition where *the trait doesn't exist*.
84
+
85
+
3.**Prompt**: "Customers who haven't received an email in the last 6 months."
86
+
-**Expected output**: Segment generates a condition where the event `Email Delivered` has been performed exactly `0 times`.
87
+
88
+
<!-- add image -->
91
89
92
90
## Error handling
93
91
@@ -96,8 +94,20 @@ Engage uses the following error messages with Generative Audiences:
| Something went wrong | This error displays when one of the following scenarios occur: <br> - Exception not found <br> - Invalid LLM output <br> - LLM error terminal <br> - Unknown exception |
99
-
| Something went wrong. Try again later. | The AI service is down or the LLM returned an error. |
100
-
| Segment had trouble creating an audience from this description. Try rewording it using these [best practices](#best-practices). | The prompt referenced an invalid or non-existing trait, audience, or event within the workspace. You may also see this when an objective is impossible or misunderstood. |
97
+
| Something went wrong. Try again later. | The AI service is down, or the LLM returned an error. |
98
+
| Segment had trouble creating an audience from this description. Try rewording it using these [best practices](#best-practices). | The prompt referenced an invalid or non-existing trait, audience, or event within the workspace. You may also see this when an audience description is impossible to build or misunderstood. |
99
+
100
+
## Known limitations
101
+
102
+
### Limited space schema
103
+
104
+
Segment's generative AI service is handled by a third party that needs to be fed context about your Engage workspace and has limitations to how many contextual parameters Segment can send it. Because of this, Segment limits the amount of data it sends to the AI service. Segment solves this limitation by including up to 100,000 of the most recently used events and traits in your Engage space.
105
+
106
+
Event properties may not be populated due to this.
107
+
108
+
### Foreign language support
109
+
110
+
At this time, Segment only supports audience description prompts in the English language. Foreign language support is currently unavailable and might provide undesired results.
101
111
102
112
103
113
## More about Segment's generative AI service
@@ -106,7 +116,7 @@ Engage uses the following error messages with Generative Audiences:
106
116
107
117
In order to generate the audience based on your description, Segment sends your query to OpenAI, Segment's 3rd party AI service. All queries sent to OpenAI from Segment are anonymized, meaning that OpenAI won't be able to identify from whom the query was sent unless you include uniquely identifiable information in the input.
108
118
109
-
Behind the scenes, Segment instructs GPT to generate an audience based on required parameters from Segment's system and contextual information such as traits and events performed in your workspace.
119
+
Behind the scenes, Segment instructs GPT to generate an audience based on the user inputted audience description and contextual information such as traits and events performed in your workspace.
110
120
111
121
GPT is OpenAI's state of the art natural language generation tool powered by artificial intelligence. It can perform a variety of natural language tasks like text generation, completion, and classification. CustomerAI uses the service to help generate audiences and inspire segmentation.
0 commit comments