When To Use Text Chat
Text Chat is a stable question type for conversational survey interactions. It can support qualitative probes, guided reflection, tutoring-style checks, interview-like prompts, or AI-assisted tasks inside a social science research survey. It requires a Standard plan or above.
Block Builder: Question Type
How It Supports Research Design
- System prompt control defines how the assistant should interact with participants. It can include piped answers and variables: type
{{to pick from earlier questions and survey variables, and a reference that resolves flashes mint as you close it — the same as in question text. - Turn limits keep conversations comparable across respondents.
- Goes first chooses who opens the chat. With Respondent (the default) the chat starts on an empty message box. With Interviewer, the interviewer speaks first: write an Opening message to show every respondent the same first line (it supports piped text and can be translated), or leave it blank to have the model write its own opener from the system prompt. A model-written opener stays the same if the respondent leaves the question and comes back; it is written again only if they changed an earlier answer that the system prompt pipes in.
- Last turn chooses who has the final word. With Interviewer (the default) the model replies to the respondent's last message. With Respondent, the respondent's final message (their max-turns message) ends the chat with no reply; when the model ends the interview itself, the respondent gets one last reply before the chat closes.
- Let the interviewer end the chat (off by default) lets the model end the interview itself once it judges the topic is covered, instead of every respondent running for exactly max turns. Max turns still applies as a hard cap, and min turns is a floor the model cannot end before.
- Endpoint configuration lets research teams connect a compatible model provider, either directly or through a saved credential. Leave the endpoint blank to use the one shown in the field, which follows the model: OpenAI for
gpt-models, Google forgemini-, and likewise Mistral, xAI, DeepSeek, and Groq (Llama). A saved credential's own endpoint takes priority: with a saved key, the question's endpoint can only point to another address on the key's own server, so nobody who can edit the survey can send your key somewhere else. To use a different server, change the endpoint on the key itself in Settings → Integrations → API Keys, which asks for the key again. Only a model from another provider needs its URL typed in. A key pasted into the question is saved to Settings → Integrations → API Keys as soon as you leave the field — surveys never store raw keys — and every chat, including Preview, runs through Domandata's server with it. - Message length limits set a minimum and/or maximum length (in characters, words, or sentences) for each participant message.
- Paste controls can disable pasting into the message box, and/or record blocked or allowed paste attempts in response metadata — the same paste-tracking behavior available on Short Answer.
- Track typing timing (opt-in) records keystroke count, typing duration, and longest pause across the respondent's own messages, the same typing-timing tracking available on Short Answer. It can raise the "No Typing Detected" response-quality flag.
- Transcript validation can require the respondent's messages to contain (or not contain) specific words or phrases, or run a custom Python check against the full transcript text (both sides, as
User: … | Assistant: …) — the same validation options available on Short Answer. Respondents see what's missing when they try to continue and can keep chatting to add it. The rule only applies while they can still send a message: once the chat has reached max turns or the interviewer has ended it, nothing could change the transcript, so the respondent is not held back. - Advanced request body (in the question's advanced settings) lets you merge additional JSON fields into the request sent to the model endpoint, for providers that need parameters beyond the standard chat-completions shape.
- Transcript export supports qualitative coding and audit review, and includes which model produced each assistant reply so a later review can tell if the model changed mid-study.
- Response delay can make the interaction feel paced rather than instantaneous.
Preview: Respondent Experience
Configure It In Domandata
Step 1: Open Block Builder. Open the survey and select the block where the chat task belongs.
Step 1: Open Block Builder
Step 2: Add a Text Chat question. Choose Text Chat from the question type selector.
Step 2: Choose Text Chat question type
Step 3: Write both prompts. Add the respondent-facing prompt and the system prompt that controls chat behavior.
Step 3: Write both prompts
Step 4: Configure the model connection. Set the endpoint, saved credential, model name, who goes first (and the opening message), who has the last turn, minimum and maximum turns, whether to let the interviewer end the chat, message length requirements, and response delay.
Step 4: Configure the model connection
Step 5: Preview with realistic responses. Use Preview to test the interaction before publishing, including awkward, short, and off-topic participant answers.
Step 5: Preview with realistic responses
Step 6: Export and review transcripts. Submit a test response, confirm the transcript is suitable for coding and audit review, and check privacy expectations before live collection.
Step 6: Export and review transcripts
Data And Export Notes
Text Chat exports the chat transcript, including participant and assistant messages, followed by a Respondent Turns column with the number of messages the respondent sent. It is blank when the respondent never reached the chat, so it works as a dropout or engagement measure without counting messages in the transcript. Treat transcripts as qualitative research data and review privacy, consent, and institutional review requirements before collecting live responses.
Export: Data and Files
Related Help
- Text Response Survey Questions
- Audio Response Survey Questions for spoken instead of typed answers
- Audio Conversation Survey Questions for a spoken AI-moderated conversation instead of a typed one
- Video Conversation Survey Questions for a live conversation with an on-screen AI avatar
- Content Blocks in Research Surveys
- Create Experimental Conditions
- Publish and Share a Research Survey