Skip to content

Commit 151b563

Browse files
authored
Merge pull request #7008 from segmentio/DOC-993
suggested mappings [DOC-993]
2 parents 90ecca8 + ebabea6 commit 151b563

File tree

4 files changed

+173
-2
lines changed

4 files changed

+173
-2
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
<style type="text/css">
2+
@font-face {
3+
font-family: 'SF Pro Text';
4+
src: url('fonts/sf-pro/SFProText-Regular.eot');
5+
src: url('fonts/sf-pro/SFProText-Regular.eot?#iefix') format('embedded-opentype');
6+
font-style: normal;
7+
}
8+
doc-content.ol{margin:0;padding:0}
9+
doc-content.table td,table th{padding:0}
10+
.c9{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:3pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:3pt;border-top-style:solid;border-left-style:solid;border-bottom-width:3pt;width:468pt;border-top-color:#000000;border-bottom-style:solid}
11+
.c28{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:3pt;border-right-width:3pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:3pt;border-top-style:solid;border-left-style:solid;border-bottom-width:6pt;width:468pt;border-top-color:#000000;border-bottom-style:solid}
12+
.c6{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:3pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:3pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:468pt;border-top-color:#000000;border-bottom-style:solid}
13+
.c26{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:6pt;border-right-width:3pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:3pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:468pt;border-top-color:#000000;border-bottom-style:solid}
14+
.c0{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:12pt;font-family:"SF Pro Text";font-style:normal}
15+
.c7{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"SF Pro Text";font-style:normal}
16+
.c8{color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:12pt;font-family:"SF Pro Text";font-style:normal}
17+
.c11{padding-top:0pt;padding-bottom:10pt;line-height:1.0;orphans:2;widows:2;text-align:left;height:11pt}
18+
.c20{margin-left:216pt;padding-top:0pt;padding-bottom:10pt;line-height:1.0;orphans:2;widows:2;text-align:left}
19+
.c3{margin-left:13.5pt;padding-top:0pt;padding-bottom:0pt;line-height:1.15;text-align:left}
20+
.c12{color:#000000;text-decoration:none;vertical-align:baseline;font-style:normal}
21+
.c10{padding-top:0pt;padding-bottom:0pt;line-height:1.0;text-align:left}
22+
.c2{border-spacing:0;border-collapse:collapse;margin-right:auto}
23+
.c14{padding-top:0pt;padding-bottom:0pt;line-height:1.15;text-align:left}
24+
.c27{color:#ffffff;text-decoration:none;vertical-align:baseline;font-style:normal}
25+
.c23{background-color:#ffffff;max-width:468pt;padding:72pt 72pt 72pt 72pt}
26+
.c15{font-weight:400;font-size:11pt;font-family:"SF Pro Text"}
27+
.c25{font-size:25pt;font-family:"SF Pro Text";font-weight:700}
28+
.c18{orphans:2;widows:2;height:11pt}
29+
.c21{font-size:10pt;font-family:"SF Pro Text";font-weight:700}
30+
.c24{font-weight:400;font-size:11pt;font-family:"SF Pro Text"}
31+
.c13{font-size:12pt;font-family:"SF Pro Text";font-weight:700}
32+
.c22{font-size:12pt;font-family:"SF Pro Text";font-weight:400}
33+
.c1{font-size:9pt;font-family:"SF Pro Text";font-weight:400}
34+
.c17{font-weight:400;font-size:18pt;font-family:"SF Pro Text"}
35+
.c29{font-weight:400;font-size:10pt;font-family:"SF Pro Text"}
36+
.c16{font-weight:400;font-size:10pt;font-family:"SF Pro Text"}
37+
.c19{background-color:#000000}
38+
.c5{height:63.5pt}.c4{height:0pt}
39+
.c4{height:0pt}
40+
doc-content.title{padding-top:0pt;color:#000000;font-size:26pt;padding-bottom:3pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
41+
doc-content.subtitle{padding-top:0pt;color:#666666;font-size:15pt;padding-bottom:16pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
42+
doc-content.li{color:#000000;font-size:11pt;font-family:"SF Pro Text"}
43+
doc-content.p{margin:0;color:#000000;font-size:11pt;font-family:"SF Pro Text"}
44+
doc-content.h1{padding-top:20pt;color:#000000;font-size:20pt;padding-bottom:6pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
45+
doc-content.h2{padding-top:18pt;color:#000000;font-size:16pt;padding-bottom:6pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
46+
doc-content.h3{padding-top:16pt;color:#434343;font-size:14pt;padding-bottom:4pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
47+
doc-content.h4{padding-top:14pt;color:#666666;font-size:12pt;padding-bottom:4pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
48+
doc-content.h5{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}
49+
doc-content.h6{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"SF Pro Text";line-height:1.15;page-break-after:avoid;font-style:italic;orphans:2;widows:2;text-align:left}
50+
.nf-right-align{float:right;width:50%;text-align:right}
51+
.nf-indent{padding-left:1.5em}
52+
</style>
53+
<html>
54+
<p class="c11"><span class="c7"></span></p><a id="t.454197d3f7d8252a28377abc8231c14367b7f8e7"></a><a id="t.0"></a>
55+
<table class="c2"><tr class="c5">
56+
<td class="c28" colspan="1" rowspan="1">
57+
<p class="c14"><span class="c25">AI Nutrition Facts</span>
58+
<br />
59+
<br />
60+
<span class="c0">Suggested Mappings</span></p>
61+
</td>
62+
</tr><tr class="c4">
63+
<td class="c26" colspan="1" rowspan="1">
64+
<p class="c10"><span class="c8">Description</span>
65+
<br />
66+
<br />
67+
<span class="c1">Suggested Mappings automates the mapping of a source (ex: data warehouse, event streams, and connections to destination fields, providing you with smart suggestions while allowing you to tweak and perfect each mapping.</span></p>
68+
</td>
69+
</tr>
70+
<tr class="c4">
71+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Privacy Ladder Level </span>
72+
<span class="c0 nf-right-align">1</span></p>
73+
</td>
74+
</tr>
75+
<tr class="c4">
76+
<td class="c6" colspan="1" rowspan="1"><p class="c10">
77+
<span class="c13">Feature is Optional</span>
78+
<span class="c0 nf-right-align" >Yes</span></p>
79+
</td>
80+
</tr><tr class="c4">
81+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Model Type </span>
82+
<span class="c12 c15 nf-right-align">Generative </span></p>
83+
</td>
84+
</tr>
85+
<tr class="c4">
86+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Base Model </span>
87+
<span class="c12 c15 nf-right-align">OpenAI - GPT-3.5</span></p>
88+
</td>
89+
</tr>
90+
<tr class="c4">
91+
<td class="c6 c19" colspan="1" rowspan="1"><p class="c10"><span class="c13 c27">Trust Ingredients</span></p>
92+
</td>
93+
</tr>
94+
<tr class="c4">
95+
<td class="c6" colspan="1" rowspan="1">
96+
<p class="c10"><span class="c13">Base Model Trained with Customer Data</span>
97+
<span class="c0 nf-right-align">No</span></p>
98+
</td>
99+
</tr>
100+
<tr class="c4">
101+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Customer Data is Shared with Model Vendor</span>
102+
<span class="c0 nf-right-align">Yes</span> </p>
103+
</td>
104+
</tr>
105+
<tr class="c4">
106+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Training Data Anonymized &nbsp; </span>
107+
<span class="c0 nf-right-align"> N/A</span></p>
108+
</td>
109+
</tr>
110+
<tr class="c4">
111+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Data Deletion</span>
112+
<span class="c0 nf-right-align">Yes</span></p>
113+
</td>
114+
</tr>
115+
<tr class="c4">
116+
<td class="c6" colspan="1" rowspan="1"><p class="c14"><span class="c13">Human in the Loop </span>
117+
<span class="c0 nf-right-align">Yes</span></p>
118+
</td>
119+
</tr>
120+
<tr class="c4">
121+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Data Retention </span>
122+
<span class="c22 nf-right-align">30 days</span></p>
123+
</td>
124+
</tr>
125+
<tr class="c4">
126+
<td class="c6" colspan="1" rowspan="1"><span class="c8">Compliance &nbsp; &nbsp; </span><br />
127+
<span class="c13 nf-indent">Logging &amp; Auditing </span>
128+
<span class="c0 nf-right-align">No</span><br />
129+
<span class="c13 nf-indent">Guardrails</span>
130+
<span class="c0 nf-right-align">Yes</span>
131+
</td>
132+
</tr>
133+
<tr class="c4">
134+
<td class="c6" colspan="1" rowspan="1"><p class="c10"><span class="c13">Input/Output Consistency</span>
135+
<span class="c0 nf-right-align">No</span></p>
136+
</td>
137+
</tr>
138+
<tr class="c4">
139+
<td class="c9" colspan="1" rowspan="1"><p class="c10"><span class="c8">Other Resources</span></p>
140+
</td>
141+
</tr>
142+
</table>
143+
</html>

src/connections/destinations/actions.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ To set up a new Actions-framework destination for the first time:
5757
4. If prompted, select the source you want to connect to the new destination.
5858
5. Enter your credentials. This could be an API Key and secret key, or similar information that allows the destination to connect to your account.
5959
6. Next, choose how you want to set up the destination, and click **Configure Actions**.
60-
You can choose **Quick Setup** to use the default mappings, or choose **Customized Setup** (if available) to create new mappings and conditions from a blank state. You can always edit these mappings later.
60+
* You can choose **Quick Setup** to use the default mappings, or choose **Customized Setup** (if available) to create new mappings and conditions from a blank state. You can always edit these mappings later.
61+
* *(Optional)* Click **Suggest Mappings** to get suggested mappings. Learn more about [suggested mappings](#suggested-mappings).
6162
7. Once you're satisfied with your mappings, click **Create Destination**.
6263

6364
> info ""
@@ -188,6 +189,16 @@ If necessary, click **New Mapping** to create a new, blank action.
188189
> info ""
189190
> The required fields for a destination mapping appear automatically. Click the + sign to see optional fields.
190191
192+
## Suggested mappings
193+
194+
> info ""
195+
> Suggested mappings is fully available for RETL mappings, and is in public beta for event streams and connections.
196+
197+
Segment offers suggested mappings that automatically propose relevant destination fields for both model columns and payload elements. For example, if your model includes a column or payload field named `transaction_amount`, the feature might suggest mapping it to a destination field like `Amount` or `TransactionValue`. This automation, powered by intelligent autocompletion, matches and identifies near-matching field names to streamline the setup. For more information, see [Segment's suggested mappings blogpost](https://segment.com/blog/ai-assisted-magical-mappings/){:target="_blank”} and the [Suggested Mappings Nutrition Label](/docs/connections/reverse-etl/suggested-mappings-nutrition-facts).
198+
199+
> warning ""
200+
> Review the suggested mappings for accuracy before finalizing them as the suggestions aren't guaranteed to be 100% accurate.
201+
191202
### Coalesce function
192203

193204
The coalesce function takes a primary value and uses it if it is available. If the value isn't available, the function uses the fallback value instead.

src/connections/reverse-etl/setup.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To create a mapping:
8888
* Deleted records
8989
7. In the **Map fields** section, define how to map the record columns from your model to your destination. Map the fields that come from your source to fields that the destination expects to find. Fields on the destination side depend on the type of Action selected.
9090
* If you’re setting up a Destination Action, some mapping fields might require data to be in the form of an object or array. See the [supported objects and arrays for mapping](/docs/connections/reverse-etl/manage-retl/#supported-object-and-arrays) for more information.
91-
<!---* _(Optional)_ Use the [Suggested Mappings](#suggested-mappings) feature to identify and match near-matching field names to streamline the field mapping process. -->
91+
* _(Optional)_ Use the [Suggested Mappings](#suggested-mappings) feature to identify and match near-matching field names to streamline the field mapping process.
9292
8. In the **Send test record section**, select a test record to preview the fields that you mapped to your destination. When you've verified that the records appear as expected, click **Next**.
9393
9. Enter a name for your mapping. The name initially defaults to the Action's name, for example, `Track Event`, but you can make changes to this default name.
9494
10. Select how often you want Segment to sync your data under **Schedule configuration**.
@@ -196,6 +196,16 @@ To edit your model:
196196
4. Click the **Settings** tab to edit the model name or change the schedule settings.
197197

198198

199+
### Suggested mappings
200+
201+
> info ""
202+
> Suggested mappings is fully available for RETL mappings.
203+
204+
Segment offers suggested mappings that automatically propose relevant destination fields for model columns and payload elements. For example, if your model includes a column or payload field named `transaction_amount`, the feature might suggest mapping it to a destination field like `Amount` or `TransactionValue`. This automation, powered by intelligent autocompletion, matches and identifies near-matching field names to streamline the mappings setup process. For more information, see [Segment's suggested mappings blog post](https://segment.com/blog/ai-assisted-magical-mappings/){:target="_blank”} and the [Suggested Mappings Nutrition Facts Label](/docs/connections/reverse-etl/suggested-mappings-nutrition-facts).
205+
206+
> warning ""
207+
> Review the suggested mappings for accuracy before finalizing them, as Segment can't guarantee all of the suggested mappings are accurate.
208+
199209
### Edit your mapping
200210

201211
To edit your mapping:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Suggested Mappings Nutrition Facts Label
3+
---
4+
5+
Twilio’s [AI Nutrition Facts](https://nutrition-facts.ai/){:target="_blank"} provide an overview of the AI feature you’re using, so you can better understand how the AI is working with your data. Suggested Mappings's AI qualities are outlined in the following Nutrition Facts label. For more information, including the glossary regarding the AI Nutrition Facts label, refer to the [AI Nutrition Facts](https://nutrition-facts.ai/){:target="_blank"} page.
6+
7+
{% include content/suggested-mappings-nutrition-facts.html %}

0 commit comments

Comments
 (0)