Klevr Product Documentation logo

Klevr Forms 2.0 - Import from PDF

The Klevr Forms SurveyJS Editor now includes an Import from PDF action that uses an AI-assisted flow to generate a SurveyJS form from a PDF document.

Feature Overview

The Klevr Forms SurveyJS Editor now includes an Import from PDF action that uses an AI-assisted flow to generate a SurveyJS form from a PDF document.

This feature is designed for structured documents such as:

  • application forms
  • questionnaires
  • intake forms
  • surveys with clear section and field layout

The generated result is inserted directly into the SurveyJS Form Editor and, when valid, saved back to the form record.

How it works

When a user selects Import from PDF in the Survey Editor:

  1. The editor checks whether the current survey already contains content.
  2. If the survey is not empty, the user is warned that the import will replace the existing survey structure.
  3. The user selects a PDF file from their device.
  4. The editor validates that the file is:
  5. a PDF
  6. 8 MB or smaller
  7. The editor sends the file to a configured Flow endpoint.
  8. The Flow returns SurveyJS JSON.
  9. The editor validates the returned JSON.

Setup

1
Enable the Power Automate flow

To set up the feature, you first need to enable the Klevr IQ - Pdf to Json Power Automate flow. You can find it under Cloud Flows in the Klevr Portal Code solution. Navigate to the flow, and click on 'Turn On' if required.

Enable Pdf to Json Power Automate Flow

Enable Pdf to Json Power Automate Flow
2
Copy the trigger URL

Next, open the flow by clicking on "Edit Flow" and copy the HTTP POST trigger URL

Copy the HTTP POST trigger URL

Copy the HTTP POST trigger URL
3
Paste the URL into the environment variable

Paste the URL into the pdfToSurveyFlowTriggerURL value in the klevr_SurveyEditorConfiguration environment variable.

Paste into klevr_SurveyEditorConfiguration Environment Variable.

Paste into klevr_SurveyEditorConfiguration Environment Variable.
4
Open the Survey Editor Designer tab

Open the Survey Editor in editable mode and use the designer tab. The Import from PDF action is only shown when the editor is on the Designer tab.

Survey Editor Designer Tab

Survey Editor Designer Tab

Usage

Import a PDF

1
Open the Designer tab

Open the Survey Editor for the form you want to update and switch to the Designer tab.

2
Select Import from PDF
3
Review the warning and guidance

Review the warning and AI guidance messages.

4
Choose a PDF file
5
Wait for generation

Wait while the survey is generated.

6
Review the generated survey

Review the generated survey carefully before publishing or sharing it.

Import from PDF Confirmation Dialog

Import from PDF Confirmation Dialog

If the current survey already contains content

If the survey is not empty, the editor prompts before continuing.

  • Choosing Cancel keeps the existing survey unchanged.
  • Choosing OK replaces the current survey structure with the imported result.

Rewrite Confirmation Dialog

Rewrite Confirmation Dialog

If the generated output is valid

When the returned SurveyJS JSON is valid:

  • the editor updates the survey definition
  • the survey is saved automatically
  • a success message is displayed

If the generated output is invalid

When the output cannot be validated:

  • the editor shows an error notification
  • the editor switches to the JSON tab
  • the generated JSON is inserted there for manual correction

This makes it easier to review or repair partially correct output.

Troubleshooting

The feature says it is not configured

Check the klevr_SurveyEditorConfiguration environment variable and make sure it includes a valid pdfToSurveyFlowTriggerURL value.

The PDF is rejected

Confirm that:

  • the file is actually a PDF
  • the file size is under 8 MB

The Flow returns an error

Check the Flow run history and verify that the flow completed successfully and returned a usable result.

The editor shows the JSON tab after import

This means the imported survey was generated, but validation failed. Review the JSON and correct any invalid SurveyJS properties or structure.

Note

Because the generated form is AI-assisted, the result should always be reviewed before use.

Last updated on