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
.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}
<spanclass="c0">Customer AI Functions Copilot</span></p>
61
+
</td>
62
+
</tr><trclass="c4">
63
+
<tdclass="c26" colspan="1" rowspan="1">
64
+
<pclass="c10"><spanclass="c8">Description</span>
65
+
<br/>
66
+
<br/>
67
+
<spanclass="c1"> Functions Copilot is an AI-powered coding assistant, designed to streamline the development of custom integrations, and enrich and transform Segment Functions.</span></p>
Copy file name to clipboardExpand all lines: src/connections/functions/copilot.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
title: Functions Copilot
3
3
---
4
4
5
-
Powered by OpenAI, Functions Copilot helps you generate JavaScript code for Functions using natural language prompts.
5
+
Functions Copilot helps you generate JavaScript code for Functions using natural language prompts.
6
6
7
-
Functions Copilot improves efficiency and productivity by streamlining the process of creating and managing custom functions, freeing up time and engineering resources.
7
+
## Functions Copilot Benefits
8
8
9
-
## Using Functions Copilot
9
+
Powered by OpenAI, Functions Copilot improves efficiency and productivity by streamlining the process of creating and managing custom functions, freeing up time and engineering resources.
10
10
11
-
Functions Copilot helps you:
11
+
Functions Copilot can help you:
12
12
13
13
- Generate JavaScript code for custom integrations and data transformations.
14
14
- Analyze existing code and provide optimization suggestions.
@@ -26,19 +26,30 @@ This table lists examples of prompts you can use with Functions Copilot:
26
26
|**Destination Insert Functions**| "Enrich an Identify event using an external API."<br>"Tokenize PII data before sending it downstream." |
27
27
|||
28
28
29
-
30
-
## Best practices
29
+
## Best practices and limitations
31
30
32
31
Follow this guidance when you use Functions Copilot:
33
32
34
33
- Avoid using customer personally identifiable information (PII) or sensitive data.
35
34
- Write specific prompts. Specificity leads to more accurate CustomerAI function generation. Use the names of existing events, related attributes, and properties.
36
35
- Iterate on your prompts. If you don't get the result you're looking for, try rewriting the prompt.
37
36
38
-
## Limitations
37
+
### Limitations
39
38
40
39
Keep the following limitations in mind as you work with Functions Copilot:
41
40
42
41
-**Context limitations**: Functions Copilot generates code based on Segment-specific terminology and the prompts you write. As a result, the generated output may not always be accurate. If the function doesn't initially meet your needs, try to refine or rewrite your prompt.
43
42
-**Language support**: Functions Copilot only supports English prompts. Using other languages may impact the accurancy of the generated output.
44
43
-**Regional support**: Functions Copilot is only available for US region workspaces.
44
+
45
+
## Segment's generative AI service
46
+
47
+
<!-- PW/June 2024: Stealing this from Generative Audiences, but we should probably centralize this info at some point -->
48
+
49
+
For copilot to generate a function, 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.
50
+
51
+
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 functions, audiences, and inspire segmentation.
52
+
53
+
According to OpenAI’s policy, OpenAI will not use data sent from Segment to train or improve their models, and they will delete it after 30 days. Any content generated using GPT belongs to you. Segment will not claim copyright ownership of such content and makes no warranty regarding any AI generated content.
54
+
55
+
For more information, see the [Functions Copilot Nutrition Facts Label](/docs/connections/functions/functions-copilot-nutrition-facts/).
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. Function Copilot'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/functions-copilot-nutrition-facts.html %}
0 commit comments