Skip to main content
More information about the humanize method for generating a shareable web version of your survey for human respondents is available at the Humanize page. This method allows you to collect responses from your own respondents. The responses can then be combined with AI-generated responses (and Prolific responses) for analysis. Please reach out to us if you have any questions or feature requests, or are interested in testing new features for validating AI responses with participants! You can post a message at our Discord channel or send us an email at [email protected] - thank you!

How it works

You can create a Prolific study for your EDSL survey from your workspace (in code) or from your account dashboard (interactively). You can also choose whether to use your own Prolific account key or your Expected Parrot key (by default).

Code-based workflow

1

Create a survey in a notebook

Create a survey in EDSL:
  • Construct Questions and pass them to Surveys with desired logic.
  • Create AI Agents with desired traits.
  • Specify Language Models to generate responses.
  • Use the run method to administer a survey with desired agents and models.
This generates a formatted dataset of Results that you can analyze with built-in methods. The survey, agents and results are also automatically added to your Expected Parrot account, where you can access them interactively.
2

Use humanize to generate a project and web surveys

Use the humanize method to generate a Project for your survey and a shareable web version. You can optionally pass a project_name, survey_description and survey_alias to customize the project details (see example below).
3

Use Expected Parrot to launch Prolific studies

Create a Coop client object to access your account. Then use Coop methods to create a Prolific study for your survey and gather human responses:
  • create_prolific_study: Create a new study for the project_uuid and specify the study details (name, description, num_participant, estimated_completion_time (minutes), participant_payment_cents), and optional filters for targeting specific demographics and Prolific participants (IDs list).
  • get_prolific_study: Retrieve the study details for the project_uuid and study_id.
  • list_prolific_filters: Show all the available filters for targeting specific demographics and characteristics of participants. Then use the find method to inspect the available filters by filter_id and the create_study_filter method to create a filter for your study with the desired parameters.
  • update_prolific_study: Update the study with the filters.
  • publish_prolific_study: Publish the study and make it available for participants.
  • get_prolific_study_responses: Retrieve the responses from the study.
  • approve_prolific_study_submission: Approve the responses from the study.
  • reject_prolific_study_submission: Reject the responses from the study.
If you have also shared the web link with other respondents, you can gather all human responses using the get_project_human_responses method.

Interactive workflow

1

Create a survey project

Log in to your account. Create a project for a saved survey at your Projects page or create a new survey and select Run survey to view options for running the survey with AI agents and language models, generate a web version of the survey, and launch Prolific studies with human participants.
2

Create a Prolific study

Select the Run with humans option and fill in the study details:
  • Study name (Shown to participants)
  • Description (Shown to participants)
  • Required number of participants: Specify how many participants you want to recruit.
  • Estimated completion time: Provide an estimate of how long it will take participants to complete the survey.
  • Participant payment amount: Set the payment amount for participants.
  • Participant allowlist: Optionally, you can specify a list of Prolific IDs of participants who are allowed to take part in the study.
  • Configure filters: Optionally, you can set filters to target specific demographics or characteristics of participants (e.g., age, gender, ethnicity, languages, location, education, work status, etc.).
Note: The Study URL will be generated automatically. You can open it to view the web version of the survey that will be sent to participants. This is the same link displayed when you select the Web survey option at your project page (or when you use the humanize method in code). You can also share this link with any other respondents on your own to gather their responses.
Click the Create study button to finalize the study creation.
3

Launch the study

Find the new study at your project dashboard and select the option to launch it. Responses will automatically appear at your project dashboard where you can review and approve them.
4

Access results

Copy the project UUID and use it to access the participant responses in your EDSL code (see example below).

Example (code-based workflow)

The example below demonstrates how to create a survey with different question types, run it with an AI agent and language model, and then gather human responses. Create and run a survey with AI agents and models: See the Questions, Surveys, Agents and Language Models sections for more details on each of these components.
Example output: Create a project and web version of the survey for human respondents: Use the humanize method to create a project for the survey and a web version that can be shared with respondents (your own and via Prolific):
Example output:
The respondent_url can be shared with any human respondents (it is the same link shared with Prolific participants). Create a study for the project to launch studies on Prolific:
Example output:
Inspect the study details:
Example output:
Applying filters: You can select and apply filters for targeting specific demographics and characteristics of participants. To see a list of available filters:
See the notebook above for the full list of available filters. Keys to filter on: ‘range_filter_max’, ‘type’, ‘select_filter_num_options’, ‘select_filter_options’, ‘question’, ‘filter_id’, ‘title’, ‘range_filter_min’ There are two types of filters available: select and range. Select filters will have select_filter_num_options and select_filter_options:
(See notebook for output.) Range filters will have range_filter_min and range_filter_max:
(See notebook for output.) Create a filter by passing the id and desired parameters (note: you can also do this when you create the study). Example range filter:
Output:
Example select filter:
Output:
Update the study with the filter:
Example output:
Publish the study: The above steps have created a draft study. To make it available for participants (note: this consumes credits):
Retrieve the study responses: After the study is published and participants have completed it, you can retrieve the responses, together with the submission ID for each response, which you can use to approve or reject submissions:
Approve the responses from the study:
Optionally, you can reject responses if needed:
Gather all human responses: If you have also shared the web survey link with other respondents, you can gather all human responses from the project:
Combine the AI-generated results with the human responses:

Costs

Credits for launching Prolific studies are deducted from your credits balance. The total cost of a Prolific study is calculated based on the number of participants, the payment amount you set for each participant, and the Prolific platform fee for each response. These costs are displayed at the project page when you create the study, which include the Prolific platform fee and the payment to participants. You can view your credits balance at your Credits of your account individual transactions at your Transactions page. Please reach out to us if you have any questions or feature requests! You can post a message at our Discord channel or send us an email at [email protected]