Skip to content

An AI-native platform to create dynamic, conversational forms and surveys that replace traditional static forms with engaging chat interactions.

Notifications You must be signed in to change notification settings

Haseeb-Arshad/dialogflow-form

Repository files navigation

DialogFlow-Form

DialogFlow-Form: Create dynamic, AI-powered conversational forms and surveys that feel like chatting with a real person.

License: MIT

Transform your data collection process from static, impersonal forms into engaging, human-like conversations. DialogFlow-Form allows you to build forms using simple prompts, letting AI handle the flow and interaction, making the experience better for both creators and respondents.

Live Demo | View Source


The Problem with Traditional Forms

Traditional web forms are often rigid, boring, and lead to low completion rates ("form fatigue"). Users face walls of checkboxes and text fields, often dropping off before completing. The experience feels impersonal and tedious.

Our Solution: Conversational AI Forms

DialogFlow-Form reimagines the form experience. Instead of static fields, users interact with a chat interface that asks questions one by one, adapting based on previous answers. It feels less like filling out paperwork and more like a natural conversation.

Why does this matter? People engage more deeply when the interaction feels human. Respondents can express themselves naturally, and the AI intelligently guides the conversation, even asking follow-up questions for richer data.

Key Features (Implemented) ✨

  • 💬 Conversational UI: A clean chat interface presents questions naturally, one at a time.
  • 🧠 AI-Powered Interaction: Leverages AI (e.g., GPT models) to adapt questions, understand responses, ask relevant follow-ups, and maintain a friendly tone.
  • ✍️ Prompt-Based Creation: Simply write natural language prompts for your questions, and the AI helps structure the conversational flow.
  • 📊 Analytics Dashboard: Monitor form performance with insights into views, response counts, and completion rates.
  • 🎨 Form Personalization: Customize the look and feel of your forms.
  • ⚙️ AI Configuration: Fine-tune AI behavior (model selection, temperature/creativity, response length) to match your form's goals.
  • 📅 Form Scheduling: Set start and end dates for form availability.
  • ✅ Status Indicators: Easily track if forms are active, paused, or expired.

How the AI Works

DialogFlow-Form uses Generative AI at its core:

  1. Prompt-to-Conversation: You provide simple prompts (e.g., "Ask about their satisfaction with our service").
  2. AI Interpretation: The AI model interprets the prompt and formulates a natural-sounding question.
  3. Adaptive Dialogue: Based on the user's response, the AI can:
    • Ask pre-defined follow-up questions.
    • Dynamically generate clarifying or related questions.
    • Adjust the conversation flow based on branching logic (implicitly or explicitly defined).
  4. Customizable Behavior: Control the AI's creativity (temperature) and response verbosity (max tokens) to suit different types of surveys (e.g., focused research vs. casual feedback).

Screenshots

The hero section of DialogFlow-Form, sparking curiosity and action Hero Section

Crafting a form is as easy as writing a few prompts—AI does the heavy lifting. Form Creation

Personalization of the forms Form Personalization

Scheduling of the Forms Form Scheduling

Integrating AI into forms AI Integration Settings

A respondent’s view: engaging, human, and refreshingly simple. Respondent View

The dashboard: your hub for insights and control. Dashboard Analytics

Technology Stack (Example)

  • Frontend: Vue.js
  • AI: Integration with Large Language Models (e.g., OpenAI GPT series)
  • Styling: CSS Modules / Tailwind CSS (Specify as applicable)
  • Deployment: Vercel

Getting Started

  1. Clone the repository:
    git clone https://github.com/Haseeb-Arshad/dialogflow-form.git
    cd dialogflow-form
  2. Install dependencies:
    npm install
    # or
    yarn install
  3. Set up environment variables: Create a .env.local file in the root directory and add necessary environment variables (e.g., AI API keys):
    REACT_APP_AI_API_KEY=your_api_key_here
    # Add other variables as needed
    
  4. Run the development server:
    npm start
    # or
    yarn start
    Open http://localhost:3000 (or your configured port) to view it in the browser.

Coming Soon 🚀 (Future Roadmap)

I am constantly working to make DialogFlow-Form even more powerful and intuitive. Here's what's on the horizon:

Enhanced Form Creation:

  • Natural Language Form Setup: "Chat" with an AI assistant to build your form structure automatically.
  • AI Authoring Assistant: Get suggestions for questions, improvements, and flow logic as you build.
  • Template & Style Customization: More options for tone, branding, logos, and colors.
  • Preview and Simulation Mode: Test the respondent experience thoroughly before launching.
  • Collaborative Form Building: Real-time co-authoring for teams.

Richer Respondent Experience:

  • Dynamic Question Types: AI automatically selects the best input format (multiple choice, scale, text) based on context.
  • Voice Input/Output: Allow respondents to answer questions using speech.
  • Multimedia Integration: Embed images, GIFs, and videos within the conversation.
  • Gamification Elements: Add scoring or rewards to boost engagement.

Smarter AI & Functionality:

  • Intelligent Branching & Skip Logic: AI dynamically adjusts the path based on answers.
  • Adaptive Questioning: AI refines questions based on previous responses for personalization.
  • Contextual Follow-ups: AI automatically asks for clarification on vague answers.
  • Real-time Input Validation: Instant feedback for formats like emails or numbers.
  • Multilingual Support: Real-time translation for global reach.
  • Custom AI Training: Fine-tune the AI on domain-specific knowledge.

Advanced Data Handling:

  • Automated Summaries & Analytics: AI-generated insights and key takeaways from responses.
  • Seamless Integrations: Connect with CRMs, spreadsheets, and analytics tools.
  • Enhanced Data Export & Privacy: Robust options while ensuring compliance (GDPR/CCPA).

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE file for more information.

Contact

Haseeb Arshad - [email protected]

Project Link: https://github.com/Haseeb-Arshad/dialogflow-form


About

An AI-native platform to create dynamic, conversational forms and surveys that replace traditional static forms with engaging chat interactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages