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.

Diagram showing Twilio Segment API code integrating with platforms like Apple, Google Cloud, Slack, and more.

Build smarter workflows—No heavy lifting required

Data workflows that are smarter, safer, and more flexible.

  • Flowchart

    Customize data flows

    Transform, enrich, or filter event data to tailor what gets sent to downstream tools for more targeted and personalized engagement opportunities. 

  • Network

    Integrate each and every API

    Unlock custom sources and destinations—even those not natively supported in the catalog.

  • Laptop computer with security lock

    Protect sensitive data

    Implement data masking, encryption and decryption, improved PII data handling, and tokenization to ensure only the right events and properties are sent where they’re needed through logic you control.

  • Shining stars

    Build and optimize with AI

    Generate complete Functions in minutes from natural language prompts, and optimize existing Functions with AI recommendations for improvement.

  • Browser with code terminal cursor

    Develop without the sweat

    Functions makes life easier for developers with testing, version control, and reusable code to save time, collaborate, and experiment freely.

  • Database

    Serverless and effortless

    No need for separate infrastructure—Twilio Segment runs Functions for you so you don’t have to worry about provisioning additional server space.

How Functions works

Go from custom idea to live data flow in minutes—without the complexity of traditional development.

Flowchart showing steps in a delivery attempt and order completion process with JSON and code snippets.

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.

Diagram showing data flow from Sources to Functions to Destinations with connected lines.

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.

Woman with shoulder-length brown hair, wearing a business suit, standing against a red background.