Skip to main content

Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI

Workflow preview

Workflow preview
100%
Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI  preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI Target Audience This workflow has been built for those who require a form to capture as much data as possible as well ...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.form, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.splitout, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Chris Carr.

Original n8n.io source

1.1 Workflow description

Title
Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI
Workflow name
Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI

Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI

Target Audience

This workflow has been built for those who require a form to capture as much data as possible as well as the answers to predefined questions, whilst optimising the user experience by avoiding asking redundant questions.

Use Case

When creating a form to capture information, it can be useful to give the user an opportunity to input a long answer to a large, open-ended question. We then want to drill down to answer specific questions that we require the answer to. When doing this, we don't want to ask duplicate questions. This particular scenario imagines an AI consultancy capturing leads.

What it Does

This workflow requires users to input basic information and then answer an open ended question. The specific questions on the next page will only be those that weren't answered in the open-ended question.

How it Works

  1. The open-ended question (and relevant basic information) is analysed by an LLM to determine which specific questions have not been answered. Chain-of-thought reasoning is utilised and the output structure is specified with the Structured Output Parser.
  2. Those questions that have already been answered are filtered out nodes. The remaining items are then used to generate the last page of the form.
  3. Once the user has filled in the final page of the form, they are shown a form completion page.

Setup

  1. Add your OpenAI credentials
  2. Go to the Get Basic Information node and click Test Step
  3. Complete the form to test the generic use case
  4. Modify the prompt in Analyse Response to fit your use case

Next Steps

  • Add additional nodes to send an email to the form owner
  • Add a subsequent LLM call to analyse the form response - those that are qualified should be given the opportunity to book an appointment

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Clarification Questions

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 3 - Get Basic Information

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 4 - Get Business Overview

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 5 - End Form

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 7 - Remove Already Answered Questions

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 8 - Analyse Response

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 9 - Split Out Analysis

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 10 - Prepare For Form Generation

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Aggregate For Form Generation

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI
Complexity advanced
Nodes 19
Categories Lead Generation, AI Summarization
Author Chris Carr
Published 02 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3062/3062.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI do?

Avoid Asking Redundant Questions with Dynamically Generated Forms using OpenAI Target Audience This workflow has been built for those who require a form to capture as much data as possible as well ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.