Data Sharing via Widget

Here is a guide to pre-filling authentic application question fields through our embedded widget

You can pre-fill data about your customer by passing in their information to the prefillData key of the widget configuration:

authenticWidget.init({
  insurancePortal: {
    url: "https://<tenant-name>.<environment>.authenticinsurance.com",
  },
  customerId: "unique_cid1",
  prefillData: {
    lead: {
      email: "customer@email.com",
      stateCodes: ["OH"],
    },
    responses: {
      exposures: [{
        id: "1",
        exposureName: "business_location",
        fieldValues: {
          "ADDRESS": "100 street, UNIT 2, city, OH 33333, US",
        }
      }],
      questions: {
        "BUSINESS_LEGAL_NAME": "Customer Business Name",
      }
    }
  }
});

The complete interface for PrefillData is shown below:

interface PrefillData {
  lead?: {
    email?: string;
    businessClassCode?: string;
    stateCodes?: string[];
    productIds?: string[];
  };
  responses?: {
    exposures?: Array<{
      id: string;
      exposureName: string;
      fieldValues: Record<string, string>;
    }>;
    questions?: Record<string, string>;
  };
};

Each exposure is uniquely identified by an ID. This can be as simple as the index of the element in the array or a unique UUID.

Please visit the Commonly Prefilled Questions section to find the full data dictionary of the fields that can be passed in. Specifically, please see the first table, Fields for Widget Integration.

Last updated