Question Create
question_createAdd one question at a position in a survey. Scales: opinion_scale itemDetails { min_value: 0 or 1 (default 1), max_value: 5 to 10 (default 10), nps: true for a 0 to 10 Net Promoter Score }, end labels in textItemDetails { min_value_label, max_value_label }; rating itemDetails { scale: 5 to 11 (default 5) }, end labels in textItemDetails { min_label, max_label }. Several short answers in one question (ideas, notes, action items): short_text itemDetails.multiple_entries = { min: 0 to 20, max: 1 to 20, min <= max }; the respondent adds one entry per row and the answer is stored as the entries joined by newlines; null turns it off. It can't be combined with unique_answer or share_results. Find a time polls (itemDetails.find_a_time, find_a_time_zone) can't be created or re-zoned here: add them in the QuestionPunk editor. Choice labels belong in item.textItemDetails.answer_options as an array of strings; item.itemDetails holds behavior settings such as multiple_selection. Example single choice: {"text":"How easy was setup?","answer_type":"multiple_choice","required":true,"textItemDetails":{"answer_options":["Easy","Difficult"]}}.
Call survey_get first for versions.current (pass it as surveyVersion) and the question count; to add at the end, surveyItemIndex = that count. The result returns the next surveyVersion for your next edit. To add several questions at the end, use question_create_bulk (one call). You write the question text; this tool generates nothing. On a published survey the new question is live at once.
For AI interviews use answer_type 'ai_moderated_interview': it supersedes ai_interview and ai_audio_interview. Set itemDetails.modality to 'text' (default) or 'voice'; put interviewGoal, greetingInstruction and avoidTopics in item.textItemDetails; its other settings match the two older types below, except context from earlier answers, which follows the modality (see the next paragraph).
Voice interviews (ai_moderated_interview with modality 'voice', ai_audio_interview): a new one needs itemDetails.timeoutMs, its length in ms (60000 to 14400000, e.g. 600000 for 10 minutes); each interview uses the survey owner's credits for every minute it runs. A non-empty greetingInstruction is spoken word for word on a pipeline session (itemDetails.greetingVerbatim false lets the interviewer phrase it); leave it empty to let the interviewer open on its own. The typed-interview settings endOnStopRequest, timeBasedCompletionConfig (with its terminationCriteria) and durationMinutes do nothing in a voice session and are rejected on one.
Context from earlier answers: itemDetails.referenceSources = { perRespondent: { enabled, mode: 'all' | 'selected', selectedQuestionIds }, thisSurvey: { enabled, mode, selectedQuestionIds }, externalSurveys: [{ surveyId, surveyTitle, mode, selectedQuestionIds }], priorWaves?: { enabled, depth: 'last_wave' | 'all_waves', mode, selectedQuestionIds } }; thisSurvey and externalSurveys are required whenever referenceSources is sent. perRespondent is this respondent's own earlier answers, given to the interviewer as they answered (long answers shortened). thisSurvey and externalSurveys give it a summary or answer counts of other respondents' answers, never quotes, and skip types they can't summarize (email, uploads and similar) and questions with fewer than 3 answers. priorWaves is a diary participant's earlier check-ins. Voice interviews (ai_audio_interview, ai_moderated_interview with modality 'voice', usability_test) read the respondent's own answers only from referenceSources.perRespondent: reference_questions has no effect on them. Text interviews (ai_interview, ai_moderated_interview with modality 'text') read them from reference_questions with referenceQuestionsMode, so set those and referenceSources.perRespondent to the same questions.
For a numbered scale use answer_type 'opinion_scale'; a 0 to 10 scale needs itemDetails { min_value: 0, max_value: 10 }. itemDetails { nps: true } also labels the ends "Not at all likely" and "Extremely likely" in English.
Older AI Interview questions (answer_type: 'ai_interview') take:
itemDetails.length: Number of exchanges (default: 5, used in fixed_count mode)
itemDetails.reference_questions: Array of UUIDs of PREVIOUS questions. The text interviewer sees the respondent's answers to these questions as context (text interviews only; see referenceSources above).
itemDetails.personality: { kind: 'preset', code: 'expert_interviewer' | 'friendly_interviewer' | 'focus_group_moderator' | 'researcher' | 'detective' | 'stubborn_interrogator' | 'comedian' } or { kind: 'custom', id: '' }
itemDetails.thinkingMode: 'fast' (default) or 'slow' for deeper reasoning
itemDetails.questionMode: 'fixed_count' (default) | 'ai_decides' | 'time_based'
itemDetails.aiDecidesConfig: { minQuestions: number, maxQuestions: number, stoppingGuidance?: string } (for ai_decides mode)
itemDetails.durationMinutes: number (for time_based mode, default: 10)
itemDetails.advancedSettings: { temperature?: number, maxTokens?: number, enableFollowUpProbing?: boolean, responseStyle?: 'concise'|'detailed'|'conversational' }
itemDetails.aiModel: { type: 'direct', model: '' } (optional; the app picks a default)
itemDetails.showContinueButton: boolean (show start button before interview, default: false)
itemDetails.aiFailureBehavior: 'complete_survey' (default) | 'pause_survey' | 'skip_to_next' | 'skip_question'
itemDetails.endOnStopRequest: boolean (text interviews only: when the respondent clearly asks to stop, the interviewer asks once whether to end or keep going and a clear yes ends the interview, default: true; false = it runs to its configured length)
Older AI Audio Interview questions (answer_type: 'ai_audio_interview') take:
itemDetails.timeoutMs: the interview's length in ms, required when creating one (60000 to 14400000)
itemDetails.recordingMode: 'none' | 'audio' | 'video'
itemDetails.sessionConfig: { type, sttModel, ttsModel } voice pipeline config
itemDetails.promptMode: 'standard' (default) | 'custom'
itemDetails.showContinueButton: boolean (default: false)
itemDetails.greetingInstruction: string (the opening line; a non-empty one is spoken word for word on a pipeline session unless greetingVerbatim is false; empty lets the interviewer open on its own)
itemDetails.interviewGoal: string (goal for the AI interviewer)
itemDetails.avoidTopics: string (topics to avoid)
For usability tests (answer_type: 'usability_test'), the question starts with one empty website task, screen share required and voice moderation. Describe tasks in itemDetails.guidedTask.tasks[] ({ id, order, scenario, targetType: 'website' | 'prototype' | 'native_app' | 'none', ... }); fetch the question with survey_get and edit it with question_update. A Figma prototype task uses targetType 'prototype', its Figma presentation link (https://www.figma.com/proto/..., kept unchanged with its query parameters) as targetUrl, and an optional figmaPrototype { startNodeId?: 'n:m', goalNodeIds?: ['n:m', ...] (at most 10) } naming the start screen and goal screens by Figma node id; goal screens are observations in recorded sessions, never automatic task completion.
Signature, file_upload, photo_response and consent questions get working defaults; for consent, set item.textItemDetails.statement and agree_label.
Gabor-Granger price ladder (answer_type 'gabor_granger'): itemDetails { prices: 2 to 12 distinct positive numbers (required; stored ascending), price_order: 'random' (default, shuffled per respondent) | 'ascending' | 'descending', currency_prefix (default '$') and currency_suffix (default ''), up to 8 characters each }; the respondent answers yes or no at each price, and the question text names the product. Its textItemDetails stay empty. Kano (answer_type 'kano'): textItemDetails { features: 2 to 20 short feature names, functional_questions and dysfunctional_questions: one per feature in the same order, e.g. 'If the app has dark mode, how would you feel?' and 'If the app does not have dark mode, how would you feel?' } (all required); itemDetails { ask_importance: false (true adds a 1 to 9 importance rating per feature), randomize_features: true }. The five Kano answers are fixed and translated by the app. An existing question can't be changed into either type: create a new one.
Gallery voting (design sprint "art museum"): a design question (answer_type 'design') with itemDetails.gallery { sourceSurveyId, sourceItemId, pickCount?, max? } shows each respondent the images other respondents uploaded to that photo_response or file_upload question, without names. A person's own upload is left out when the source question is in the same survey, or in a diary study's earlier wave (the same participant); with a source in another, non-diary survey a person may see their own. The source question must be in a survey you own and must have itemDetails.share_with_respondents: true (set it on the upload question; uploaders are then told their upload will be shown, without their name, to other people taking part; only uploads made while it is on, through a page that showed that notice, are shown; uploads from the mobile app are not shared yet). pickCount (1-24) lets each person pick that many images (a straw poll, or 1 for a Decider's supervote); max (1-24, default 12) caps the images shown. Leave assetUrls and assetIds empty.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surveyId": "<surveyId>",
"surveyVersion": "<surveyVersion>",
"lang": "<lang>",
"surveyItemIndex": "<surveyItemIndex>",
"item": "<item>"
},
"name": "question_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| lang | Yes | Language code of the text you write; one of the survey's languages (survey_get), usually its primary one | |
| surveyId | Yes | Survey ID (from survey_list) | |
| surveyVersion | Yes | Current survey version: versions.current from survey_get, or the surveyVersion your last edit returned. A stale version is rejected (WRONG_VERSION). The result returns the next one as surveyVersion. | |
| surveyItemIndex | Yes | 0-based position to insert the question. Use the current question count to add it at the end. | |
| surveyItemGroupId | No | Optional group ID to create question inside |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |