Skip to content

Commit 6e30dd2

Browse files
committed
Add new page
1 parent c7bb5c1 commit 6e30dd2

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/connections/functions/copilot.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Functions Copilot
3+
---
4+
5+
Powered by OpenAI, Functions Copilot helps you generate JavaScript code for Functions using natural language prompts.
6+
7+
Functions Copilot improves efficiency and productivity by streamlining the process of creating and managing custom functions, freeing up time and engineering resources.
8+
9+
## Using Functions Copilot
10+
11+
Functions Copilot helps you:
12+
13+
- Generate JavaScript code for custom integrations and data transformations.
14+
- Analyze existing code and provide optimization suggestions.
15+
- Secure sensitive data with minimal effort.
16+
- Simplify code testing and maintenance.
17+
18+
## Example prompts
19+
20+
This table lists examples of prompts you can use with Functions Copilot:
21+
22+
| Function Type | Example Prompts |
23+
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
24+
| **Source Functions** | "Transform incoming data into a track event."<br> "Enrich user data with additional demographic details using an external API." |
25+
| **Destination Functions** | "Create a function that enriches an identify event using the Profile API."<br>"Remove PII data and hash email addresses in an Identify event." |
26+
| **Destination Insert Functions** | "Enrich an Identify event using an external API."<br>"Tokenize PII data before sending it downstream." |
27+
| | |
28+
29+
30+
## Best practices
31+
32+
Follow this guidance when you use Functions Copilot:
33+
34+
- Avoid using customer personally identifiable information (PII) or sensitive data.
35+
- Write specific prompts. Specificity leads to more accurate CustomerAI function generation. Use the names of existing events, related attributes, and properties.
36+
- Iterate on your prompts. If you don't get the result you're looking for, try rewriting the prompt.
37+
38+
## Limitations
39+
40+
Keep the following limitations in mind as you work with Functions Copilot:
41+
42+
- **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+
- **Language support**: Functions Copilot only supports English prompts. Using other languages may impact the accurancy of the generated output.
44+
- **Regional support**: Functions Copilot is only available for US region workspaces.

0 commit comments

Comments
 (0)