01 - Overview
Flagright's Zendesk integration connects a customer's Zendesk instance to Flagright's case management platform, so that suspicious activity identified in support tickets can be investigated and escalated without an agent needing to switch systems. The integration supports two independent flows, which can be enabled together or separately depending on the customer's use case.
Zendesk → Flagright
Flagright ingests tickets from the customer's Zendesk instance and links them to the matching user profile in Flagright, using a shared user ID field. When a ticket is flagged as suspicious, typically via a custom ticket field or tag, Flagright automatically creates an alert for review, removing the need for a support agent to file a separate report and for the compliance team to work out of a second tool.
Flagright → Zendesk
In the reverse direction, Flagright can create a Zendesk ticket automatically when a rule based alert fires, for example a transaction exceeding a $10,000 threshold. This is commonly used to route Requests for Information (RFIs) to a team that works exclusively out of Zendesk, using configurable templates and placeholders.
Note: This flow creates a full external Zendesk ticket rather than an internal note. |
02 - Customer-Side Setup: User ID Field Mapping
Before Flagright can match Zendesk tickets to the correct user, the customer must expose a shared identifier, a User ID, on their Zendesk user profiles. This is a one time setup.
Step 1: Create a Custom Field for UID
In Zendesk Admin Center, go to People → Configuration → User Fields, then click “Add Field.”
Setting | Value |
Type | Text |
Label | User ID (or the customer's preferred label) |
API Field Key | e.g. external_uid, crm_id, internal_reference |
Note: More than one User ID can be mapped to a single Flagright user. |
Step 2: Input the Field Key into Flagright
In the Flagright Console, during integration setup, provide the exact API field key configured in Step 1. This tells Flagright which field to extract from each Zendesk user object when mapping tickets to the corresponding user record in Flagright.
Step 3: Populate the UID Field on Zendesk User Profiles
The customer must ensure the custom field is populated for all relevant Zendesk users and kept up to date as users onboard or their IDs change. This can be done manually or via the Zendesk Users API:
Note: Unmatched tickets are not silently dropped, but they also do not create a case automatically. See Section 06 for how unmatched tickets are handled. |
03 - Connecting Zendesk to Flagright
Once the UID field exists on the customer's side, the connection itself is configured from the Flagright Console.
Enter the customer's Zendesk domain in the Flagright Console add-on settings.
Provide the API field key from Section 02 so Flagright knows which field to read for user matching.
If configuring a new sandbox tenant, set the CRM type to Zendesk under Console → Settings.
Once connected, Flagright begins syncing tickets from Zendesk into user profiles. Ticket sync follows an all or nothing model by default; there is no option to filter which tickets are ingested by tag or type.
Detail | Value |
Sync frequency | ~ 10 mins |
Historical tickets | Existing ticket backlog is ingested on first connection |
Filtering | All tickets sync by default |
Tip: Connect the Flagright Sandbox to the customer's Zendesk Sandbox first, and validate user ID matching there before enabling the connection in production. |
04 - Creating the Suspicious-Activity Ticket Field in Zendesk
Connecting Zendesk to Flagright only enables ticket ingestion. It does not, by itself, decide which tickets should become cases. That decision is driven by a custom ticket field that support agents set to flag a ticket as suspicious, in the same way Section 02 used a custom user field for identity matching.
Target Workflow
A support agent checks a “Suspicious Activity” field on a Zendesk ticket. The ticket, including that field's value, syncs into Flagright on the next poll. A Flagright rule evaluates the field and creates an alert for the linked user, surfaced as a case the compliance team investigates entirely within Flagright.
Creating the Field
In Zendesk Admin Center, create a new ticket field under Objects and Rules → Tickets → Fields (menu labels can vary slightly by Zendesk plan), then click “Add Field.”
Choose a field type such as Checkbox (recommended for a simple yes or no suspicious activity flag) or Dropdown (if multiple categories are needed).
Give it a clear label (e.g. “Suspicious Activity”) and note the field's API key, since this is what will be referenced on the Flagright side in Section 05.
Optionally, pair the field with a Zendesk macro so agents can apply it in one click rather than navigating to the field manually. This is a convenience on the Zendesk side and is not required for the integration to function.
Tip: Ticket fields are usually easy to create in both sandbox and production Zendesk environments. Confirm the field type and API key match exactly between the two, since a mismatch here can cause tickets not to sync as expected. |
Tickets that did not have the field set when first created will still be picked up on a later sync if the field is set afterward. The field's current value is what matters at each sync, not the ticket's original state.
05 - Configuring the Case-Creation Rule in Flagright
This is the step Flagright refers to as rule configuration. It is a rule inside the Flagright Console, not a webhook or trigger on the Zendesk side. Flagright does not accept inbound webhook calls from third party systems, including Zendesk; all Zendesk data reaches Flagright through the polling connection described in Section 03. The rule below is what turns a synced ticket into a case.
Step 1: Basic Details
In the Flagright Console, go to Rules and click Create scenario to open the Scenario Builder. Set Rule Type to CRM ticket, a rule type that evaluates CRM ticket properties linked to a Flagright user and runs whenever a linked ticket is updated. Set Rule Nature (e.g. AML or Fraud, depending on how the customer classifies suspicious activity referrals), Rule Execution Mode (Real Time or Post Processing), and give the rule a clear name.
Rule type options in the Scenario Builder, including CRM ticket
Step 2: Rule Is Hit When (Variable Definition & IF/THEN Logic)
Add an Entity variable referencing the custom ticket field created in Section 04, selecting CRM ticket as the variable type. Once at least one synced ticket carries that field, it becomes available to select in the variable picker. Build a simple condition, for example: IF [Suspicious Activity ticket field] equals true THEN create alert.
The Entity variable dialog; select CRM ticket instead of CRM user shown here
Step 3: Alert Creation Details
Alert Creation Details works the same as for any other rule type; configure severity, routing, and assignment as needed. Save the rule, then choose to deploy it as a Live rule (in sandbox, to test end to end, see Section 07) or a Shadow rule (in production, to observe on real tickets before it starts generating live cases, see Section 08).
Alert Creation Details screen in the Scenario Builder
06 - Case Creation Logic & Matching Behavior
When the rule from Section 05 fires, it creates an alert. Flagright then checks the ticket against the user matching logic from Section 02: if a match is found, the alert is attached to a case for that user; if not, see Unmatched Tickets below.
An alert is generated only once, when the condition is first met for that ticket; a later update to the same ticket does not create a duplicate alert. If a ticket does not carry the flagged field when it first syncs, no alert is created; if the field is added later, the next fetch reads the updated value and creates the alert at that point.
Matched Tickets
Flagright extracts requester_id from the ticket, queries /users/{requester_id} from Zendesk, extracts the UID from user_fields using the configured field key, and attaches the alert to a case linked to that Flagright user.
Unmatched Tickets
If no matching user is found, for example the ticket was submitted by someone who is not yet a known Flagright user, or the UID field was not populated, the ticket does not convert into a case automatically. Plan to monitor an unmatched queue manually for these cases.
Anonymous / No Subject Cases
Cases in Flagright must be linked to a known user; creating a case with an unknown subject (no linked user) is not supported.
07 - Sandbox Testing & Validation
Before enabling the integration in production, validate the full flow end to end in a sandbox environment.
Connect the Flagright Sandbox to the customer's Zendesk Sandbox using the steps in Section 03.
Recreate the custom ticket field from Section 04 inside the Zendesk sandbox, and recreate the rule from Section 05 inside the Flagright Sandbox. Neither carries over automatically from production.
Create a test ticket in the Zendesk sandbox for a user with a populated UID field, and set the suspicious activity field.
Confirm the ticket syncs into Flagright, that the rule fires, and that a case is created and correctly linked to the test user.
Test the negative case, a ticket without a populated UID field, to confirm expected unmatched behavior.
Check the customer's Zendesk plan tier against Flagright's expected polling volume to confirm rate limits will not be a concern once live.
Note: Sandbox setup can be blocked if the person configuring it does not have Zendesk sandbox access. Confirm sandbox access is granted before starting this section. |
08 - Production Rollout
Once sandbox testing passes, migrating to production involves steps on both the customer side and the Flagright side.
Customer confirms approval to proceed to production.
Customer's Zendesk admin recreates the custom ticket field from sandbox into their production Zendesk environment, if it does not already exist there.
The customer recreates or promotes the rule from Section 05 into the production tenant. Deploying first as a Shadow rule to observe on live tickets before it starts generating real cases is recommended.
Deploying first as a Shadow rule to observe on live tickets before it starts generating real cases is recommended.
Flagright verifies the customer's ticket volume against platform rate limits before go live.
Once confident in the Shadow rule's behavior, promote it to Live. Monitor the first live cases closely for a short period to confirm matching and case creation are behaving as expected.