# Overview

Protocol files in BITTSy allow you to define what, when, and how stimuli should be presented, setting up the entire structure of an experiment.

The following sections will detail how to set up the basic structure of a protocol file.

Sometimes, you may wish to build a protocol file from scratch. But other times, particularly if the study you are building is fairly prototypical example of a common behavioral paradigm, you may be able to adapt an existing protocol file to meet your needs - and this is certainly easier! See our [Resouces page](/bittsy/support/resources.md) and [Example Protocol Walkthroughs](/bittsy/creating-protocols/example-protocols.md) for sample protocols of headturn preference, preferential looking, and habituation studies.

{% hint style="info" %}
Pay attention to capitalization of keywords when learning BITTSy's protocol syntax. Capitalization matters, except for tag names and phase names.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ldevumd.gitbook.io/bittsy/creating-protocols/structure-of-a-protocol-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
