surveybot enables conversational data collection using shinychat. Like a traditional interview, users can answer questions through natural dialogue while the LLM extracts structured data, generates content, and asks adaptive follow-up questions.
shiny::runApp("app.R")The demo collects ice cream preferences through a shinychat UI. The files are modular to make your own surveybot (package to come).
- LLM data extraction with structured schemas and validation
- Adaptive questioning based on user responses
- Automatic retry logic for unclear answers
- SQL storage with tables "sessions" and "responses" (default is SQLite)
app.R- Main Shiny applicationfunctions.R- Database operations and chat utilitiesanalyze.R- Database analysis script