Twilio Segment Connections
Functions brings custom data integrations within your CDP
Build custom integrations, enrich and transform data, and mask sensitive information with a simple webhook on Twilio Segment’s open, extensible platform - now even faster with AI.


Build smarter workflows—No heavy lifting required
Data workflows that are smarter, safer, and more flexible.
How Functions works
Go from custom idea to live data flow in minutes—without the complexity of traditional development.


Step 1
Write custom logic
Use our in-app Javascript editor to introduce custom capabilities in Segment—such as unlocking new integrations or tailoring event data—to accommodate any unique business needs that aren't covered by out of the box solutions.
Don’t have time to write code? Functions Co-Pilot will generate what you need from natural language prompts.
Step 2
Test and deploy quickly
Test your Functions code in real time with either a sample event or by loading a default event that you can customize yourself. There’s even a trusty AI guide on hand to review and optimize your code. Once you're satisfied, configure and deploy in a few clicks—no infrastructure or DevOps required.
Step 3
Run automatically on every event
Collect and transform any stream of first-party customer data from webhooks into Segment events. Transform and map events collected by Segment to new destinations and internal services. Track changes or restore a previous version with versioning.
Get started with Functions
Get started for free or find the right plan to enable your engineering team to collect and send unified customer data to 700+ pre-built integrations.
How to access Functions
Functions is available by default as part of Twilio Connections to help you unlock additional value from your CDP. Check with your workspace owner to manage access.
Pricing information
Find the right plan for your team to power personalized customer experiences at scale.


Resources to help get you started
Docs
Functions documentation
Get started with our handy documentation that covers everything you need to implement Functions in your workspace.
Support
Community
The Segment Community is a space for users to ask questions, share best practices, and connect with others to get the most out of Segment.
Recipe
Sending Personalized SMS with Functions
Send an SMS with Twilio on each page view using Segment’s JavaScript source and a serverless function.
Start building with Functions today.
Your customer data should work the way you need it to. With Segment Functions, you can customize every data flow, integrate any API, and protect sensitive data—all without managing infrastructure.

