# Empirica v2 Docs

## Empirica v2 Docs

- [Introduction](https://docs.empirica.ly/readme.md): Easy Multiplayer Interactive Experiments in the Browser
- [Setup](https://docs.empirica.ly/getting-started/setup.md)
- [Windows WSL Instructions (new)](https://docs.empirica.ly/getting-started/setup/windows-wsl-instructions-new.md): Updated version of WSL?
- [Windows WSL Instructions](https://docs.empirica.ly/getting-started/setup/windows-instructions.md)
- [Linux Instructions](https://docs.empirica.ly/getting-started/setup/linux-instructions.md)
- [Creating your experiment](https://docs.empirica.ly/getting-started/quick-start.md)
- [Running your experiment](https://docs.empirica.ly/getting-started/quick-test.md): Once you have created an experiment using empirica create.
- [Updating your experiment](https://docs.empirica.ly/getting-started/updating-your-experiment.md)
- [Game Life Cycle](https://docs.empirica.ly/overview/lifecycle.md)
- [Customising when players submit stages](https://docs.empirica.ly/overview/lifecycle/customising-when-players-submit-stages.md)
- [Concepts](https://docs.empirica.ly/overview/concepts.md)
- [Randomization & Batches](https://docs.empirica.ly/overview/randomization-and-batches.md)
- [API](https://docs.empirica.ly/overview/api.md)
- [V2 Migration](https://docs.empirica.ly/guides/v2-migration.md)
- [Managing the Data](https://docs.empirica.ly/guides/managing-the-data.md)
- [Special Empirica Components](https://docs.empirica.ly/guides/special-empirica-components.md)
- [The Admin Panel](https://docs.empirica.ly/guides/the-admin-panel.md)
- [Deploying Your Experiment](https://docs.empirica.ly/guides/deploying-my-experiment.md): How to deploy your experiment.
- [Ubuntu tutorial](https://docs.empirica.ly/guides/deploying-my-experiment/ubuntu-tutorial.md): This will is a tutorial explaining how to setup Empirica an Ubuntu 23.10 Droplet on Digital Ocean.
- [Beginner Experiment: Prisoner's Dilemma](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma.md)
- [Part 1: Before you start](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-1-before-you-start.md)
- [Part 2: Creating the Experiment in Empirica](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-2-creating-the-experiment-in-empirica.md)
- [Part 3: Getting Accustomed to the Code](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-3-getting-accustomed-to-the-code.md)
- [Part 4: Coding the Prisoner's Dilemma Game](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game.md)
- [Part 4.1: Removing example code](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.1-removing-example-code.md)
- [Part 4.2: Intro Text](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.2-intro-text.md)
- [Part 4.3: Set up the game stages](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.3-set-up-the-game-stages.md)
- [Part 4.4: Build the "Choice" React Component](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.4-build-the-choice-react-component.md)
- [Part 4.5: Build the "Result" React Component](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.5-build-the-result-react-component.md)
- [Part 4.6: Compute the Score](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-4-coding-the-prisoners-dilemma-game/part-4.6-compute-the-score.md)
- [Part 5: Customizing the experiment](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-5-customizing-the-experiment.md)
- [Part 5.1: Changing the number of rounds](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-5-customizing-the-experiment/part-5.1-changing-the-number-of-rounds.md)
- [Part 5.2: Turning the chat on and off](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-5-customizing-the-experiment/part-5.2-turning-the-chat-on-and-off.md)
- [Part 6: Deployment](https://docs.empirica.ly/tutorials/beginner-experiment-prisoners-dilemma/part-6-deployment.md)
- [I need help!](https://docs.empirica.ly/faq/about-empirica.md)
- [The Processes and Elements of an Empirica Experiment](https://docs.empirica.ly/faq/the-processes-and-elements-of-an-empirica-experiment.md)
- [Managing Players and Games](https://docs.empirica.ly/faq/faq.md)
- [Helpful Linux Commands](https://docs.empirica.ly/resources/helpful-linux-commands.md): Here is a list of helpful commands that should enhance your experience with the command line in Linux and WSL.
- [Code Editors](https://docs.empirica.ly/resources/code-editors.md): There are multiple code editors that you could use in when creating your Empirica apps. Here we share some information about Editors/IDEs we use and recommend.
- [Javascript and React](https://docs.empirica.ly/resources/javascript-and-react.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.empirica.ly/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
