跳到正文
Pumati开发者文档
Language / 语言: 简体中文
登录

此页面尚未提供简体中文版本,因此以英语显示。

Guides

Quick comparison

Use a quick comparison for small decisions: a color, a button label, an icon. Each tester reads the situation you describe, zooms into the 2 to 4 images, picks one and explains why from their own experience, in about 30 seconds. No install needed. A person's answer is worth more than an AI's guess from the images only when they can put themselves in a real situation: write the context.

Create and publish

  1. For each image, create_upload and then send the file to the upload_url it returns: curl -sS -T mockup.png "<upload_url>" (PNG, JPEG or WebP, up to 5 MB and 4096 px a side). The reply has the file's sha256: compare it with shasum -a 256 mockup.png. An upload works for 30 minutes, only through this connection and for this app. To use a file you already uploaded for another comparison of the app, pass its sha256 to create_upload: when the reply has reused: true, use the upload_id as is without sending anything (each comparison gets its own copy).
  2. create_comparison with context (who the app is for, when users see this screen, what you are deciding; up to 600 characters, shown to testers as plain text above the question), the question, an optional follow_up question testers may answer briefly, each option's upload_id (or the file as image_base64, exactly as base64 < mockup.png printed it), how many responses you want and when it ends. Labels are yours; testers never see them. Without context the result warns with NO_CONTEXT and a context_hint (so does publish_checklist); update_test can add it. A question that leads the answer (LEADING_QUESTION), asks two things at once (DOUBLE_BARRELED_QUESTION), is too abstract to judge by (ABSTRACT_QUESTION) or keeps draft blanks ___ (DRAFT_BLANKS) adds that code and question_hints saying how to rewrite it, in the same places; publishing is not blocked, so rewrite it with update_test. The result lists each option's image (sha256 and bytes of the file as sent, before metadata is stripped, width, height) and its preview_url with preview_url_expires_at, so you can show the user what testers will see without calling get_test, plus budget, available, spend_limit_left, publishable (the smaller of the last two) and fits. When the screen already runs on the web, make the options HTML prototypes instead of screenshots; images are for designs with no working screen yet.
  3. publish_test with the returned mission_id and draft_revision. Each response costs 2 credits. Fewer than 20 responses can never give a verdict: create_comparison, update_test and get_test's publish_checklist then warn with TOO_FEW_RESPONSES_FOR_DECISION and the minimum's budget. It does not stop publishing; tell the user. list_apps shows each app's publishable credits, and a new app's upsert_app result has the same decision_minimum, so plan comparisons before drafting.
  4. get_test later: comparison holds each option's image facts and a few-minute preview_url, the split per option, and every reason with the follow-up answer. Reasons never say who wrote them (no language, country or past-use answer).
  5. Once you and the user have decided, record_decision: option with the option's option_index (its index in get_test), none, or more_data, and an optional note (300 characters; note_visible shows it to testers). Everyone who answered is notified whether their pick was chosen, never with your labels. Change it any time, before or after the end: the history is kept, and testers hear again only when the outcome changes. get_test returns the current decision.

HTML prototypes

Instead of images, the options can be clickable HTML prototypes testers use inside Pumati before choosing: flows, reactions and feel, which still images cannot show. Every option of a comparison is then a prototype.

  1. For each prototype, create_upload with kind: "prototype" and send its zip to the upload_url: curl -sS -T proto.zip "<upload_url>". The reply has the zip's sha256 and bytes (compare with shasum -a 256 proto.zip), files and unpacked_bytes (bundled fonts included), fonts when it links web fonts (what was bundled, and what was left out in skipped), or the reason it was refused (for example path, extension, symlink, ratio, no_index).
  2. create_comparison with each option's upload_id and viewport: "mobile" (390×844 in a phone frame, the default) or "desktop" (1280×800). The result lists each option's prototype (sha256, bytes, files, unpacked_bytes, entry, viewport).
  3. Testers switch between the prototypes in tabs (each keeps its state), can go full screen, and can choose only after opening every one. The page, not the prototype, measures how long each was on screen.
  4. get_test: each option has its prototype, a preview_url to its page on pumati.app where your app's members (signed in) try it in a sandboxed frame, and avg_seconds. brief_responses counts answers that kept some option on screen under brief_seconds (3); each such reason has brief: true and seconds_by_option. Brief answers are only flagged: they are still paid and counted.

Show the screen in its flow

The same screen can be judged differently depending on what comes before and after it. A scenario puts the compared options inside the flow they belong to, and an optional task tells testers what to try.

  1. Read the app's real flow (its code, routes or screens) and pick 2–8 steps around the screen you are comparing. For each step, create_upload a screen every option shares (an image, or a prototype zip with kind: "prototype"; it may differ in kind from the options), or leave it to words.
  2. create_comparison with scenario: steps (title, optional note, optional screen_upload_id), compare_step (the step number, from 1, where the options appear; it has no screen) and an optional task, e.g. "Add milk to the cart and finish paying". The result lists each step's stored screen.
  3. Testers read the context, then the task, then step through the flow (1/4 …) and compare the options in their step, labelled by position; shared screens say "shared screen". They can choose once they have seen every option (prototypes: as the server recorded).
  4. get_test: comparison.scenario has each step with its screen's screen_id, sha256 and a preview_url. update_test replaces the whole scenario (keep a screen with its screen_id, null removes it). Without a scenario you get NO_SCENARIO and a scenario_hint, never a refusal; for the app's first screen or a screen outside any flow, ignore it. Once published, the scenario cannot change.

Moving on from inside the screen

Testers can move to the next step with the buttons inside the screen, not only the step buttons outside it, in full screen too. In an HTML prototype (a shared screen or an option), mark the button or link that leads on. Tapping it goes to that step and does nothing else; clicks made by script do not count.

<a href="#pumati:next">Pay</a>
<a href="#pumati:prev">Back</a>
<a href="#pumati:step=3">Go to step 3</a>
<button data-pumati-goto="next">Next</button>

On an image shared screen, add hotspots: up to 8 per step, each x, y (from the top left), w, h as fractions of the image (0–1, at least 0.02) and to, the step it goes to (from 1, not its own). In the web form, drag over the image to draw them.

How answers stay fair

  • Each tester sees the options in their own random order, labelled only by position.
  • Nobody sees results before answering.
  • A reason of at least 15 characters is required, asked as "In this situation, which one would you use? Tell us why, connecting it to your own experience." Empty, unrelated or copied reasons earn no reward.

Too close to call

indeterminate is true when there are fewer than 20 responses, the top options tie, or the leader is not significantly ahead of the runner-up (two-sided exact binomial test on the top two options' answers, p > 0.05). Then don't treat the leader as a decision: ask more people or change the options.