How to Trigger Identity Verification in a Digital Journey

The Onfido SDK is responsible for capturing and uploading photos or videos. The Onfido automation processor can be added to a Digital Journey and further enhanced via Innovation Studio based on the customer's business needs.

Follow the below steps when adding this automation processor to your Digital Journey:

  1. In Innovation Studio, open the customer's form driven flow in the editor.
  2. Navigate to the form or form step where you wish to initiate the identity check.
  3. In the After Events tab, add code based on the model below:
    Copy
    var dfpHelper = ebs.importClientScript('FTOS.DFP');
    var componentName = 'FTOS_DFP_Onfido'; //name of the componentvar
    var recordId = formData.id;
    var flowSettingsName = formData.FlowSettings;
    var p = {};
    var accountApplicationId = recordId;
    p.accountApplicationId = accountApplicationId;
    p.toStatus = "OCR in Progress";
    ebs.callActionByName("myAccountApplication_BusinessWorkflow", p, function(e) {
        var params = {};
        params.flowSettingsName = flowSettingsName;
        params.processorSettingsType = 'Onfido';
        params.processorSettingsName = 'Onfido_Settings';
        ebs.callActionByName("FTOS_DFP_FlowProcessorSettingsByType", params, function(f) {
            var processorSettingsId = f.UIResult.Data.ProcessorSettingsId;
            dfpHelper.loadComponent(componentName, processorSettingsId, recordId, false);
        });
    });
  4. Click the Save and Close button at the top right corner to save your digital journey.