Skip to content

Crowdsourcing Integration

Run Potato studies on Prolific, SONA, CloudResearch Connect or any panel that passes a participant ID, with URL login, completion codes and attention checks.

Potato collects crowdsourced annotations by reading the participant ID out of the URL the platform sends people to, then showing a completion code at the end. Prolific, SONA subject pools, CloudResearch Connect, Clickworker and Microworkers each have a provider, and the generic provider covers any other panel that works the same way. Amazon Mechanical Turk closed on September 30, 2026, so a study that ran there has to move to one of these platforms, and the section Moving a Study off MTurk below lists the steps.

Running on an Open Port

A crowd worker has to reach the server, so run it on a port open to the internet:

bash
potato start your-project -p 8080

Workers then arrive at https://your-server:8080/. Put a reverse proxy in front of it for TLS, as described in Production Setup.

Crowd Providers

The crowdsourcing block names the platform. Prolific, SONA, Connect, Clickworker and Microworkers have their own providers, and generic handles any panel that passes an ID in the URL and accepts a completion code, such as Besample, Positly, User Interviews, Testable Minds, or Cint:

yaml
login:
  type: url_direct
  url_argument: response_id        # must match id_param below
 
crowdsourcing:
  provider: generic                # or prolific, sona, connect, clickworker, microworkers
  generic:
    platform_label: "Besample"     # shown on the done-page return button
    id_param: response_id          # URL parameter carrying the participant ID
    capture_params: [study]        # extra URL params to record
    completion:
      code: "BSMP-4432"
      redirect_url: "https://besample.app/complete?rid={worker_id}&code={code}"
      failed_code: "BSMP-FAIL"     # optional, for blocked participants

redirect_url accepts the placeholders {code}, {worker_id}, {session_id}, {study_id}, and any name listed in capture_params.

Every provider reads the participant ID from the URL parameter named by login.url_argument, so keep login.type: url_direct beside the crowdsourcing block and set url_argument to the provider's id_param. The url_direct login is also what turns off the password prompt. A config with no crowdsourcing block keeps the older behavior, where the login alone reads the ID, and Prolific's minimal setup below uses it.

Prolific

Minimal Setup

Two settings run a Prolific study:

yaml
login:
  type: url_direct
  url_argument: PROLIFIC_PID   # the default
 
completion_code: "YOUR-PROLIFIC-CODE"

Workers arriving from Prolific are logged in under their PROLIFIC_PID with no password prompt. When they finish, they see the completion code and a button back to Prolific.

The Prolific Provider

The prolific provider adds a second code for participants who do not complete the task. A participant blocked by the attention checks, or who fails the training phase, gets failed_code instead of the completion code:

yaml
login:
  type: url_direct
  url_argument: PROLIFIC_PID
 
crowdsourcing:
  provider: prolific
  prolific:
    completion:
      code: "C1ABCDEF"          # defaults to the top-level completion_code
      failed_code: "C1FAILED"   # optional

The Study URL

In your Prolific study settings, set the URL to:

text
https://your-server:8080/?PROLIFIC_PID={{%PROLIFIC_PID%}}&SESSION_ID={{%SESSION_ID%}}&STUDY_ID={{%STUDY_ID%}}

Prolific substitutes the real values. Potato records SESSION_ID and STUDY_ID alongside the participant ID.

Redirecting on Completion

yaml
completion_code: "YOUR-PROLIFIC-CODE"
auto_redirect_on_completion: true
auto_redirect_delay: 5000   # milliseconds

Without the redirect, the done page shows the code with click-to-copy and a return button, which is the safer default when you want workers to keep a record of the code.

Prolific API Integration

For larger studies Potato can talk to the Prolific API, which lets it release slots held by returned or timed-out workers and pause the study when the server is busy. Put the credentials in their own file:

yaml
# configs/prolific_config.yaml
token: "your-prolific-api-token"
study_id: "your-study-id"
max_concurrent_sessions: 30
workload_checker: true
workload_checker_period: 300

Then point the main config at it:

yaml
login:
  type: prolific
 
prolific:
  config_file_path: configs/prolific_config.yaml
 
completion_code: "YOUR-PROLIFIC-CODE"

workload_checker is off unless you turn it on. With it on, Potato pauses the study when active workers exceed max_concurrent_sessions and resumes when they fall to 20% of that number, though only if the monitor paused the study itself. A study you paused by hand is never restarted for you.

Reclaiming Abandoned Work

When a submission comes back RETURNED, TIMED-OUT, or REJECTED, Potato releases that worker's assigned-but-unannotated items so someone else can take them. Annotations they already completed are kept. instance_reclaim changes that per status:

yaml
instance_reclaim:
  enabled: true
  prolific:
    preserve_completed_annotations: true
    status_policies:
      TIMED-OUT:
        preserve_completed_annotations: true
      REJECTED:
        preserve_completed_annotations: false

SONA Subject Pools

SONA Systems runs the participant pools many universities use for course credit. SONA puts a unique code for each participant into the study URL, and Potato uses that code as the participant's ID:

yaml
login:
  type: url_direct
  url_argument: sona_code
 
crowdsourcing:
  provider: sona
  sona:
    hostname: yourdept.sona-systems.com
    experiment_id: 123
    credit_token: your-credit-token   # both from the client-side completion URL on SONA's study information page
    id_param: sona_code               # the default; must match login.url_argument

In SONA, set the study URL to https://your-server.com/?sona_code=%SURVEY_CODE%. When a participant finishes, Potato grants the credit itself through SONA's server-side credit call, so the participant does not have to follow a link back to SONA. If that call fails, the done page shows SONA's client-side credit link instead. Each grant is recorded in the participant's state, so reloading the done page never grants credit twice.

CloudResearch Connect

Connect sends participants to an external study through its Project Link, with the participant's ID in participantId and, optionally, assignmentId and projectId. Potato records all three. Completion is a fixed code, or a redirect to the completion URL shown in the Connect project's settings:

yaml
login:
  type: url_direct
  url_argument: participantId
 
crowdsourcing:
  provider: connect
  connect:
    completion:
      code: "ABC123"
      # or: redirect_url: "https://connect.cloudresearch.com/participant/project/<id>/complete"

Potato does not call Connect's REST API, so approvals and bonuses happen in Connect.

Clickworker

Clickworker's external-survey orders send workers to your URL with their ID, and completion is checked against a code you upload to Clickworker:

yaml
login:
  type: url_direct
  url_argument: worker_id
 
crowdsourcing:
  provider: clickworker
  clickworker:
    id_param: worker_id      # the default
    completion:
      code: "CW-DONE-01"

The provider can also send a completion notification that triggers payment through Clickworker's marketplace API. That postback is experimental, because its contract could not be checked against public documentation, and it stays off unless the config sets experimental: true beside a postback_url.

Microworkers

Microworkers campaigns ask each worker to paste back a verification code, called a VCODE, to prove they finished. Potato derives each worker's VCODE from an HMAC over the worker and campaign IDs, so the same worker always gets the same code, nobody can guess one without the secret, and the provider's verify_vcode method recomputes a code to check a submission:

yaml
login:
  type: url_direct
  url_argument: mw_id
 
crowdsourcing:
  provider: microworkers
  microworkers:
    id_param: mw_id                        # matches {{MW_ID}} in the campaign URL
    capture_params: [campaign_id, slot_id]
    vcode_secret: "keep-this-private"
    vcode_prefix: "mw-"                    # optional

Set the campaign URL on Microworkers to https://your-server.com/?mw_id={{MW_ID}}&campaign_id={{CAMP_ID}}&slot_id={{SLOT_ID}}. Microworkers is an open micro-task crowd, so pair it with the attention checks and gold standards below.

Amazon Mechanical Turk (closed)

Amazon Mechanical Turk closed permanently on September 30, 2026, and it no longer accepts HITs or sends workers. Potato's mturk provider and the workerId login still load, so an archived MTurk config starts, but no worker can reach it. The MTurk Integration page keeps the details for anyone reading an old study's config.

Moving a Study off MTurk

Most of an MTurk study's config carries over unchanged, because attention checks, gold standards, training, assignment and quotas work the same on every platform. Five steps move it:

  1. Pick a platform. Prolific and CloudResearch Connect recruit general research populations, SONA serves a university's own pool, and Clickworker and Microworkers are open micro-task crowds that need stronger quality control.
  2. Change the login. Keep login.type: url_direct, and change login.url_argument from workerId to the new platform's ID parameter (PROLIFIC_PID, sona_code, participantId, worker_id or mw_id).
  3. Swap the platform blocks. Delete the mturk block, because Potato still starts its MTurk API client while that block is present, and add the new platform's crowdsourcing block from this page.
  4. Replace the HIT. Create the study or project on the new platform, point its external URL at your server with the platform's ID placeholder in the link, and set the completion code or redirect it gives you.
  5. Keep the quality controls. Leave attention_checks, gold_standards and the training phase as they were, so results stay comparable with the MTurk data.

Quality Control

Attention Checks

Items with known answers, mixed into the queue:

yaml
attention_checks:
  enabled: true
  items_file: data/attention_checks.json
  frequency: 10
  min_response_time: 3.0
  failure_handling:
    warn_threshold: 2
    warn_message: "Please read items carefully before answering."
    block_threshold: 5
    block_message: "You have been blocked due to too many incorrect responses."

min_response_time catches the failure mode crowdsourcing is most exposed to, which is clicking through faster than anyone could read the item.

Gold Standards

Expert-labeled items measure accuracy rather than attention, and they stay silent by default so workers get no feedback that would teach them the answers:

yaml
gold_standards:
  enabled: true
  items_file: data/gold_standards.json
  mode: mixed
  frequency: 20
  accuracy:
    min_threshold: 0.7
    evaluation_count: 5

See Quality Control for the item formats and how both are reported.

Custom Completion Pages

The built-in completion page handles a code and a return button. When you need more than that, end the study with a poststudy phase instead:

yaml
phases:
  order:
    - consent
    - annotation
    - poststudy
  consent:
    type: consent
    file: surveys/consent.json
  poststudy:
    type: poststudy
    file: surveys/end.json

The end page holds a pure_display question carrying whatever link or text you need:

json
[
  {
    "name": "completion_link",
    "annotation_type": "pure_display",
    "description": "<p>Thanks for participating.</p><p><a href=\"https://app.prolific.com/submissions/complete?cc=YOUR-CODE\" target=\"_blank\">Complete the study on Prolific</a></p>",
    "allow_html": true
  }
]

Full Example: Prolific Study

yaml
annotation_task_name: "Sentiment Analysis Study"
task_dir: .
 
login:
  type: url_direct
  url_argument: PROLIFIC_PID
 
completion_code: "SENT2024"
auto_redirect_on_completion: false
 
hide_navbar: true
jumping_to_id_disabled: true
 
user_config:
  allow_all_users: true
 
assignment_strategy: random
max_annotations_per_user: 50
num_annotators_per_item: 3
 
phases:
  order:
    - consent
    - instructions
    - annotation
  consent:
    file: data/consent.html
  instructions:
    file: data/instructions.html
  annotation:
    type: annotation
 
attention_checks:
  enabled: true
  items_file: data/attention_checks.json
  frequency: 10
  failure_handling:
    warn_threshold: 2
    block_threshold: 5
 
data_files:
  - data/main.json
 
item_properties:
  id_key: id
  text_key: text
 
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "What is the sentiment of this text?"
    labels:
      - Positive
      - Negative
      - Neutral
    sequential_key_binding: true
 
output_annotation_dir: annotation_output/
export_annotation_format: jsonl

Monitoring the Study

The admin dashboard at /admin reports completion rates, time per instance, and attention-check results while the study runs. Reaching it needs either the shared admin_api_key or a role carrying view_admin_dashboard:

yaml
admin_api_key: "your-shared-key"
 
rbac:
  enabled: true
  user_role_assignments:
    researcher@university.edu: admin

Export the collected annotations with the export CLI:

bash
python -m potato.export -c config.yaml -f csv -o ./export/

Best Practices

  1. Pilot first - Run with a handful of workers before launching at scale
  2. Pay fairly - Time the task yourself and price it against the real duration
  3. Write clear instructions - Include examples and the edge cases you expect
  4. Use attention checks - Catch clicking-through early rather than at analysis
  5. Add gold standards - Attention and accuracy are different measurements
  6. Watch the dashboard - Problems are cheap to fix on day one and expensive on day five
  7. Decide rejection criteria upfront - Workers should know the standard before they start
  8. Export regularly - Do not wait until the study closes

Further Reading

For implementation details, see the source documentation, the Prolific reference, and the platform survey.