Customer Service data

This page covers Customer Service Management Platform data (CSMs) and Lexer. Leveraging Lexer’s Custom Events API, brands can write Customer Service Management ticket data from platforms like Zendesk, Gorgias, and Freshdesk into the Lexer CDXP.

Introduction

Customer Support Data, such as service tickets, are used to enrich customer profiles in Lexer with additional events and details of recent customer service enquiries.

The data flows from CSMs via an Integration Automation Platform (IAP) like Zapier or Mulesoft  into Lexer. Leveraging the 3rd party to transform the CSMs internal structure into the required format for Lexer.

Once provided to Lexer, users can segment profiles, do deeper analysis, and activate profiles and data into external systems leveraging the CSM data as part of the profile.

Use Cases

A short list of example use cases include: 

  • Expose customer service engagements in Lexer’s clienteling and engagement tools like Serve and Contact
  • Create segments based on customer service history (e.g., frequent complainers, resolution time)
  • Target retention campaigns at customers showing service-related churn signals
  • Identify VIP/high-value customers for special service handling
  • Enable revenue attribution from service interactions to purchases

High Level Workflow

  1. Customer submits support request through available channels
  2. CSM platform fires webhook to IAP with ticket data
  3. IAP formats ticket into Lexer schema and makes API request to Lexer (Additional API requests on CSM may be required to collate all required data)
  4. Lexer processes, enriches, and presents ticket in the CDXP

The above process is repeated for every response or change on the ticket in the CSM - leading to one ticket for each conversation inside of Lexer.

Once within Lexer, the ticket data can be used as events and attributes on profiles as usual.

Implementation

Tickets are available within Lexer as Custom Events, and require a small amount of configuration by the Lexer team before being available. Together with the Lexer Solutions team, you will help follow this onboarding process:

Task Description Responsible
Custom event creation Lexer enables the Customer Service Ticket event in the CDXP as per the schema below. Lexer
Dataset creation Lexer creates a Dataset for the Customer Service Ticket events to be stored, and provides the Dataset ID to. Lexer
Create API key The client creates an API key for the workflow using Lexer > Integrate > API Key. Client
Setup workflow The client configures the workflow as described earlier - transposing the ticket data from the CSM into Lexer’s schema. Client
Test and UAT The client uses the Dataset and Log tools within Lexer to assess data is flowing correctly, with the help of the Lexer Solutions team. Lexer and Client
Setup enrichments Once confirmed that data is flowing correctly, Lexer will enable the enrichments as the final stage. Lexer
Deploy The client deploys the workflow into production, and processes any required backloading for the solution. Client

Event format

Javascript
{
  "ticket_id": "string",             // CSMs ticket ID (required)
  "action_at": "2024-11-06T...",     // ISO timestamp of ticket creation (required)
  "link": {                          // Customer Identifier, (only one required)
    "email": "aaron@gmail.com",      // May be phone for sms tickets (preferred)
    "mobile": "+61404000000",        // May be phone for sms tickets
  },
  "title": "Faulty seam",            // Ticket subject/title
  "ticket_url": "https://...",       // deep link to the ticket
  "description": "Jacket has...",    // a ticket descrioption for presentation to users
  "timeline": {
    "created_at": "2024-11-06T...",  // ISO timestamp of ticket creation (required)
    "closed_at": "2024-11-06T...",   // ISO timestamp of ticket closure
    "duration": 120,                 // Total minutes until closure
    "reply_time": 23,                // minutes between replies
    "first_reply_time": 19,          // minutes until the first reply
  },
  "channel": {
    "type": ["email"],                // e.g., "email", "chat", "web_form", "api"
    "name": ["help@mybrand.com"]      // email used in communication
  },
  "status": "open",                   // the status value of the ticket
  "tags": ["complaint", "ecommerce"], // array of string tags on the ticket
  "agents": ["Aaron W", "Matt M"],    // array of agent names on the ticket
  "satisfaction_score": "good"        // satisfaction score if available
}

Note that only the Ticket ID, Action At, created_at, and Link details are required, all other fields are optional but we recommend including as much detail as possible to ensure the highest success in the use cases.

Many platforms, like Zendesk, offer ticket metrics which can be used to populate the timeline object.

Note that this isn’t intended to be a complete copy of all the ticket details - particularly the content of the conversation, but captures enough information via tags, status, title and description to deliver upon the use cases.

Providing a ticket_url will allow users with access to click through to the CSM platform to engage and interact as needed.

Although it is possible to modify the event schema to support custom fields or other use cases, we advise to use this as the boilerplate and introduce new fields as needed after consultation with the Lexer team.

API

Lexer accepts the event payload as an array of 1 to 1,000 event objects to an API endpoint like this: https://api.lexer.io/v1/datasets/{dataset_id}/customer_support_ticket. The actual URL will be provided once the event and related dataset is created.

Further details of authentication and error handling can be found here: https://learn.lexer.io/api-documentation#schema/purchase_event

Enrichments

Event Search

The following event properties will be searchable as Events within Lexer’s Segment Builder and other tools:

  • Title
  • Created At
  • Closed At
  • Duration
  • Reply Time
  • First Reply Time
  • Channel Type
  • Channel Name
  • Status
  • Tags
  • Agents
  • Satisfaction Score

Note that Lexer will only expose the last 120 days of ticket data as events in the Segment Builder.

Attributes

Lexer will enrich profiles with the following attributes to aid in analysis and activation:

  • Last Ticket Date: The date of the last ticket date
  • Last Satisfaction Score: The last satisfaction score provided by the profile
  • Ticket Count: The number of tickets created by the profile
  • Channel Types: The channels the profile has engaged with
  • Tags: The tags used on tickets opened by the profile
  • Agents: The agents the profile has engaged with

Backloading Data

Once the data flow of new tickets is operational via CSM > IAP > Lexer, backloading of data can begin if required for the solution.

However, Lexer only exposes the last 120 days of ticket events in the segment builder due to the half-life of value on historical ticket data.

The APIs and described event schemas can be used to backload the historical data as needed.

Lexer to CSM platforms

In this document we explored getting CSM ticket data into Lexer, but not sending Lexer data to CSM platforms.

Lexer offers a handful of solutions that depend on the CSMs ability to ingest data which include:

  • Profile Read API: A low latency API to read profile information for web personalisation and CSM use cases.
    Learn more about Profile Read API here: https://learn.lexer.io/docs/profile-read-api 
  • Lexer Activate: Export profiles and attributes via SFTP or similar that are pushed into the CSM
    Learn more about Activations here: https://learn.lexer.io/docs/activate-overview 
  • Lexer Serve: Embed our clienteling tool into the CSM using iFrames and WebViews.
    Embedding capabilities are coming soon and available in early beta. Please contact your Lexer representative to explore early access.
  • Engagement Webhooks: To push messages from Lexer Contact and Lexer Serve into the CSM to ensure they remain a source of truth on customer conversation.
    Embedding capabilities are coming soon and available in early beta. Please contact your Lexer representative to explore early access.
Updated:
April 26, 2025
Did this page help you?
Thank you! Your feedback has been received!
Oops! Something went wrong while submitting the form, for assistance please contact support@lexer.io
Welcome to Lexer!
Fundamentals
Getting started
Javascript Tag basics
Data Platform
Javascript Tag
Data in the CDXP
Fundamentals
Getting started
Our glossary
Fundamentals
Getting started
Integrations overview
Fundamentals
Integrations
Onboarding data with Lexer
Data Platform
Data Onboarding
Data onboarding process
Data Platform
Data Onboarding
Importing CSV data
Data Platform
Data Onboarding
Importing JSON data
Data Platform
Data Onboarding
Secure file uploads
Data Platform
Data Onboarding
SFTP uploads and exports
Data Platform
Data Onboarding
AWS S3 uploads and exports
Data Platform
Data Onboarding
Lexer's attributes
Data Platform
Data Types
Predictive attributes
Data Platform
Data Types
Lexer API overview
Data Platform
Developer APIs
Understanding APIs
Data Platform
Developer APIs
API authentication
Data Platform
Developer APIs
API rate limits
Data Platform
Developer APIs
Profile read API
Data Platform
Developer APIs
Activity overview
Insights
Activity
Team report
Insights
Activity
Cases report
Insights
Activity
NPS report
Insights
Activity
Listen overview
Insights
Listen
Searching in Listen
Insights
Listen
Tier filters
Insights
Listen
Saved dives
Insights
Listen
Boolean search
Insights
Listen
Listen CSV exports
Insights
Listen
Visualize overview
Insights
Visualize
Curate image feed
Insights
Visualize
Respond overview
Engagement
Respond
Identity Resolution
Fundamentals
Getting started
My account
Fundamentals
Setup
Manage team
Fundamentals
Setup
Group permissions
Fundamentals
Setup
Classifications
Fundamentals
Setup
Out of the box segments
Fundamentals
Setup
Lexi AI
Fundamentals
Getting started
Browser guide
Fundamentals
Security
Corporate networks
Fundamentals
Security
Multi-factor authentication
Fundamentals
Security
Single sign-on
Fundamentals
Security
Lexer's ultimate troubleshooting guide
Fundamentals
Troubleshooting
Troubleshooting tech issues
Fundamentals
Troubleshooting
Troubleshooting integrations
Fundamentals
Troubleshooting
Troubleshooting Activate
Fundamentals
Troubleshooting
Troubleshooting Respond
Fundamentals
Troubleshooting
Help! My data is missing from the Hub
Fundamentals
Troubleshooting
Lexer data specification
Data Platform
Data Specification
Customer data specification
Data Platform
Data Specification
Commerce data specification
Data Platform
Data Specification
Marketing data specification
Data Platform
Data Specification
Compliance data specification
Data Platform
Data Specification
Data formatting and validation
Data Platform
Data Specification
Product imagery
Data Platform
Data Specification
Currency conversion
Data Platform
Data Specification
Dataset management
Data Platform
Data Management
Getting started with Logs
Data Platform
Data Management
Respond chatbot API
Data Platform
Developer APIs
Activity API
Data Platform
Developer APIs
Lexer Forms overview
Data Platform
Forms
Form builder workflow
Data Platform
Forms
Form conditional logic
Data Platform
Forms
Form settings
Data Platform
Forms
Form segmentation
Data Platform
Forms
Form response analysis
Data Platform
Forms
Form hidden fields
Data Platform
Forms
Form attribute mapping
Data Platform
Forms
Javascript Tag technical guide
Data Platform
Javascript Tag
Javascript Tag use cases
Data Platform
Javascript Tag
Javascript Tag: Shopify Custom Pixel
Data Platform
Javascript Tag
CRM data
Data Platform
Data Types
Transaction data
Data Platform
Data Types
Email engagement data
Data Platform
Data Types
Experian data enrichment
Data Platform
Data Types
Customer Service data
Data Platform
Data Specification
GDPR and CCPA requests
Fundamentals
Compliance
File upload API
Data Platform
Developer APIs
Segment overview
Insights
Segment
Creating segments
Insights
Segment
Smart Search
Insights
Segment
Profile tab
Insights
Segment
Event Explorer
Insights
Segment
Attribute value types
Data Platform
Data Types
Compare segments
Insights
Compare
Compare attributes
Insights
Compare
Activate Overview
Engagement
Activate
Segment activations
Engagement
Activate
Event activations
Engagement
Activate
Activation field mapping
Engagement
Activate
Audience splits
Engagement
Activate
A/B splits
Engagement
Activate
Control group splits
Engagement
Activate
Inbox filtering
Engagement
Respond
Ignored Senders
Engagement
Respond
Forms in Respond
Engagement
Respond
Workflow states
Engagement
Respond
Bulk changes
Engagement
Respond
Scheduled replies
Engagement
Respond
Message templates
Engagement
Respond
Finding conversations
Engagement
Respond
Customer profiles
Engagement
Respond
Grouped messages
Engagement
Respond
Automation rules
Engagement
Respond
Redact messages
Engagement
Respond
Routing customer replies
Engagement
Respond
Interact with comments
Engagement
Respond
Respond workflow tips
Engagement
Respond
Contact Reporting
Engagement
Contact
Contact Queue Filters
Engagement
Contact
Contact WhatsApp Queues
Engagement
Contact
Schedule overview
Engagement
Schedule
Serve overview
Engagement
Serve
Installing Serve
Engagement
Serve
Contact in Serve
Engagement
Serve
Serve Messaging
Engagement
Serve
Serve user management
Engagement
Serve
Forms in Serve
Engagement
Serve
Configuring Serve
Engagement
Serve
Serve reports
Engagement
Serve
Serve Currency
Engagement
Serve
Serve POS QR Code
Engagement
Serve
Activate CSV export
Engagement
Activate
Track Overview
Insights
Track
Track Metric Tables
Insights
Track
Event Tables
Insights
Track
Lexer Product Recommender → Klaviyo Integration
Grow
Lexer Product Recommender → Klaviyo Integration
Where do your best customers live? Use geographic insights to maximize media spend and conversion
Grow
Where do your best customers live? Use geographic insights to maximize media spend and conversion
Suppression audiences: How to use them and maximize your media effectiveness
Enrich
Suppression audiences: How to use them and maximize your media effectiveness
Measure campaign effectiveness: Track your KPIs and report on campaign performance
Enrich
Measure campaign effectiveness: Track your KPIs and report on campaign performance
Converting prospects: Acquire customers from your current, engaged prospect base (and save your ad spend!)
Acquire
Converting prospects: Acquire customers from your current, engaged prospect base (and save your ad spend!)
Understanding customer intent: Effective message personalization for buyers who shop outside their gender
Grow
Understanding customer intent: Effective message personalization for buyers who shop outside their gender
Deepen customer understanding: Use third-party data to identify insights for personalized messaging and increased engagement
Grow
Deepen customer understanding: Use third-party data to identify insights for personalized messaging and increased engagement
Basket analysis: Increasing customer lifetime value through targeted product bundling
Grow
Basket analysis: Increasing customer lifetime value through targeted product bundling
Persona building: Personalize your messaging for maximum return on your campaign investments
Grow
Persona building: Personalize your messaging for maximum return on your campaign investments
Driving customer loyalty: Identify, keep, and grow your most loyal customers
Retain
Driving customer loyalty: Identify, keep, and grow your most loyal customers
Increasing customer lifetime value: Upselling strategies
Grow
Increasing customer lifetime value: Upselling strategies
Reactivating lapsed customers: Retention and growth
Retain
Reactivating lapsed customers: Retention and growth
Welcome offer strategies: Using the Hub for analysis
Acquire
Welcome offer strategies: Using the Hub for analysis
Creating customer forms: Best practices
Enrich
Creating customer forms: Best practices
Connecting your MarTech stack with Lexer!
Enrich
Connecting your MarTech stack with Lexer!
Identifying win-back customers using the Second Last Order: Date attribute
Retain
Identifying win-back customers using the Second Last Order: Date attribute
Understanding customers' purchasing habits: Order Sequence filter
Grow
Understanding customers' purchasing habits: Order Sequence filter
Maximizing customer communications in Respond
Retain
Maximizing customer communications in Respond
Using Product Recommendation in the Hub to encourage repeat purchases
Grow
Using Product Recommendation in the Hub to encourage repeat purchases
Encouraging customer loyalty using birthday campaigns
Retain
Encouraging customer loyalty using birthday campaigns
Increasing customer lifetime value: Converting your one-time buyers into two-time buyers
Grow
Increasing customer lifetime value: Converting your one-time buyers into two-time buyers
Collecting zero-party data using Lexer Forms
Enrich
Collecting zero-party data using Lexer Forms
Measuring your data over time with Track
Enrich
Measuring your data over time with Track
UTM Creation Guidelines
UTM Creation Guidelines
UTM Creation Guidelines
Brand Assets
Brand Assets
Brand Assets
GTM guide to creating marketing materials with Lexer
GTM guide to creating marketing materials with Lexer
GTM guide to creating marketing materials with Lexer
How to use the Lexer Form Builder
How to use the Lexer Form Builder
How to use the Lexer Form Builder
Explore our standard integrations
Explore our standard integrations
Explore our standard integrations
Operating a CDP Practice LP
Operating a CDP Practice LP
Operating a CDP Practice LP
LP Sales Enablement
LP Sales Enablement
LP Sales Enablement
Video Training Courses LP
Video Training Courses LP
Video Training Courses LP
Purpose and Mission
Purpose and Mission
Purpose and Mission
Brand & Marketing LP
Brand & Marketing LP
Brand & Marketing LP
Stage 3 - QBRs and Customer insights
Stage 3 - QBRs and Customer insights
Stage 3 - QBRs and Customer insights
Client Onboarding Journey
Client Onboarding Journey
Client Onboarding Journey
Start your CDP Practice
Start your CDP Practice
Start your CDP Practice
Lexer Messaging
Lexer Messaging
Lexer Messaging
Pain point conversations
Pain point conversations
Pain point conversations
Lexer Ideal Customer Profile & Positioning
Lexer Ideal Customer Profile & Positioning
Lexer Ideal Customer Profile & Positioning
Referral Partner Program Overview
Referral Partner Program Overview
Referral Partner Program Overview
Demo Hub Guide
Demo Hub Guide
Demo Hub Guide