Update Audiences with a CSV
Use the CSV Uploader to add or update user profiles and set subscription states.
When you upload a CSV file, Twilio Engage adds new users and updates existing user profiles. Each CSV row corresponds to a user profile and columns to an identifier trait in your identity resolution configuration.
You can also set subscription states for each email and phone number that you upload in the CSV. Subscription states help you track which email addresses and numbers you have permission to market to.
Upload a CSV file
To upload a CSV file, navigate to Personas > Profiles and click Upload CSV.
1. Download your CSV template
Click Download Template to download a CSV template with identifier columns from your identity resolution configuration. Engage adds subscription columns next to email and SMS identifiers, where you can update subscription states for email addresses and phone numbers.
CSV files can only have a single email and phone identifier column. Include any additional email addresses or phone numbers for a user profile as a separate row.
Navigate to Personas > Settings and select the Identity Resolution tab to view or add identifiers in your Segment workspace.
2. Fill out your CSV file
Enter values for the identifiers in your CSV file. You can also set email and phone subscriptions using the
A few best practices to keep in mind as you fill out your CSV:
- Leave any unknown values blank to avoid bad data. Engage can create a user profile from a single identifier in your CSV.
- Enter phone numbers in your CSV in a format that’s consistent with your Segment space. For example, if existing profiles in your workspace are in E.164 format
+15555550123, enter numbers in your CSV using the same format
3. Upload your CSV file
Upload a CSV file to Twilio Engage in two ways:
- Drag and drop the CSV file in the dropzone.
- Click Browse to locate the CSV file.
Engage processes CSV rows sequentially. Column values, except for a blank subscription status, override previous values for a user profile.
A blank subscription status in the CSV doesn’t overwrite current email or phone subscription states in your Segment space.
4. Name your custom trait
Every time you upload a file, you have the option to add a custom trait to user profiles in the CSV. Use custom traits to help you create audiences or send messages to a specific group of users. You can also add an existing custom trait name from your Segment workspace to the list of users in the CSV file.
Custom traits display in the Custom Traits tab of a User Profile in the User Explorer.
View upload history
Use the Upload History page to view CSV file uploads in your workspace over the last 30 days.
Navigate to Personas > Profiles and click Upload History.
Select links to view CSV files and any associated error reports. View the status of the file upload and the custom trait name added to user profiles in the CSV upload.
Use error reports to fix invalid rows and quickly re-upload data.
From the Upload History page:
- Select the link in the Report column to download an error report CSV. All rows not present in the error report were processed successfully.
- Correct data in the invalid rows.
- Remove any extra columns such as
- Click Upload CSV and re-upload the file.
Set user subscriptions
Use the CSV Uploader to set subscription states for user email addresses and phone numbers.
Each user profile in a Segment workspace can have multiple email addresses and phone numbers, all with different subscription states.
For each CSV file, Engage adds:
email_subscription_statuscolumn next to the Email column.
sms_subscription_statuscolumn next to the Phone column.
sms_subscription_status columns, set subscription states for email and phone numbers with the following values:
subscribed: The user has actively subscribed.
unsubscribed: The user has actively unsubscribed.
did-not-subscribe: The user has provided their contact information but didn’t actively subscribe or unsubscribe.
- No subscription status (blank value): The user’s profile exists in Segment, but they haven’t explicitly provided their contact information, and no subscription information is available.
Only contact users that subscribe to your communications. View User Subscription States to learn more.
CSV upload limits
Please note the following limits as you upload CSV files to Twilio Engage:
- You can only upload .csv files.
- Files can’t be empty and must have at least one header and one row.
- You can’t have multiple columns with the same header.
- CSV files can’t contain extraneous column headers.
- Upload CSV files with up to 1 million rows (plus one header row).
- You can only upload one file at a time.
- The CSV file size can’t exceed 15 MB.
- If you upload the same email or phone number with different subscription states in a single CSV file, Engage doesn’t guarantee the subscription status result.
Only send messages to subscribed users. If a recipient deletes or flags an unwanted message as spam, inbox providers might start to filter your messages straight to spam folders. View more SendGrid delivery Best Practices to prevent email from going to spam.
This page was last modified: 30 Jun 2022
Twilio Engage Beta Support
Contact support with any questions or issues with the Twilio Engage Beta