Usa Deutero MCP con Sokko.
Conecta Deutero MCP y dile a Sokko qué hacer. Ejecuta las acciones que pides y reacciona a lo que ocurre, sin workflows ni código.
Funciona con más de 1.000 herramientas · Sin código
Acciones
Todo lo que Sokko puede hacer en Deutero MCP
Cada acción de Deutero MCP que Sokko puede ejecutar. Pídela en una frase y listo.
Activate graph
Switch the study to `graph` mode: interviews follow the stored flow instead of
the linear question list. Requires a flow that last saved without problems.
Activate only a flow that does something the linear list cannot: routing,
loops, piped answers, or mid-interview fetches and signals. Source, participant
ids, embed metadata and answer-dependent follow-ups all work without one.
The question list is left untouched — `deactivate_graph` switches back to it at
any time, on any plan.
**Pro and Team plans only.** Below Pro, every flow-authoring call (this one,
`describe_graph_nodes`, `check_graph`, `set_graph`, `patch_graph`,
`import_questions_to_graph`, `upload_flow_image`, `activate_graph`) is refused
with 403 `upgrade_required`, and a study in graph mode cannot be published.
Build the study on the linear question list instead (`create_question`,
`generate_questions`).
Bulk transcripts
Full transcripts for a study's interviews, newest interview first, paginated
by interview. Each transcript also carries ``variables`` — the answers that
interview captured into Interview Flow variables, empty for a study that
captures nothing. Filter with ``completed``, ``include_simulated`` and
``include_test_runs`` (the researcher's own Try Interview / Preview runs, left
out by default). For a
single interview use ``GET /interviews/{interview_id}/transcript``.
Pass ``external_participant_id`` to fetch the transcripts of one person by
your own id for them — the id the entry link's ``?participant_id=`` or the
embed metadata bag carried. Each transcript carries that id back, so an export
can be joined to your own records without a second call.
Check graph
Validate a flow and report every problem, changing nothing. Use this while
drafting: iterate here until `valid` is true, then save with `set_graph`.
Pass the flow in `flow`, or omit it to re-check the study's stored flow.
Each problem names the step it is on using **your own step ids**, a stable
`code`, and a plain-language `message`.
**Pro and Team plans only.** Below Pro, every flow-authoring call (this one,
`describe_graph_nodes`, `check_graph`, `set_graph`, `patch_graph`,
`import_questions_to_graph`, `upload_flow_image`, `activate_graph`) is refused
with 403 `upgrade_required`, and a study in graph mode cannot be published.
Build the study on the linear question list instead (`create_question`,
`generate_questions`).
**Every step must lead onward to an `end` step.** A step with nothing after it
does not end the interview — it is an error. The interview ends only by
reaching an `end` step, so connect each final question to one explicitly. A
flow is refused when:
* a `start`, `question` or `decision` step has no outgoing edge (`dead_end`);
* a step cannot be reached from `start` (`unreachable`);
* a step has no forward path to an `end` step (`no_path_to_end`). An edge
looping back to an earlier step does not count: every loop needs a way out
that reaches an end;
* a `start` or `question` step has more than one outgoing edge (`fanout`) —
only a `decision` splits;
* a `decision` does not have exactly one `"default": true` path
(`no_default`). A deterministic decision may leave it out only when its
conditions cover every possible answer of a choices or scale question. An
`llm_classifier` decision always needs one, and any class without a path of
its own goes down it;
* the question an `extract` or `webhook` step follows does not itself connect
onward (`dead_end`).
In the browser editor, a Branch path with nothing connected is refused too
(`unconnected_path`).
Other common codes:
* `var_not_guaranteed` — a step uses a captured answer that earlier branching
means might not exist yet
* `unattached` — an extract/webhook/context_fetch step is missing `after`/`before`
* `missing_max_revisits` — a step inside a loop has no repeat limit
* `private_url` — a fetch or webhook URL points at an internal address
When the flow is valid, `compiled` shows the derived captured-answer table and
the final execution order with side steps spliced into place — worth checking
that attachments landed where you intended — and `length`, the questions and
estimated minutes on the shortest and longest paths.
`warnings` lists advisory findings on a valid flow. They never stop a save, and
each usually means the study does not need a flow:
* `screening_in_flow` — an early Branch ends the interview for some people; use
screening questions instead;
* `optional_block_in_flow` — a late Branch lets people finish early; optional
questions can simply go last on a question list;
* `single_question_branch` — each path is at most one question before they
rejoin; one question with guidance covering each case does the same;
* `flow_not_needed` — nothing in the flow needs one;
* `parallel_paths` — several paths of one Branch go to the same step; use `in`;
* `interview_as_form` — half or more of the open questions allow at most one
follow-up (`follow_up: false`, or `max_turns` 1 or 2): it runs as a survey.
Consolidate codebook
One consolidation pass over the codebook, as the dashboard's Consolidate button does: near-duplicate codes merged, codes that mix ideas split, definitions reworded, provisional codes adopted or kept provisional, each change with its rationale in `get_study_codebook`'s history. A pass also runs automatically after the third coded interview and before each study analysis. Takes up to a minute. Free. Refused 409 `nothing_to_consolidate` when the codebook has not changed since the last pass or holds nothing a pass could act on, and 409 `codebook_changed` when it changed during the pass (try again).
Create characteristic question
Add a characteristic question
Create clip
Save a clip of one interview's recording, located by a quote (verbatim words from the transcript), by a message and character range, or by times. The range is snapped to whole words and may not cross two recording sessions. Returns the clip with its resolved text, times, speakers and, for a quote, how it matched. Errors carry a code: quote_not_found (422, with the closest near miss), ambiguous_quote (409, with candidates to retry with), no_audio (422, typed text), recording_not_ready (409), spans_sessions (422).
Create clip from quote
For a quote you hold without knowing its interview — a thematic analysis supporting quote, say. Searches the study's transcripts for the words (verbatim or near-verbatim; never a paraphrase) and clips the one place they occur. Narrow with interview_id, external_participant_id or question_id. Several matches give 409 ambiguous_quote with candidates (interview_id, message_id, char_start, char_end and the surrounding text): retry create_clip on the right interview with that message_id.
Create embed key
Create a publishable embed key for the caller's organization, optionally
pinned to one study.
**The response includes ``publishable_key`` and ``signing_secret`` — this is
the only time they are returned. Store them immediately.**
Create persona
Write a persona by hand. Describe the participant the way you would brief an actor — who they are, what they are dealing with, how they feel about the subject — since that description is the only thing shaping their answers.
Example: `{"content": "A 34-year-old ICU nurse in Leeds, six years on the job, sceptical of new scheduling software after a botched rollout last year. Blunt, short on time, warms up when asked about patient safety."}`
Create project
Create a new project owned by the caller's organization.
Create question
Create a question and append it to the end of the study's question list.
The question list is the right shape for almost every study. The interviewer
works through it in order and reads each answer before replying, so
answer-dependent follow-ups ("if they say no, ask what stopped them") go in
``explanation``, not in an Interview Flow. Every turn is saved as it happens:
someone who stops partway leaves an incomplete interview with everything they
said, so optional questions simply go last.
Set ``qtype`` and provide only the config fields that type needs. If ``qtype``
is omitted the type is inferred from which fields you send: ``scale`` → scale,
``options`` → choices, ``slots`` → slots, ``expected_image`` → image_upload,
otherwise text.
Example bodies:
* **Open text** — `{"question": "Walk me through your last purchase.", "follow_up": true, "max_turns": 6}`
* **Scale** — `{"question": "How satisfied are you?", "qtype": "scale", "scale": {"minScale": 1, "maxScale": 5, "minLabel": "Not at all", "maxLabel": "Very"}}`
* **Single choice** — `{"question": "Which plan are you on?", "qtype": "choices", "options": ["Basic", "Pro"]}`
* **Multi-select** — `{"question": "Which features do you use?", "qtype": "multi_select", "options": ["Search", "Export", "API"], "min_select": 1, "max_select": 2}`
* **Ranking, in a random order per participant** — `{"question": "Rank these by importance.", "qtype": "ranking", "options": ["Speed", "Price", "Support"], "randomize_options": true}`
* **Card sort** — `{"question": "Sort these into buckets.", "qtype": "card_sort", "options": ["Apple", "Carrot"], "groups": ["Fruit", "Vegetable"]}`
* **Present images** — `{"question": "Which of these logos feels most trustworthy, and why?", "qtype": "present_images"}`, then attach each image with ``upload_question_image``
Create questions
Create up to 50 questions in one call and append them, in the order given, to the
end of the study's question list. Each item takes the same fields as
``create_question`` (see it for the per-type examples). The call is atomic: if
any item is invalid, nothing is created. Returns only the created questions,
with their final numbers. Prefer this to a run of ``create_question`` calls when
building a study; validate the result with ``validate_questions``.
Create report share
Freeze the study's latest completed study analysis report into a new link and return its URL. The link is public to anyone holding it unless `access` is `invited`. A shared report has no transcript links and no participant ids, but it does show quotes with their bylines. Refused 409 with `code`, `message` and `facts`: `no_completed_study_run` (run one with run_study_analysis first); `report_mixes_simulated` (the report mixes real and simulated interviews) and `report_shows_real_quotes` (it quotes real participants, or labels real respondents with bylines such as role or industry) — tell the user the `message`, and only when they agree resend with `acknowledge_simulated_mix` / `acknowledge_real_quotes`. Invitations are not emailed: pass the URL on yourself. Each call makes a new link (see get_report_share_links); refresh_report_share keeps the URL.
Create screening question
Appends a multiple-choice qualifying question, asked before the interview. ``acceptable_options`` must be a subset of ``options``; anyone whose answer is not in it is screened out (screening must be enabled with ``set_screening_settings``). Screened-out answers are kept: the person leaves an incomplete interview with ``termination_reason`` "disqualified", and ``get_interview`` returns their answers under ``qualifications`` — so there is no need to screen inside the interview or an Interview Flow.
Create screening questions
Appends up to 20 qualifying questions in the order given. Same fields as ``create_screening_question``. Atomic: if any item is invalid (for example an ``acceptable_options`` value that is not copied exactly from its ``options``), nothing is created.
Create study
Create a new study inside a project. The study starts with an empty main
question list; configure the rest of the lifecycle with the Welcome,
Screening, Characteristics, Questions, Recruitment, and Embed endpoints.
The study runs a **linear** question list (`create_question`, or
`generate_questions` for a draft). That fits almost every study: conditional
follow-ups go in each question's private guidance (`explanation`), screening
and characteristics run before the interview, and every turn is saved as it
happens, so people who drop out partway are kept. An Interview Flow (graph
mode, Pro and Team plans) is only for routing participants to different
blocks of questions, loops, piped answers, or mid-interview API calls.
To have the name, description, research questions, objectives and target
population written for you, call ``draft_study`` (from a research brief) or
``draft_study_from_site`` (from a product landing page) first and pass the
draft's fields here. ``generate_questions`` then writes the interview questions.
Create study share
Freeze the study as it is now into a new public "use this study" link and return its URL. Anyone who opens it can read the study and copy it into their own Deutero account as a draft. Use access `invited` with `emails` to restrict it to named people. Invitations are not emailed from here: pass the `url` on yourself. Allowed while the study is open. Each call makes a new link; check get_study_share_links first if you want to reuse one.
Create webhook
Subscribe a URL of yours to organization events. The response carries the
**signing secret, the only time it is ever shown** — store it before doing
anything else, and verify every delivery against it.
The endpoint receives events for every study the organization owns. Name the
events you want in ``events``; an empty list means all of them.
Deactivate graph
Switch the study back to `linear` mode. The stored flow is kept, just not used.
Delete characteristic question
Delete a characteristic question
Delete clip
Removes the clip. The recording and transcript are untouched.
Delete persona
Interviews already simulated with this persona are kept.
Delete question
Removes the question, its attached images, and its list entry; remaining questions are renumbered.
Delete question image
Detaches the image from the question; the remaining images close up the gap. Image ids are listed under ``images`` on the question.
Delete screening question
Removes the question and renumbers the remaining list. Any recorded participant answers to it are deleted with it.
Delete simulation
Removes the run's bookkeeping row. The interview it produced is kept — delete that separately if you want the transcript gone. A run still in flight cannot be deleted.
Delete webhook
Permanently removes the endpoint and its delivery log. To stop deliveries temporarily, set ``enabled`` false with update_webhook instead — deleting throws the signing secret away with the endpoint.
Delete welcome hero
Remove the welcome screen's hero image
Delete welcome translation
Delete a translation
Describe graph nodes
The configuration schema for every step type an interview flow can contain,
generated from the same registry the validator enforces — so it cannot drift
from what `check_graph` will accept.
Before authoring one, be sure the study needs a flow at all: most do not. Link
parameters, embed metadata and question guidance cover tracking and
answer-dependent follow-ups on the linear question list (see `set_graph`).
**Pro and Team plans only.** Below Pro, every flow-authoring call (this one,
`describe_graph_nodes`, `check_graph`, `set_graph`, `patch_graph`,
`import_questions_to_graph`, `upload_flow_image`, `activate_graph`) is refused
with 403 `upgrade_required`, and a study in graph mode cannot be published.
Build the study on the linear question list instead (`create_question`,
`generate_questions`).
Read this before authoring a flow. It returns, per step type: what the step
does, whether it sits on the interview path or attaches to a question (and with
`after` or `before`), and every config field with its type, whether it is
required, and what it means. Plus the valid question types, condition
operators, decision modes, merge modes, the built-in variables available to
piped text, and the structural rules the validator applies.
Download clip
Render a saved clip as a file (video, audio or captions). Returns a download with status building; poll get_download until it is ready, then fetch its url with your own credentials. Ready files are kept 24 hours. Video is refused (422 video_not_consented) when the participant agreed to audio only.
Download interview recording
One recording session (session_id) or the whole interview with its sessions joined, as video, audio or the master audio. Large files (over 250 MB) come back with delivery email: you get an email, and the media_export.ready webhook, when it is ready.
Draft study
Turn a short research brief into a study draft — the dashboard's **Create
Study → Use Wizard**. Nothing is stored: review or edit the draft, then pass
its fields to ``create_study`` (with a ``project_id``) to create the study.
Pick ``survey_type`` and fill that type's brief fields; the others are ignored.
* **sociology** — `{"survey_type": "sociology", "research_question": "How do remote workers build friendships?", "population_of_interest": "Fully remote employees in tech"}`
* **customer_development** — `{"survey_type": "customer_development", "problem_hypothesis": "...", "customer_segment": "..."}`
* **user_experience** — `{"survey_type": "user_experience", "business_context": "...", "research_need": "..."}`
* **polling** — `{"survey_type": "polling", "research_question": "..."}`
* **customer_satisfaction** — `{"survey_type": "customer_satisfaction", "experience_focus": "...", "customer_base": "..."}`
* **customer_preferences** — `{"survey_type": "customer_preferences", "preference_domain": "...", "customer_base": "..."}`
The draft has a name, a description, research questions, objectives and a
target population, written in ``language``. It does not include interview
questions: create the study, then call ``generate_questions``.
This is a model call, so it typically takes twenty to forty seconds.
Draft study from site
Read a product or startup landing page and draft a user research study for it
— the dashboard's **Create Study → Suggest from Site**. The study is aimed at
what a founder or PM most needs to learn: whether the people the product is
for really have the problem, how they cope today, and what would make them
switch.
Nothing is stored as a study: when ``is_valid``, pass the ``draft`` fields to
``create_study`` (with a ``project_id``). When the page is not usable — an
error or login page, or too little about the product — ``is_valid`` is false,
``draft`` is null and ``rationale`` says what was missing.
Each of your drafts for a site counts toward a limit of
5 per site (``http``/``https`` and a trailing
slash do not make a different site); past it the call answers 429. Pages that
could not be read do not count.
This fetches the page and makes a model call, so it typically takes twenty to
forty seconds.
Edit study report
Rewrite (or, with empty `text`, restore) the headline, dek, decision or recommendation of a completed study analysis's report. Every number in the new text must be one the report's data supports, or it is refused 422 `edit_rejected` with the problems. The edit shows in `get_study_themes` and in share links refreshed after it. Refused 409 `run_not_editable` for an analysis that has not completed. Free.
Export media
An archive of interviews' recordings, master audio, captions and transcripts (one folder per interview, named by your participant id, with a manifest.json), or of clips (optionally joined into one reel). Always built in the background: you get an email and the media_export.ready webhook, then fetch it with get_media_export. Deleted 48 hours after it is ready. Interviews whose participant agreed to audio only contribute audio, listed in omitted[]. At most 20 GB per organization per 24 hours.
Find interviews by external id
Every interview in this study that arrived carrying ``external_participant_id`` — your own id for the person, from the entry link's ``?participant_id=`` or the embed metadata bag's ``participant_id`` key — in full detail, newest first. The direct answer to "did this person finish, and what happened?" when you hold your id for them and not ours.
Expect more than one row sometimes: a person who abandons and starts again has an interview per attempt, and ``total`` says how many. An empty list means nobody has arrived on a link carrying that id — not that they were screened out. For the transcripts behind these interviews, pass the same id to ``bulk_transcripts``; for one interview's messages, ``get_transcript`` with the id from a row here.
The match is exact, and the id is participant-supplied text: it says which of your own records to look at, it does not authenticate anybody. Simulated interviews and test runs (the researcher's own Try Interview / Preview runs) are left out unless ``include_simulated`` / ``include_test_runs`` ask for them.
Find quotes
The passages of participants' answers that say something — a sentence or two, not whole messages — with their exact place (message_id, char_start, char_end), the words around them, and when they were spoken. mode: hybrid (default: verbatim first, then meaning), semantic (meaning only), exact (verbatim and near-verbatim only). A semantic match says something similar, not those words: never present it as a quote without checking. At most two per interview.
Generate personas
Draft personas from the study's own context — its type, description, research question, objectives and target population — so they resemble the people you intend to recruit. Fill those fields in on the study first; a sparse study yields generic personas.
Generated personas are saved to the study by default (``source: 'generated'``); pass ``save: false`` to preview them without storing anything.
Each persona gets a short `label` (the byline reports credit its quotes with). Pass ``segment_question_id`` to spread the personas over a single-select question's options and set each persona's `segment`.
Generate questions
Write interview questions for the study and append them to its question list —
the dashboard's **Study Questions → Generate with AI**.
The generator works from the study's research question, objectives,
methodology and target population (set them with ``create_study`` /
``update_study``, or draft them with ``draft_study``), plus any
``additional_instructions``. It picks a mix of question types that suits the
study — open text with interviewer guidance and a turn range, scales, single
and multi-select choices, ranking, card sort, slots, and image upload on paid
plans (Solo and up; every model tier reads images) — written in the study's
language.
If the study already has questions, the new ones extend that list rather than
repeating it, and are added after them. Nothing is replaced: review the result
with ``validate_questions`` and adjust with ``update_question`` /
``delete_question`` / ``reorder_questions``.
This is a model call, so it typically takes thirty seconds to two minutes
depending on ``n_questions``.
Generate welcome
Write the study's welcome and consent text — the dashboard's **Welcome →
Generate**. The interviewer reads it aloud before the first question, so it is
conversational: it introduces the interviewer as an AI working for the
researcher, and says what the study is for, roughly how long it takes, and how
answers are handled.
Nothing is saved. Read it, fill in any ``placeholders``, then call
``set_welcome`` with the text and your ``consent`` choice.
What it draws on, so set these first for a better draft:
* the study's ``name``, ``description``, ``research_question``,
``target_population``, ``support_contact`` and (sociology and polling)
``benefits`` and ``risks``;
* the length, from the number of main questions (about three minutes each; 15
minutes when there are none yet);
* the researcher's name and position from the profile of the account calling
(its email when there is no profile), and the organization's name;
* ``survey_type``, which sets how much consent language it writes
(``consent_level``), and ``language``, which it is written in. ``sociology``
gets full informed consent including risks and benefits; ``user_experience``
and ``customer_development`` get a short welcome with no risks, benefits or
ethics sections (``benefits``, if set, is mentioned as an incentive);
``polling`` sits between.
What is missing becomes a placeholder such as ``[Insert researcher name]``,
listed in ``placeholders``.
This is a model call, so it typically takes ten to thirty seconds.
Get characteristics
Settings plus the ordered characteristic question list.
Get clip
One clip, with the words just before and after it for context.
Get credit balance
The organization's credit balance and its plan.
`plan` says which plan the organization is on and what it allows: the model
tiers it may use, the interview modalities (text, on-device and cloud voice,
video) and
WhatsApp, whether it includes Interview Flow (graph mode), image
questions and simulations, and how many studies may be open at once. Call
this before choosing a model tier or proposing a branching flow. New
accounts are on Hobby: `open_weights` only, text chat and on-device voice
only, linear question lists only.
Do not infer the plan from `base_limit`.
Get download
A download's state. While ready, url is the file (for your own credentials only, never a public link); after 24 hours it is expired.
Get embed snippet
Generate the HTML install snippet for embedding this study's interview widget.
Pass ``publishable_key`` (from key creation) to fill it into the snippet;
otherwise a placeholder is emitted. ``mode`` selects the widget presentation
(default ``chat``). The signed-token variant is also returned for servers that
mint per-visitor JWS (HS256) tokens with the key's signing secret.
**Metadata.** Both snippets can carry context that is stored with the interview
and shown alongside the transcript (plan, tenant, seat count, and so on). The
basic snippet includes a ``data-metadata`` placeholder holding an example flat
JSON object — replace its keys with your own, or delete the attribute if you
have no context to attach.
* ``data-metadata`` is **page-supplied and therefore untrusted**: a visitor can
change it with browser dev tools before the interview starts. That is fine for
context you only want to read next to the transcript. It is not fine when the
interview has to act on the value — asking enterprise-only questions, skipping
a section for trial users, or reporting results split by plan.
* For those cases use ``signed_snippet`` instead of the basic one: your server
mints a short-lived token (HS256, ``kid`` header = the publishable key,
``sub`` = your stable end-user id, ``exp`` no more than 900s after ``iat``)
with a ``metadata`` claim, signed with that key's signing secret, and the page
sends it as ``data-signed-token`` in place of ``data-publishable-key``. Those
values are recorded with provenance ``"token"`` (shown as verified in the
dashboard) and override any page-supplied value of the same name, so a tag may
carry ``data-metadata`` as well when some values need not be verified.
* ``participant_id`` is the one key with a meaning of its own: whatever value
it holds is also stored on the interview as ``external_participant_id``, so
an embedded study can be joined back to your own users the same way a link
built with ``?participant_id=`` can. It stays in the metadata bag as well.
Page-supplied it is no more trustworthy than any other key — it labels the
row and identifies nobody; send it in the signed token when it has to be
verified. Keep it pseudonymous either way (a hash of your user id, not an
email): it is stored on the interview, exported, and sent on the
``interview.completed`` webhook.
* Limits, enforced at bootstrap — a payload that breaks any of them is rejected
outright, so validate before you send: at most 32 keys; key names match
``^[A-Za-z_][A-Za-z0-9_]{0,63}$``; scalar values only (string <= 1 KB, number,
bool, null) — no nested objects or arrays; total serialized size <= the key's
``metadata_max_bytes``.
Get flow signals
The delivery config behind every "Send a signal" (`webhook`) step in the saved
flow, **including the signing secret** each step's deliveries are signed with.
A signal is fired by the interviewer mid-interview, at the point in the flow
where the step sits — distinct from the organization-level webhooks (the
Webhooks endpoints), which this dashboard fires for lifecycle events like
`interview.completed`. The secret is minted the first time the step is saved
and kept stable across later saves, so a receiver configured once keeps
verifying.
Verify each delivery's `webhook-signature` against the secret for the step that
sent it before acting on the body, and dedupe on `webhook-id`. To see what a
particular interview actually sent, and whether it was accepted, use
`get_interview_fetches_and_signals`.
Get graph
The study's interview flow, in the same shape `set_graph` accepts — so you can
read it, change part of it, and write it back.
Also reports whether the flow is the study's active interview script
(`interview_mode`), and its `graph_version`, which you can pass to `set_graph`
or `patch_graph` to avoid overwriting an edit made in the browser meanwhile.
`flow` is null when the study has no interview flow yet; it still runs its
linear question list, and `import_questions_to_graph` will turn that list into
a starting flow.
Get interview
One interview with its screening answers, participant characteristics, embed-widget metadata (with per-key provenance), message count, and the answers it captured into Interview Flow variables. ``web_source``, ``external_participant_id`` and ``referrer`` say where the participant arrived from: the first two are set by building the entry link with ``?source=`` and ``?participant_id=`` (or, for an embedded study, a ``participant_id`` key in the widget's metadata bag). All three are participant-supplied text — labels to join on, never proof of who answered.
Get interview contact
The name, email and phone one participant gave in the study's contact step, or whether they declined. Personal data: read it to follow up with that person, and keep it out of analysis, reports and anything you share. Each read that returns details is recorded in the audit log. status 'none' means no contact step ran for this interview.
Get interview fetches and signals
What an Interview Flow's side steps did outside the conversation: every 'Bring in data' (context_fetch) request with the response it returned or the error it hit, and every 'Send a signal' (webhook) delivery with its status. This is the record to read when a piped-in value looks wrong or a customer system did not receive a signal. Empty for linear (non-graph) studies. Signals from a simulated interview are marked ``dry_run`` unless that run opted into real delivery.
Get interview recording
What was recorded for one interview: the study's recording policy, what the participant agreed to, and each recording session (a page load or reconnect starts a new one) with its status and length. Sessions play end to end in seq order. No URLs: to get a file, use download_interview_recording or make a clip. Typed interviews and studies that do not record have no sessions.
Get interview themes
The latest completed thematic analysis of one interview: first impressions, the codes applied to each answer (from the study's codebook), the interview's themes with their supporting quotes, and how the themes connect. Quotes carry `interview_id` and `message_id` for `get_transcript`, and `external_participant_id`. If a newer analysis is running or failed, the earlier completed one is returned with `newer_run_status`. Refused 404 `no_completed_run` when the interview has none: Start one with run_interview_analysis, then poll list_interview_analyses. Read-only.
Get latest clustering
Returns the study's most recent saved clustering run, ready to chart: per-cluster point coordinates and centroids. ``exists`` is false when the study has not been clustered yet.
Get media export
An export's state, size and omissions; while ready, url (your own credentials only). Expired after 48 hours.
Get optimal clusters
Suggests how many clusters to use for a question. Applies the elbow method to participants' response vectors and returns the suggested count as ``optimal_k``, plus the underlying inertia-vs-k curve (``k_values`` and ``inertias``) so you can plot the elbow yourself. Use the result as the ``n_clusters`` value for ``POST .../cluster``.
Get options responses
How many interviews chose each option, counting one answer per interview:
the answer the interviewer recorded, never an option named in reply to a
follow-up.
* Single-select: one label per interview (translated answers are mapped back
to the original option).
* Multi-select: every label the interview selected.
* Ranking: ``count`` is first places; ``positions`` gives every position, so
"ranked in the top 2" is ``sum(positions[:2])``, and ``mean_rank`` the mean
position (1 = top).
Declined answers are reported as a "Prefer not to answer" entry when present.
An answer naming an option the question no longer offers (it was renamed or
removed after the interview) counts in ``responses`` under no option, and its
``answers`` entry shows the label the interview recorded; a ranking that names
one is left out of ``count``, ``positions`` and ``mean_rank``.
``responses`` (declines included) is the denominator for a share, and
``answers`` lists the interview and message behind each count — and, for a
question shown in a random order, the order that interview saw
(``presented_order``), to check for position effects. Card-sort
questions are refused with 400: a grouping is not a tally.
Get project
Get a project
Get publication status
Whether the study is draft, open, paused or closed, how many studies the plan may have open, the publish-time credit check and the latest validation.
Get recruitment
Participation links, quota status, and pre-interview gate flags. The links come back bare: append ``&source=<your campaign tag>`` and/or ``&participant_id=<your id for this person>`` to attribute the arrival — they are recorded on the interview as ``web_source`` and ``external_participant_id``, and can be read back and filtered on. ``participant_id`` here is your own free-text id, not the Deutero participant UUID of the same name.
Get report share links
The share links made for the study's thematic analysis report: URL, who can open it, when its snapshot was taken, views and the real/simulated split. Revoked links are listed without a URL. Check here before create_report_share, which always makes a new link. Read-only.
Get scale responses
How many interviews gave each scale value: one answer per interview, the value the interviewer recorded, never a number said in reply to a follow-up. Declines are counted in ``declined``, not in ``counts``. ``answers`` lists the interview and message behind each count.
Get screening
Settings plus the ordered screening question list.
Get simulation
One run's current state. Poll this after starting a run: ``running`` until the interview finishes, then ``completed`` (with ``credits_used``) or ``failed`` (reservation released, nothing charged — ``error`` says why).
Get study
Full study configuration, including per-lifecycle-stage status (welcome configured, screening/characteristics enabled and question counts, main question count) and participation links.
Get study analysis
One study analysis's state: `pending` (queued), `running` (with its `stage`), `completed` (read the report with `get_study_themes`) or `failed` (with `error`; `retry_study_analysis` starts it again). A run that stopped making progress is failed here and its credits released. Poll every 20-30 seconds.
Get study analysis options
Before `run_study_analysis`: the interviews it can read (those whose latest interview analysis completed, with how many are real and simulated), the minimum it needs, what the report can be split by (`segment_sources`) and quotes credited with (`byline_sources`), the study's own tier and what one study analysis costs on it, and any study analysis already running. Read-only.
Get study codebook
The study's running codebook, which every interview analysis codes against: each code's definition, when to use it and when not, its status and how many interviews use it, with exemplar quotes; how many new codes each interview added (saturation); and the latest 100 changes with their rationale. A study whose interviews have not been analysed yet has `version` 0 and no codes. Read-only: change codes with update_code, merge_codes and consolidate_codebook.
Get study share links
The "use this study" links made for this study: the public URL, whether it is open to anyone or invited emails only, and when the snapshot it shows was taken. Revoked links are left out. An empty list means the study has not been shared: call create_study_share. Read-only.
Get study stats
Counts of started/completed/incomplete interviews, completion rate, and quota fill relative to ``max_responses``. Simulated (persona) interviews and test runs (the researcher's own previews) are counted separately.
Get study themes
The whole report of the study's latest completed study analysis: headline, decision and recommendation, findings, study themes with how many interviews raised each, closed-question tallies, participants' own phrases, segments, the method and limits. Every number is computed from the data. Check `report.split` / `report.banner`: simulated interviews are not evidence about real people. Quotes carry `interview_id` and `message_id` for `get_transcript`. If a newer study analysis is running or failed, the earlier completed one is returned with `newer_run_status`, never partial results. Refused 404 `no_completed_study_run` when the study has none: Start one with run_study_analysis once at least 3 interviews are analysed (get_study_analysis_options), then poll get_study_analysis. Read-only.
Get theme
The brand theme of the organization, or of one study with ``study_id``.
For a study, ``theme`` is its own override (null when it follows the
organization), ``organization_theme`` what it is laid over, and
``resolved_theme`` what participants actually see.
Get transcript
All messages in chronological order. ``type`` distinguishes interviewer questions from participant answers; internal tool/thinking payloads are not included. A structured answer (scale, choice, ranking…) is one participant turn: ``content`` is what they said, and ``recorded_answer`` the value the interviewer recorded from it — the one the response tallies count. ``variables`` carries the answers the interview captured into Interview Flow variables — the structured values behind the conversation, empty for a study that captures nothing. ``decisions`` says how each Branch was decided: the label the classifier emitted, whether it matched a path or fell through to the 'otherwise' one, and the step chosen. Graph step ids are the ones you authored, so they can be passed back to search or clustering.
Get welcome
Get the welcome message
Health health get
Liveness check
Import questions to graph
Build a straight-line flow from the study's existing linear questions —
start → each question in order → end — and save it, **replacing any flow the
study already has**.
**Use a flow only when the interview cannot work without one.** Keep the study
on the linear question list otherwise; it is faster to write and revise and
cannot fail in the ways a flow can. None of these needs a flow:
* recording where a participant came from, or your own id for them —
`?source=` and `?participant_id=` on the interview link, or the embed
widget's metadata. Every interview stores them as `web_source` and
`external_participant_id`;
* passing page, account or user context into the interview — the embed
widget's metadata;
* a follow-up that depends on the answer ("if they mention price, ask what
they compared it with"; "if they say no, ask what stopped them") — write it
in the question's private guidance (`explanation`);
* drawing out a short or vague answer — `follow_up`, `min_turns`/`max_turns`
and guidance;
* screening people out, or recording who they are — screening and
characteristics questions. Never screen inside a flow: a screened-out
person's answers are kept on their interview (`get_interview` →
`qualifications`, `termination_reason: "disqualified"`);
* keeping what people said when they drop out — every turn is saved as it
happens, and an abandoned interview stays in `list_interviews`
(`completed: false`), `get_transcript` and the analysis tallies. No
`output_var` is needed for that;
* optional questions at the end — put them last and say they are optional;
someone who stops there keeps everything they already said;
* doing something when an interview ends — the `interview.completed` webhook
and the study's `redirect_url`.
A flow is warranted only when participants must be routed to different
**blocks** of questions that would be wrong to ask everyone, a question must
repeat for each of an unknown number of items, a captured answer must be
inserted into a later question's text, or the interview must call your API or
send a signal at a specific point mid-interview. If each path would be a
single question, write one question whose guidance covers each case instead.
**Pro and Team plans only.** Below Pro, every flow-authoring call (this one,
`describe_graph_nodes`, `check_graph`, `set_graph`, `patch_graph`,
`import_questions_to_graph`, `upload_flow_image`, `activate_graph`) is refused
with 403 `upgrade_required`, and a study in graph mode cannot be published.
Build the study on the linear question list instead (`create_question`,
`generate_questions`).
If a flow is warranted, this is the usual starting point: you get a flow that
behaves exactly like the current interview, then add branching to it with
`patch_graph`. Each question captures its answer as `q1`, `q2`, … so you can
branch on them or pipe them into later question text straight away. A
straight line with nothing added does exactly what the linear list already
does, so do not activate one.
Does not change the study's interview mode; call `activate_graph` when ready.
List analyzable questions
Questions of the study that fit the requested analysis ``category``:
* ``text`` — free-text questions (clusterable; ``distinct_user_count`` is the
respondents clustering can use — those whose answers have been embedded,
which happens automatically when an interview ends)
* ``scale`` — scale questions with their scale config and answer counts
* ``options`` — single-select, multi-select and ranking questions with answer counts
``response_count`` is the number of interviews that answered, one each.
For graph-mode studies, ``id`` carries the graph node ID.
List clips
The study's saved clips, newest first, with their text, times and tags. Filters: interview_id, external_participant_id, tag, created_by=me, q (searches titles, notes and quote text), has_video.
List embed keys
Every embed key owned by the caller's organization (secrets omitted).
List interviews
Interviews for a study, newest first. Filter by completion status, simulation flag, test runs (left out unless asked for) and start-time range. Each row carries where the participant arrived from — ``web_source`` (the entry link's ?source= tag), ``external_participant_id`` (its ?participant_id=, or the embed metadata bag's participant_id key) and ``referrer``. Pass ``external_participant_id`` to look up one person's interviews by your own id for them.
List interview analyses
Every interview of the study, newest first, with the state of its latest thematic analysis: `not_analysed`, `queued`, `running` (`phases_completed` of 4), `completed` or `failed`. Poll it after `run_interview_analysis`; read a completed one with `get_interview_themes`. `stalled` marks an analysis whose worker went away: start it again and it resumes where it stopped. A study analysis (`run_study_analysis`) reads only interviews whose latest analysis completed. To poll analyses you started, pass their `interview_ids`; `counts` always covers every interview (or every one you named). Read-only.
List media exports
Recent exports of this study's media and their state, newest first.
List personas
Every persona defined for the study, newest first.
List projects
List every project in the caller's organization.
List questions
The study's main questions, resolved and in interview order.
List simulations
Every simulation run for the study, newest first, with the interview each produced and what it cost.
List studies
List studies in a project
List study analyses
The study's study analyses, newest first (at most 20), with their state. The latest completed one is what `get_study_themes` returns. Read-only.
List study contacts
Everyone in this study who shared contact details in the contact step, newest first, with their interview id and your own participant id (if the link carried one) — the list to work from for a follow-up round, a diary study or rewards you send yourself. Personal data: keep it out of analysis and anything you share. Each page read is recorded in the audit log. Test runs are left out unless asked for.
List webhooks
Every webhook endpoint in your organization, newest first. Signing secrets are not included — they are shown only when an endpoint is created or its secret is rotated.
List webhook deliveries
The delivery log for one endpoint, newest first: what was sent, who it was about, the status your server returned, and the error if it failed. This is the record to read when an expected event never arrived — a 4xx or a connection error here says the delivery was attempted and your receiver refused it, while no row at all says nothing fired (check that the endpoint is enabled and subscribed to that event type). Interview deliveries carry external_participant_id, your own id for the participant, so this log reconciles against your own records: success=false lists the people you were told about but may never have acted on, and external_participant_id=<id> shows every attempt for one person. Deliveries logged before that field existed report null.
List webhook event types
Every event an endpoint can subscribe to, what makes it fire, and the fields its payload carries — read this before creating an endpoint, so the subscription names events that exist and the receiver knows what it will get. ``interview.completed`` and ``interview.started`` carry ``external_participant_id``, your own id for the participant, which is what lets a receiver act on a finished interview without calling back.
List welcome translations
List welcome-message translations
Merge codes
Fold one code into another: its annotations count for `into_ref` from now on, and its ref stays as a pointer to it. Returns the code that absorbed it. Recorded in `get_study_codebook`'s history. Refused 409 `codebook_cycle` (into itself, or into a code merged into this one), `code_not_live`, 404 `unknown_code_ref`. Free.
Patch graph
Apply targeted edits to the stored flow instead of rewriting it — safer than
read-modify-write on a large flow, and it leaves untouched steps exactly as the
researcher arranged them.
Operations are applied in order to the stored flow, then the **result is
validated as a whole**, so passing through an invalid intermediate state is
fine. As with `set_graph`, nothing is saved unless the end state is valid.
* `{"op": "add_node", "node": {...}}`
* `{"op": "update_node", "id": "q_pets", "config": {"text": "New wording?"}}` —
merges into the step's config; omitted keys keep their value, `null` clears one
* `{"op": "remove_node", "id": "q_pets"}` — also drops its connections and
detaches anything attached to it. It does **not** reconnect the steps either
side, so add the edge that bridges the gap in the same call, or the step
before it is left with no way onward (`dead_end`)
* `{"op": "add_edge", "edge": {"from": "branch", "to": "q_ideal", "default": true}}`
* `{"op": "update_edge", "from": "branch", "to": "q_story", "condition": {...}}`
* `{"op": "remove_edge", "from": "branch", "to": "q_story"}`
The result must satisfy the same rule as any saved flow: **every step leads
onward to an `end` step** (see `check_graph` for the full list of checks).
Example — rewording a question and raising its turn limit:
```json
{"ops": [{"op": "update_node", "id": "q_story",
"config": {"text": "Tell me more about your pet.", "max_turns": 6}}]}
```
Pause study
Stop admitting new participants and unlock editing. Interviews already running finish on the configuration they started with; in_flight_count says how many. Resume with publish_study.
Publish study
Open the study, or resume a paused one, after checking the plan, credits and
validation. Publishing an open study is a no-op.
A refusal is an HTTP error whose `detail.code` says what to do:
* `plan_limit_reached` (402): the plan's open-study limit is used; `open_studies`
lists the studies holding it. Ask the user which to pause, or suggest upgrading.
* `flow_not_on_plan` (402): the study runs an Interview Flow, which only Pro and
Team include. `deactivate_graph` runs its question list instead.
* `payment_required` / `insufficient_credits` (402): billing or credits.
* `credit_shortfall` (409): repeat with `acknowledge_credit_shortfall`.
* `validation_ethical` / `validation_blocking` (422): fix the listed issues.
A blocking `stacked_question` is a question asking three or more things at
once: rewrite it to ask the most important one and move the rest into its
`explanation`, where the interviewer asks them one at a time.
* `validation_issues` (409): fix them, or repeat with
`acknowledge_validation_run_id` set to the returned `validation_run_id`.
Rework any `sequential_overlap` issue (a question that re-asks the one
straight before it) or `stacked_question` (two asks in one) rather than
acknowledging it.
* `validation_unavailable` (503) / `study_changed` (409): try again.
Refresh report share
Take a new snapshot of the study's latest completed study analysis onto the same link: the URL stays, the report it shows is the latest. The confirmations are asked again (409 `report_mixes_simulated` / `report_shows_real_quotes`) only when their facts changed; until then the link keeps its old snapshot. A link revoked because an interview in it was erased or deleted (`revoked_reason` `interview_erased` / `interview_deleted`) comes back here once the latest study analysis leaves that interview out; while it is still included the refresh is refused 409 `report_holds_erased_interview` (run_study_analysis again with the interview in `excluded_interview_ids`). A link revoked by a person (`user`) is refused 409 `report_revoked`: call create_report_share for a new one.
Refresh study share
Re-freeze the study's current state into an existing link, so the URL stays the same but shows (and copies) the latest version. Links already copied are unaffected. Refused 409 `share_revoked` for a revoked link.
Reorder characteristic questions
Supply every characteristic question ID in the desired order.
Reorder questions
Supply every question ID in the desired interview order.
Reorder screening questions
Supply every screening question ID in the desired order.
Report feedback
Send feedback to the Deutero team about something this server could not do (a missing capability or a failing tool). Use it only when the user asks to send feedback. Do not include personal data or secrets.
Retry study analysis
Start a new study analysis with a failed one's interviews, segments, bylines and model. It costs the same as a new one, so it is confirmed the same way: refused 409 `credit_confirmation_required` until resent with `acknowledge_credits`. Refused 409 `study_run_not_failed` for a run that did not fail.
Revoke report share
Stop a report link working: from now on its URL shows nothing (404). Cannot be undone; revoking a revoked link changes nothing and returns it as it is.
Revoke study share
Stop a link working: its URL shows nothing from now on. Studies already copied from it stay with their owners. Cannot be undone (call create_study_share for a new URL); revoking an already-revoked link changes nothing.
Rotate webhook secret
Mint a new signing secret for this endpoint and return it — the only other time a secret is shown. **The previous secret stops verifying immediately**, so deploy the new one to your receiver before the next event fires, or expect signature failures in between. Use this when the secret from ``create_webhook`` was lost or leaked.
Run clustering
Group participants' free-text answers to one question into themes.
Each participant's answers are condensed into a single vector, k-means sorts
those vectors into ``n_clusters`` groups, and every group is given a short
thematic label and summary. Labeling uses the platform's analysis model and is
best-effort: if it fails the groups are still returned, just with generic
labels.
No setup is needed — the vectors are computed automatically as interviews come
in. You only need enough answered responses to fill the requested number of
clusters; if there are too few, the call returns ``400`` (lower ``n_clusters``
or wait for more responses).
The result is saved: it appears on the study's Analyze page in the dashboard
and can be re-fetched later with ``GET .../clustering/latest``.
Run interview analysis
Start the thematic analysis of up to 50 interviews and return at once: each is read in four phases (impressions, coding against the study codebook, themes, connections) in the background, a few minutes per interview. Poll `list_interview_analyses`, then read each with `get_interview_themes`.
**Credits.** Each interview costs `credits_per_interview`, charged when its analysis completes (a failed one costs nothing; starting it again resumes it without paying again for the phases done). The first call is refused 409 `credit_confirmation_required` with `estimated_credits` and `available_credits`: tell the user the cost and only once they agree resend with `acknowledge_credits` set to it. A spend the balance cannot hold is refused 402 and nothing starts. Interviews already analysed are not charged again unless `rerun`; ones with nothing to analyse are skipped.
Refused 422 `unknown_interviews` when an id is not an interview of this study, 403 `upgrade_required` for a tier the plan does not include.
Run simulation
Start one simulated interview and return immediately — the run continues in the background, so poll ``GET /simulations/{simulation_id}`` for its outcome.
Credits are reserved at the estimated cost before the run starts; a request that would exceed the balance is refused with 402 and costs nothing. Plan limits apply: simulations are not available on Hobby, and the standard/premium tiers need Solo/Team.
Set ``participant_model`` to 'persimmon' to have Persimmon (humans&) write the persona's answers instead of the tier model; the price is unchanged. Persimmon reads text only, so a study with image questions is refused with 409.
Run one persona per call; to sweep a panel, call once per persona.
Run study analysis
Start the study report: one synthesis across the study's analysed interviews (study themes with counts, findings, closed-question tallies, phrases, segments), in the background, a few minutes. It reads interviews whose latest interview analysis completed (`get_study_analysis_options`; at least 3), real ones by default. Poll `get_study_analysis`, then read the report with `get_study_themes`.
**Credits.** One study analysis costs `estimated_credits` (held now, charged on completion, released on failure). The first call is refused 409 `credit_confirmation_required` with the figure and `available_credits`: tell the user, and only once they agree resend with `acknowledge_credits`. A spend the balance cannot hold is refused 402.
Refused 422 `too_few_interviews` / `invalid_selection` / `invalid_segment_source` / `invalid_byline_source`, 409 `study_run_in_progress` (one at a time), 403 `upgrade_required` for a tier the plan does not include.
Search transcripts
Search participant answers in a study.
* ``mode=string`` — full-text (websearch syntax: quoted phrases, ``-term``)
fused with trigram fuzzy matching. No external services required.
* ``mode=semantic`` — embedding similarity over stored response vectors
(query embedded with Voyage AI). Finds conceptual matches that share no
words with the query. Only messages that have embeddings are searchable.
* ``mode=hybrid`` (default) — reciprocal-rank fusion of all three rankings;
falls back to string-only behavior if semantic search is unavailable and
``strict`` is false.
Optionally scope to one question with ``question_id`` (questions-table ID, or
graph node ID for graph-mode studies).
Set characteristics settings
Enable/disable characteristic collection (disabling preserves the question list), the anonymous flag, and the contact step: a separate form asking participants for an email and/or phone at the start or end of the interview, stored apart from the transcript (read what people gave with list_study_contacts / get_interview_contact). Only the fields you send change.
Set graph
Write a complete interview flow, replacing whatever is stored.
**Use a flow only when the interview cannot work without one.** Keep the study
on the linear question list otherwise; it is faster to write and revise and
cannot fail in the ways a flow can. None of these needs a flow:
* recording where a participant came from, or your own id for them —
`?source=` and `?participant_id=` on the interview link, or the embed
widget's metadata. Every interview stores them as `web_source` and
`external_participant_id`;
* passing page, account or user context into the interview — the embed
widget's metadata;
* a follow-up that depends on the answer ("if they mention price, ask what
they compared it with"; "if they say no, ask what stopped them") — write it
in the question's private guidance (`explanation`);
* drawing out a short or vague answer — `follow_up`, `min_turns`/`max_turns`
and guidance;
* screening people out, or recording who they are — screening and
characteristics questions. Never screen inside a flow: a screened-out
person's answers are kept on their interview (`get_interview` →
`qualifications`, `termination_reason: "disqualified"`);
* keeping what people said when they drop out — every turn is saved as it
happens, and an abandoned interview stays in `list_interviews`
(`completed: false`), `get_transcript` and the analysis tallies. No
`output_var` is needed for that;
* optional questions at the end — put them last and say they are optional;
someone who stops there keeps everything they already said;
* doing something when an interview ends — the `interview.completed` webhook
and the study's `redirect_url`.
A flow is warranted only when participants must be routed to different
**blocks** of questions that would be wrong to ask everyone, a question must
repeat for each of an unknown number of items, a captured answer must be
inserted into a later question's text, or the interview must call your API or
send a signal at a specific point mid-interview. If each path would be a
single question, write one question whose guidance covers each case instead.
**Pro and Team plans only.** Below Pro, every flow-authoring call (this one,
`describe_graph_nodes`, `check_graph`, `set_graph`, `patch_graph`,
`import_questions_to_graph`, `upload_flow_image`, `activate_graph`) is refused
with 403 `upgrade_required`, and a study in graph mode cannot be published.
Build the study on the linear question list instead (`create_question`,
`generate_questions`).
**Nothing is saved unless the flow is valid** — on any problem this returns 422
with the same error list `check_graph` gives, and the stored flow is untouched.
**Every step must lead onward to an `end` step.** A step with nothing after it
does not end the interview — it is an error. The interview ends only by
reaching an `end` step, so connect each final question to one explicitly. A
flow is refused when:
* a `start`, `question` or `decision` step has no outgoing edge (`dead_end`);
* a step cannot be reached from `start` (`unreachable`);
* a step has no forward path to an `end` step (`no_path_to_end`). An edge
looping back to an earlier step does not count: every loop needs a way out
that reaches an end;
* a `start` or `question` step has more than one outgoing edge (`fanout`) —
only a `decision` splits;
* a `decision` does not have exactly one `"default": true` path
(`no_default`). A deterministic decision may leave it out only when its
conditions cover every possible answer of a choices or scale question. An
`llm_classifier` decision always needs one, and any class without a path of
its own goes down it;
* the question an `extract` or `webhook` step follows does not itself connect
onward (`dead_end`).
In the browser editor, a Branch path with nothing connected is refused too
(`unconnected_path`).
Steps are connected two different ways, and mixing them up is the most common
mistake:
* `start`, `end`, `question` and `decision` steps sit on the interview's path
and are connected with `edges`.
* `extract` and `webhook` steps attach to a question with `"after": "<question
id>"`, and `context_fetch` attaches with `"before": "<question id>"`. They are
never listed in `edges`; the compiler splices them into the right place.
A minimal branching flow:
```json
{"flow": {"nodes": [
{"id": "start", "type": "start"},
{"id": "q_pets", "type": "question",
"config": {"qtype": "options", "text": "Do you have pets?",
"options": ["Yes", "No"], "output_var": "has_pets"}},
{"id": "branch", "type": "decision", "config": {"mode": "deterministic"}},
{"id": "q_story", "type": "question",
"config": {"qtype": "open_ended", "text": "Tell me about your pet."}},
{"id": "q_ideal", "type": "question",
"config": {"qtype": "open_ended", "text": "Describe your ideal pet."}},
{"id": "end", "type": "end"}
], "edges": [
{"from": "start", "to": "q_pets"},
{"from": "q_pets", "to": "branch"},
{"from": "branch", "to": "q_story",
"condition": {"var": "has_pets", "op": "eq", "value": "Yes"}, "priority": 0},
{"from": "branch", "to": "q_ideal", "default": true, "priority": 1},
{"from": "q_story", "to": "end"},
{"from": "q_ideal", "to": "end"}
]}}
```
Every step here leads onward: both questions after the decision connect to
`end`, and the decision has a default path. Leave out either `… → end` edge and
the flow is refused with `dead_end` on that question.
Use `{{captured_answer}}` in question text to pipe an earlier answer in. The
validator enforces that a captured answer is only used where it is guaranteed
to exist.
Valid flows come back with the same `warnings` as `check_graph`; they never stop
a save, but read them before activating.
Saving does not switch the study into graph mode — call `activate_graph` for
that. The flow is fully editable afterwards in the browser flow editor, and
step ids, positions and webhook signing secrets survive round trips.
Set screening settings
Enable/disable screening and set the disqualification message and redirect URL. Disabling preserves questions and settings. The redirect URL may carry ``{{external_participant_id}}``, replaced at screen-out time with the id this interview arrived with, so a panel callback can say who bounced as well as who finished. It is the only placeholder understood: a single-braced ``{external_participant_id}`` is corrected to it, and any other ``{{…}}`` is stored untouched but named in ``redirect_url_warning``.
Set theme
Style the participant interview pages (chat, voice and video) and the embed
widget for the organization, or for one study with ``study_id``. The widget
wears the theme unless the site embedding it overrides a colour or opts out
(``data-study-theme="false"``); it does not get custom CSS.
**theme** — every key optional:
* ``light`` / ``dark``: colours, each a hex ``#rgb`` / ``#rrggbb`` —
``accent`` (buttons, progress, the participant's bubbles), ``bg``,
``surface``, ``fg``, ``muted``, ``line``, ``bot``, ``bot_fg``, ``user``,
``user_fg``. Unset colours keep Deutero's default for that mode, so a theme
that sets only ``light`` leaves dark mode as it was.
* ``font_body`` / ``font_display``: Google Fonts family names, exactly as
Google lists them (``"Inter"``, ``"Fraunces"``); ``body_weight`` /
``display_weight``: a weight that font comes in (refused otherwise, with the
weights it has).
* ``radius``: ``rounded`` | ``soft`` | ``square``.
* ``default_mode``: ``system`` | ``light`` | ``dark`` — what a participant
first sees; their own toggle still wins.
The save is refused (422, ``invalid_theme``) with every problem listed when a
value is not allowed or text would be hard to read: ``fg`` on ``bg`` and on
``surface``, ``user_fg`` on ``user`` and ``bot_fg`` on ``bot`` must each reach
4.5:1 contrast (WCAG AA), judged with the defaults filling unset colours — and,
for a study, laid over the organization's theme.
Example: ``{"theme": {"light": {"accent": "#e4572e", "bg": "#fff8f0"},
"font_body": "Inter", "radius": "soft"}}``.
**custom_css** (Pro and Team; 403 ``upgrade_required`` otherwise): sanitised
and stored; ``css_stripped`` says what was removed. A study's CSS applies after
the organization's. It styles the hosted pages only, under a
Content-Security-Policy that blocks any outside load (fonts belong in
``theme``).
Fields left out are unchanged; null clears. The organization's theme can be
set only by an organization admin.
Set welcome
Create or replace the study's welcome/consent message. Set ``consent`` to true
to require participants to explicitly agree before the interview begins.
``message`` is limited Markdown on the chat, voice and video start screens
(paragraphs, **bold**, *italic*, lists, ``###`` headings, ``https`` links).
The start screen's other copy is optional: ``title``, ``time_estimate``,
``footer`` (links only), the button labels ``continue_label``,
``consent_yes_label`` and ``consent_no_label``, and ``hero_alt``. **A field you
leave out keeps its current value**; send it blank or null to restore the
default. Custom button labels change only what the button says — the answer
the interview records is the same. The hero image itself is uploaded with
``upload_welcome_hero``.
``warnings`` lists Markdown the start screen will not render (images, HTML,
links that are not ``https://`` or ``mailto:``). The welcome is saved anyway.
Messaging channels (Slack, WhatsApp) and the spoken greeting use ``message``
as plain text; the other copy appears only on the web start screen.
Update characteristic question
Update a characteristic question
Update clip
Change a clip's title, tags or note, or re-trim it with a new locator (the same ones as create_clip, within the clip's interview). Re-trimming keeps the clip's id.
Update code
Change one code of the study's codebook: its wording (`label`, definitions), its `status` (`active` adopts a provisional code or reinstates a retired one; `retired` stops it being offered to coders, its codes stay), or its parent (`parent_ref`, one level only; `clear_parent`). Every change is recorded in `get_study_codebook`'s history, and later interview analyses code against the new version; interviews already coded keep their codes and show the drift. Refused 409 `label_taken` (another live code has the label), `code_not_live`, `code_not_retired`, `codebook_cycle` or a hierarchy error, 404 `unknown_code_ref`. Free.
Update embed key
Change allowed origins, revoke/reactivate (``status``), or adjust the metadata size limit.
Update persona
Replace a persona's description, and optionally its `label` (the byline reports credit its quotes with) and `segment`; omitted fields are left as they are. Simulations already run keep the text they ran against — this only affects future runs.
Update project
Update a project's name and/or description. Omitted fields are untouched.
Update question
Partial update. Pass an empty list to clear ``options``/``slots``/``groups``.
Update recruitment
Set a custom short-link slug, the response quota, and/or the post-completion
redirect URL. Omitted fields are untouched; set ``clear_max_responses`` to
true to remove the quota. The slug must be unique across all studies.
The redirect URL may carry ``{{external_participant_id}}``, which is replaced
at the end of the interview with the id that interview arrived with (from the
link's ``?participant_id=`` or the embed metadata bag) — the usual way to hand
a panel or CRM its own id back on completion. It expands to the empty string
for an interview that carried no id, so a callback that requires one should be
built from links that always set it.
``{{external_participant_id}}`` is the only placeholder either redirect
understands. A single-braced ``{external_participant_id}`` is corrected to it
(a URL stored with the literal text would silently never substitute); any
other ``{{…}}`` is stored untouched but named in ``redirect_url_warning``,
which is null when the URL was stored exactly as sent.
Update screening question
Update a screening question
Update study
Partial update of study properties. Only fields present in the request body are changed. A ``redirect_url`` is normalized on the way in: a single-braced ``{external_participant_id}`` is corrected to the ``{{external_participant_id}}`` the interviewer substitutes, and anything else in double braces is kept but named in ``redirect_url_warning``.
Update webhook
Partial update: only the fields you send change. Set ``enabled`` false to pause deliveries without losing the endpoint or its secret. Changing ``events`` replaces the subscription list rather than adding to it.
Upload flow image
Store an image for a ``present_images`` question step and get back the
reference to put in that step's config:
``"images": [{"url": "<url from this call>", "label": "Concept A"}, ...]``.
Upload each image first, then add the references with `set_graph` /
`patch_graph`; nothing in the flow changes until you do.
Send the file base64-encoded in ``image_base64`` (bare base64 or a
``data:image/...;base64,`` URL); JPEG, PNG and WebP up to 10 MB. It is stored
the way the dashboard stores question images: downscaled to fit 1024x1024 and
re-encoded as WebP. A step's images may also be ordinary ``https://`` URLs
you host yourself; those need no upload.
Or send ``image_url``: a public ``https://`` URL the server downloads once
and stores as its own copy. Prefer it whenever the file is already hosted:
base64 has to be written out character by character in the tool call. Private
or internal addresses, non-443 ports and more than three redirects are
refused, with the reason in the 400.
Upload question image
Attach one image to a ``present_images`` question — the stimulus the
interviewer shows the participant before asking about it (concepts, logos,
packaging, screenshots). Call once per image.
Send the file base64-encoded in ``image_base64`` (bare base64 or a
``data:image/...;base64,`` URL); JPEG, PNG and WebP up to 10 MB. It is stored
the way the dashboard's question editor stores it: downscaled to fit
1024x1024 and re-encoded as WebP. ``label`` is the caption participants see.
Or send ``image_url``: a public ``https://`` URL the server downloads once
and stores as its own copy. Prefer it whenever the file is already hosted:
base64 has to be written out character by character in the tool call. Private
or internal addresses, non-443 ports and more than three redirects are
refused, with the reason in the 400.
The question must already be a ``present_images`` question (create it with
``"qtype": "present_images"``). The image is added after the existing ones
unless ``position`` says otherwise; the others shift to make room. Remove one
with ``delete_question_image``.
Upload welcome hero
Set the image shown above the start screen's title on the chat, voice and video
pages — a product shot, a campaign image, or simply a large logo. Replaces any
previous hero image.
Send the file base64-encoded in ``image_base64`` (bare base64 or a
``data:image/...;base64,`` URL); JPEG, PNG and WebP up to 10 MB, stored
downscaled to fit 1024x1024 as WebP. Give ``alt`` text for screen readers.
Or send ``image_url``: a public ``https://`` URL the server downloads once
and stores as its own copy. Prefer it whenever the file is already hosted:
base64 has to be written out character by character in the tool call. Private
or internal addresses, non-443 ports and more than three redirects are
refused, with the reason in the 400.
The welcome message must be set first (``set_welcome``). Remove the image with
``delete_welcome_hero``.
Upsert welcome translation
Upserts the translation for ``target_language`` (one translation per target language). The welcome message must be set first. ``fields`` translates the start screen's other copy (title, button labels, footer...); omit it to keep what the translation already has.
Validate questions
Review the study's questions before it goes live, the same check the dashboard's
**Validate** button runs.
Returns three things:
* **Ethics** — one pass/fail for the whole set, with the specific concerns when it
fails (offensive or intrusive wording, targeting under-13s, asking for
identifying, financial, or medical details, requesting explicit images).
* **Language quality** — per question, any clarity, grammar, or spelling problem,
judged in the study's own language.
* **Redundancy** — per question, which other questions it overlaps with and how.
* **One ask per question** — per question, the separate things it asks at once
(``one_ask.asks``) and a single-ask ``rewrite``. A question asking three or
more things (``one_ask.blocks_publish``) stops ``publish_study``; move the
extra asks into the question's ``explanation`` as follow-ups.
Findings carry both the question's ``number`` (1-based interview order) and its
``question_id``, so you can act on them with ``PATCH .../questions/{question_id}``.
Nothing is changed by this call, and no result is stored — it is advisory only.
This is a model call over the whole question set, so it typically takes ten to
twenty seconds.
Validate study
Check everything participants will read (questions or flow, welcome, screening, characteristics) for ethical, blocking and methodological issues, and record the result. publish_study reuses it while the configuration is unchanged. A model call: allow up to a minute.
Conéctate
Añade Deutero MCP a tu Slack en dos minutos.
Sin flujos que configurar. Activa las herramientas que ya usas y tu agente se pone a trabajar.
Añadir a Slack
1
Añade Sokko a Slack
Un clic desde el marketplace de Slack. Todo tu equipo tiene Sokko de una vez.
2
Conecta tus herramientas
Sokko funciona con más de 1000 apps y cualquier servidor MCP.
Martin
9:53 AM
@Sokko
¿Qué puedes hacer con Deutero MCP?
3
Pon a Sokko a trabajar
@menciona a Sokko en cualquier canal y arranca. Minutos, no un fin de semana.
Preguntas, respondidas.
Sokko es un asistente de IA que vive en tu Slack. Conecta tus apps, pide lo que necesitas en lenguaje natural y Sokko se encarga del trabajo por ti.
Regístrate en Sokko, pídele a Sokko que se conecte a Deutero MCP y aprueba la conexión cuando se te solicite. A partir de ahí puedes pedirle a Sokko que haga cosas en Deutero MCP cuando quieras.
No. No hay nada que crear ni configurar. Le pides a Sokko en Slack igual que se lo pedirías a un colega, y Sokko se encarga del resto.
Sí. Pídelo una vez y dile a Sokko cuándo repetirlo, como cada lunes a las 9 h, y se convierte en una rutina que se ejecuta sin ti.
Leer y actuar sobre los datos de Deutero MCP, y lanzar workflows cuando algo cambia. Dile a Sokko el resultado que quieres y se encarga del resto.
Sí. Sokko se conecta a más de 1.000 apps y a cualquier servidor MCP, así que puedes pedir tareas que abarquen Deutero MCP y el resto de tu stack en una sola petición.