Skip to content
NewNew: give every check result its own path and end each one in approve, manual review or reject.
myid

Build a conditional KYC flow: one route for every outcome

In the flow builder's conditional mode, every outcome of every check has its own route and ends in approved, manual review or rejected. This guide builds a fintech flow step by step.

By myid team3 min read

A verification flow is the set of checks a customer goes through in order. The myid flow builder lets you arrange them without code. This post covers conditional mode, where every outcome has its own route.

Simple or conditional mode

FeatureSimple modeConditional mode
ShapeAn ordered list of stepsA graph with a start, steps and ends
Successful outcomeNext stepWherever you connect it
Warning outcomeManual reviewWherever you connect it
Failed outcomeRejectedWherever you connect it

If everything is linear, simple mode is enough. When you want, say, a fallback check after an inquiry fails, you need conditional mode. You can turn a simple flow into a conditional one at any time and its routes stay the same.

Parts of a conditional flow

  • Start: every flow has exactly one.
  • Service step: one check from the catalog, such as a Shahkar inquiry or face match. Each service has its own outcomes and each outcome has its own exit.
  • End: approved, manual review or rejected.

Example: a fintech sign-up flow

Say customers sign up with a mobile number and must be verified before their first transaction. We build this flow:

  1. Shahkar inquiry. Match goes on, No match goes to rejected, Inquiry failed goes to manual review.
  2. Civil registry inquiry with national code and birth date. Deceased person is no match is on by default.
  3. Face match with the civil registry. Match goes on, Suspicious goes to manual review, No match goes to rejected.
  4. Liveness check in passive mode. A successful outcome reaches the approved end.

Errors before you publish

The flow builder checks the graph while you build it, and a flow with errors cannot be published. Some of the rules:

  • Every outcome of every step is connected.
  • Each service's prerequisite comes before it on every path; face match without an identity document is refused.
  • The flow has no loops and every step can be reached from the start.
  • Each service is used once and its settings are valid.
  • The service is available to your company.

Running it and getting the result

Once published, you create a verification through the API and give the customer its secure link. The customer completes the steps on the verification page and the server picks the route from your graph. When the customer reaches an end, the result reaches your system by webhook. See the developers page for details.

Cost follows the route: every check that runs is deducted from the company wallet. Checks that are not on the customer's route never run and cost nothing.

Does conditional mode need code?

No. You drag steps from the catalog onto the graph and connect each outcome to the next step or an end. Each service's settings are on the same screen.

Can I turn a conditional flow back into a simple one?

Only when the graph is a single chain and every non-successful outcome goes straight to an end. Otherwise the flow builder refuses, so no route is lost.

What happens to a customer sent to manual review?

The verification ends with the manual review result, and that result reaches your system by webhook. Your team looks at the case and decides about the customer in your own system.

Build your first verification flow today

Sign up and start from the ready flow for your industry. Questions? Talk to our sales team.

Build a conditional KYC flow without code · myid