Skip to contents

Build a survey

survey_spec()
Start a survey spec
add_question()
Add a question to a survey spec
prompt_llm()
Describe text for the LLM to generate
set_messages()
Set the messages of a survey spec
set_config()
Set the config of a survey spec

Run it

survey_server() survey_ui()
Run a survey in a Shiny app
survey_chat_ui()
Put the survey chat in any page
run_example()
Run an example survey

Storage

init_database()
Create the survey schema on a connection