Questionnaire

screenshot of Questionnaire
nextjs
react
tailwind
cmdk

Ask users structured questions in an LLM chat! AI SDK + Shadcn

Overview

The Tool Execution Demo is an innovative solution designed to streamline user interactions by asking guided questions. Built using Next.js combined with the Vercel AI SDK and shadcn/ui, it provides a focused conversational experience ideal for applications like Cursor Plan Mode or ChatGPT Deep Research. This demo serves not only as a functional example but also as a valuable resource for developers interested in integrating structured input into their projects.

By utilizing this demo, users can easily understand how to capture context through a straightforward questionnaire format, making interactions more engaging and efficient. It's perfect for anyone wanting to enhance user experience on their platforms.

Features

  • Guided Questionnaire: Introduces structured questions to lead user conversations effectively, enhancing focus and relevance.
  • Built with Next.js: Leverages the popular React framework for server-side rendering and seamless user experiences.
  • Vercel AI SDK Integration: Utilizes powerful AI capabilities to dynamically interact with users based on their inputs.
  • shadcn/ui Components: Offers a sleek and modern UI design, ensuring the interface is user-friendly and visually appealing.
  • Easy Setup: Requires minimal configuration, allowing developers to quickly implement the solution by setting up a simple environment variable.
  • Demo Accessibility: Users can easily test the implementation by accessing the demo via a local server for practical exploration.
  • Open Source: The component code is available, encouraging customization and adaptation to different use cases.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

cmdk
cmdk

cmdk is a fast, composable command menu component for React. It provides the foundation for building command palettes, search interfaces, and keyboard-navigable menus similar to those found in applications like VS Code, Linear, and Raycast.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

motion
Motion

Motion (formerly Framer Motion) is a production-ready animation library for React and JavaScript. It provides a simple declarative API for creating fluid animations, gestures, and transitions with excellent performance and accessibility.

react-hook-form
React Hook Form

React Hook Form is a performant, flexible, and extensible form library for React with easy validation. It reduces re-renders and improves performance by using uncontrolled components and native HTML validation, making form handling simple and efficient.

recharts
Recharts

Recharts is a powerful and easy-to-use React library for building customizable and interactive charts. Built on D3.js, it offers a wide range of pre-built chart types, such as line, bar, pie, and scatter charts, all of which can be composed with a declarative syntax.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.