Skip to main content

Mastering Onboarding: Didit's State Machine for Complex KYC

Effectively managing complex onboarding flows, especially for KYC and identity verification, is a significant challenge for businesses. Didit's state machine library empowers organizations to design, implement, and orchestrate.

Mastering Onboarding: Didit's State Machine for Complex KYC

Contents

In this guide

Jump to the part you need.

Orchestrated Workflows are Essential: Modern identity verification demands dynamic, multi-step processes that adapt to user input and risk profiles, moving beyond static, linear checks.

Complexity Requires State Management: Managing the transitions, conditions, and outcomes of each step in a verification journey necessitates a robust state machine approach to ensure accuracy and prevent errors.

No-Code and Low-Code Solutions Accelerate Development: Visual builders and API-driven generation for verification links dramatically reduce development time and effort, allowing businesses to deploy complex flows rapidly.

Didit Offers Unparalleled Flexibility: With its modular, AI-native platform, Didit provides both template-based simple modes and advanced visual workflow builders for designing and executing any identity verification process, from basic KYC to intricate AML screening, all while offering Core KYC and no setup fees.

The Challenge of Complex Onboarding and KYC

In today's digital landscape, user onboarding is far more than just signing up. For many businesses, particularly those in regulated industries like finance, gaming, or healthcare, it involves a series of critical identity verification (IDV) and Know Your Customer (KYC) checks. This often includes ID Verification, Passive & Active Liveness detection, 1:1 Face Match, Proof of Address, and AML Screening. Each of these steps can have multiple outcomes, requiring different subsequent actions. A user might successfully pass a document scan but fail a liveness check, or their identity document might require manual review. Managing these intricate paths, ensuring compliance, and providing a smooth user experience is a significant challenge.

Traditional approaches often involve brittle, hard-coded logic that becomes unmanageable as requirements evolve. Any change in regulation or business policy can lead to extensive development work, delaying market entry and increasing operational costs. The need for a flexible, scalable, and intelligent system to orchestrate these complex onboarding flows is paramount.

The Power of State Machines in Identity Verification

A state machine is a mathematical model of computation. It's an abstract machine that can be in exactly one of a finite number of states at any given time. The machine changes from one state to another when initiated by a triggering event or condition; this is called a transition. In the context of identity verification, a state machine provides a robust framework for defining and managing the entire user journey.

Imagine a user onboarding process: they start in an 'Unverified' state. After submitting their ID, they might transition to an 'ID_Submitted' state. If the ID is valid, they move to 'Liveness_Required'. If liveness passes, they go to 'AML_Screening'. Each successful step is a transition, and each failure or edge case (like a document needing review) leads to a different state (e.g., 'Manual_Review_Required'). This structured approach ensures that every user interaction and verification outcome is accounted for, providing clarity, consistency, and an auditable trail.

Didit's platform leverages this state machine paradigm to build its Orchestrated Workflows. By defining states and transitions visually, businesses can create highly sophisticated yet manageable verification paths. This is crucial for maintaining compliance, especially with dynamic regulations, and for optimizing the user experience by guiding users through the necessary steps efficiently.

Didit's Orchestrated Workflows: A No-Code and Low-Code Solution

Didit's Orchestrated Workflows provide the ultimate solution for building and managing complex identity verification journeys. We offer two distinct approaches to cater to different needs:

1. Simple Mode: Template-Based Builder: For those who need to get up and running quickly, Didit provides pre-built templates. You can select a template, toggle features on or off, and instantly deploy a robust verification flow. This is ideal for common use cases like basic KYC or age verification for online services, leveraging Didit's Age Estimation product.

2. Advanced Mode: Visual Workflow Builder: For more intricate scenarios, Didit's no-code visual builder allows you to design custom state machines. You can drag and drop nodes representing different verification steps (e.g., ID Verification, Passive & Active Liveness, AML Screening) and define the conditions for transitions between them. This empowers businesses to create highly tailored flows that adapt to specific risk policies, regional regulations, or user segments. For instance, a high-risk transaction might trigger additional AML Screening or Proof of Address checks, while a low-risk one might only require basic ID Verification and a 1:1 Face Match.

Both modes significantly reduce the need for extensive development, allowing businesses to launch comprehensive verification processes in hours, not weeks. Didit handles the entire user-facing experience, state management, and conditional steps, abstracting away the underlying complexity.

Once a workflow is designed in the Didit Business Console, launching it for end-users is incredibly simple through Verification Links. A Verification Link is a secure, unique URL that directs your user to a verification flow hosted entirely by Didit. This means zero frontend development for your team.

There are two primary ways to generate these links:

1. No-code Generation (via Business Console): From the Didit Business Console, you can manually create a verification session for a user. You select the desired workflow, optionally add vendor data (like an internal user ID), and Didit instantly generates a unique URL and QR code. This is perfect for manual onboarding processes, customer support, or quick tests.

2. Low-code Generation (via API): For automated integration into your application, you can generate verification links via a single API call to the /v3/session/ endpoint. By providing the workflow_id and any relevant vendor_data, your system receives a unique session URL. This enables you to seamlessly embed verification into your existing onboarding funnels, sending links via email, SMS, or within your app.

Didit's modular architecture means these links can trigger any combination of identity checks, from ID Verification to Phone & Email Verification, ensuring a comprehensive and secure onboarding experience. Real-time results are delivered via webhooks, keeping your system updated on the user's progress and final verification status.

How Didit Helps

Didit stands out as the AI-native, developer-first identity platform designed to simplify complex onboarding. Our state machine-driven Orchestrated Workflows are at the core of this capability, offering unparalleled flexibility and control. With Didit, you can:

  • Design Any Workflow: Whether it's a simple age gate using Age Estimation or a multi-stage KYC process involving ID Verification, Passive & Active Liveness, 1:1 Face Match, and AML Screening, Didit's visual builder allows you to define every step and transition.
  • Accelerate Time-to-Market: Leverage our no-code and low-code options like template-based workflows and API-generated Verification Links to deploy robust verification processes in record time, eliminating the need for extensive frontend development.
  • Ensure Compliance: Easily adapt your onboarding flows to meet evolving regulatory requirements by modifying your state machine in the Business Console, ensuring continuous compliance for anti-money laundering (AML) and other mandates.
  • Optimize User Experience: Guide users through personalized verification journeys, reducing friction and abandonment rates by only requesting necessary information and adapting to verification outcomes.
  • Benefit from AI-Native Intelligence: Our platform is built with AI at its core, constantly improving the accuracy and efficiency of all verification steps, from OCR for ID Verification to deepfake detection in Liveness.
  • Start for Free: Didit offers Core KYC, allowing you to begin verifying identities immediately without upfront costs or setup fees. Our modular architecture ensures you only pay for what you use, scaling with your business needs.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.