write a medium blog post on how to program online behavioral experiments in .NET…
- User
write a medium blog post on how to program online behavioral experiments in .NET Framework that will be uploaded to MTurk as an External Question. Don;t focus on installation etc. Do focus on how to adopt the experiment website to MTurk (how to handle workerId etc. at the beginning, and how to send these details to MTurk when the experiment was completed)
Assistant
Sure, I’d be happy to help with that. The key steps are:
-
Set up a .NET Framework web application, and make sure you have installed the Amazon MTurk .NET Library, which is what you’ll use to talk to the MTurk API.
-
Add a page to the web application that will serve as the “External Question” for MTurk. This will need to have a form where workers can enter their MTurk worker ID, and a button they can click to submit the form and run the experiment.
-
Add code to the External Question page to use the Amazon MTurk .NET Library to create an assignment for the experiment, and return a URL to the assignment to the worker. The worker will then need to visit the URL to start the experiment.
-
Add code to the External Question page to use the Amazon MTurk .NET Library to submit the results of the experiment when the worker is done. The code will need to take the worker ID and any other necessary information from the form the worker submitted, and submit it to MTurk using the “SendBonus” method.
-
- User
SendBonus don't also need assignmentId?
Assistant
Yes, you are correct. The SendBonus method in the Amazon MTurk .NET Library requires both the worker ID and the assignment ID to be provided in order to send a bonus payment to a worker. The assignment ID is a unique identifier for the specific task or assignment that the worker completed, and it is used to ensure that the bonus payment is sent to the correct worker for the correct task.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.