diff --git a/src/_data/sidenav/main.yml b/src/_data/sidenav/main.yml index 13bb77e364..e005b99eae 100644 --- a/src/_data/sidenav/main.yml +++ b/src/_data/sidenav/main.yml @@ -210,6 +210,10 @@ sections: title: Destination Functions - path: /connections/functions/insert-functions title: Destination Insert Functions + - path: /connections/functions/copilot + title: Functions Copilot + - path: /connections/functions/functions-copilot-nutrition-facts + title: Functions Copilot Nutrition Facts Label - path: /connections/functions/environment title: Functions Environment - path: /connections/functions/usage diff --git a/src/_includes/content/functions-copilot-nutrition-facts.html b/src/_includes/content/functions-copilot-nutrition-facts.html new file mode 100644 index 0000000000..f4a109fb4d --- /dev/null +++ b/src/_includes/content/functions-copilot-nutrition-facts.html @@ -0,0 +1,151 @@ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

AI Nutrition Facts +
+
+ Customer AI Functions Copilot

+
+

Description +
+
+ Functions Copilot is an AI-powered coding assistant designed to streamline the development of custom integrations, and enrich and transform Segment Functions.

+

Privacy Ladder Level + 1

+

+ Feature is Optional + Yes

+

Model Type + Generative

+

Base Model + OpenAI - GPT-4

+

Trust Ingredients

+
+

Base Model Trained with Customer Data + No +
+
+

+

Customer Data Shared with Model Vendor + No +
+
+

+

Training Data Anonymized   + N/A

+

Data Deletion + Yes

+

Human in the Loop + Yes

+

Data Retention + N/A

+
Compliance    
+ Logging & Auditing + N/A
+ Guardrails + N/A +

Input/Output Consistency + Yes

+

Other Resources +
+
+ Learn more at: https://twilio.com/en-us/customer-ai

+
\ No newline at end of file diff --git a/src/connections/functions/copilot.md b/src/connections/functions/copilot.md new file mode 100644 index 0000000000..ef36e95de6 --- /dev/null +++ b/src/connections/functions/copilot.md @@ -0,0 +1,56 @@ +--- +title: Functions Copilot +--- + +Functions Copilot helps you generate JavaScript code for functions using natural language prompts. + +> info "Functions Copilot Public Beta" +> Functions Copilot is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available. + +## Functions Copilot benefits + +Powered by OpenAI, Functions Copilot improves efficiency and productivity by streamlining the process of creating and managing custom functions. + +Functions Copilot can help you: + +- Generate JavaScript code for custom integrations and data transformations. +- Analyze existing code and provide optimization suggestions. +- Secure sensitive data with minimal effort. +- Simplify code testing and maintenance. + +## Example prompts + +This table lists example prompts you can use with Functions Copilot: + +| Function Type | Example Prompts | +| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| **Source Functions** | "Transform incoming data into a track event."

"Enrich user data with additional demographic details using an external API." | +| **Destination Functions** | "Create a function that enriches an Identify event using the Profile API."

"Remove PII data and hash email addresses in an Identify event." | +| **Destination Insert Functions** | "Enrich an Identify event using an external API."

"Tokenize PII data before sending it downstream." | + +## Best practices and limitations + +Follow this guidance when you use Functions Copilot: + +- Avoid using personally identifiable information (PII) or sensitive data. +- Write specific prompts. Specificity leads to more accurate CustomerAI function generation. Use the names of existing events, related attributes, and properties. +- Iterate on your prompts. If you don't get the result you're looking for, try rewriting the prompt. + +### Limitations + +Keep the following limitations in mind as you work with Functions Copilot: + +- **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. +- **Language support**: Functions Copilot only supports English prompts. Using other languages may impact the accurancy of the generated output. +- **Regional support**: Functions Copilot is only available for US region Segment workspaces. + +## Segment's generative AI service + + +For Copilot to generate a function, Segment sends your query to OpenAI, Segment’s third-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. + +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 inspire segmentation and build functions and audiences. + +According to OpenAI’s policy, OpenAI will not use data sent from Segment to train or improve their models, and they will delete the data 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. + +For more information, see the [Functions Copilot Nutrition Facts Label](/docs/connections/functions/functions-copilot-nutrition-facts/). \ No newline at end of file diff --git a/src/connections/functions/functions-copilot-nutrition-facts.md b/src/connections/functions/functions-copilot-nutrition-facts.md new file mode 100644 index 0000000000..1201439bf8 --- /dev/null +++ b/src/connections/functions/functions-copilot-nutrition-facts.md @@ -0,0 +1,7 @@ +--- +title: Functions Copilot Nutrition Facts Label +--- + +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. + +{% include content/functions-copilot-nutrition-facts.html %} diff --git a/src/connections/functions/index.md b/src/connections/functions/index.md index 21505848a4..e8af169cd8 100644 --- a/src/connections/functions/index.md +++ b/src/connections/functions/index.md @@ -40,4 +40,10 @@ Use cases: - Transform outgoing data with advanced filtration and computation - Ensure data compliance by performing tokenisation, encryption, or decryption before sending data downstream -To learn more, visit [destination insert functions](/docs/connections/functions/insert-functions). \ No newline at end of file +To learn more, visit [destination insert functions](/docs/connections/functions/insert-functions). + +#### Functions Copilot + +With Functions Copilot, you can instrument custom integrations, enrich and transform data, and even secure sensitive data nearly instantaneously without writing a line of code. + +To learn more, visit the [Functions Copilot documentation](//docs/connections/functions/functions-copilot). \ No newline at end of file