> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/study-setup-and-design/stimuli/instruction-stimulus.md).

# Showing instructions to respondents

Create, edit and reuse instruction stimuli that show respondents a page of formatted text during a study.

An instruction is a stimulus that shows the respondent a page of text, for example what they are about to do in the next part of the study. You write and format the text in the Instruction Designer in iMotions Lab. This guide covers creating and editing instructions and what their settings do.

Instructions are available in screen-based, remote data collection, scene recording, face recording, mobile device, VR Unity and VR 360 studies.

## Creating an instruction

1. Open the study and click **Edit stimuli** to open the Study Builder.
2. Drag **Instruction** from the stimulus bar to its place in the flow. The **Instruction Designer** opens.
3. Write the text. The toolbar has buttons for bold (**Ctrl+B**), italic (**Ctrl+I**) and underlined (**Ctrl+U**) text, bulleted and numbered lists, and left, center and right alignment.
4. Choose the color of the text under **Text** and the color of the slide under **Background**.
5. Click **Preview** to see the instruction full screen, as respondents see it. Click **Next** or press **Esc** to return to the designer.
6. Click **Save** and enter a name for the instruction. **Save** is available once the instruction contains text.

The designer shows the slide with the aspect ratio of the study's screen resolution. You cannot add more text than fits on the slide, so respondents always see the whole instruction. Text you paste keeps its bold, italic, underline, lists and alignment, but not its font, size or color.

## Editing an instruction

Select the instruction in the flow. The **Properties** menu shows a thumbnail of the instruction, a **Preview** button that shows it full screen and an **Edit instruction** button that opens the Instruction Designer. Once you have recorded data with the study, the instruction can no longer be edited.

## Reusing an instruction as a template

To use the same text and colors in other instructions or studies, click **Save as Template** in the Instruction Designer. iMotions saves the template as a `.json` file, by default in `Documents\iMotions\Templates\Instruction`.

To use a template, click **Load Template** in the Instruction Designer and select the file. The template replaces the text and colors of the instruction. If its text does not fit on the slide at the study's screen resolution, for example because the template was made in a study with a different resolution, iMotions warns you that respondents will not see all of it. Shorten the text before you save.

## Settings

Besides the settings below, an instruction has the **Name**, **Display order**, **Record web cam**, **Track mouse**, **Record keyboard events** and **Description** settings that other stimuli have. **Track mouse** is on by default.

| Setting          | Description                                                                                                                                          | Default |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Advance          | **Manual** shows a **Next** button in the lower-right corner, which the respondent clicks to go to the next stimulus. **Automatic** shows no button. | Manual  |
| Duration         | How long the instruction is shown. With **Manual** advance, the instruction ends after this time if the respondent has not clicked **Next**.         | 30 s    |
| Content color    | Color of the text. The same setting as **Text** in the Instruction Designer.                                                                         | Black   |
| Background color | Color of the slide. The same setting as **Background** in the Instruction Designer.                                                                  | White   |

During a recording, the live preview shows the name of the instruction instead of its content.

## Alternative: Externally generated instructions

For more complexly designed instructions, also involving images or custom text formatting, you can design an instruction in external tools such as PowerPoint and save them as .JPEG or .PNG files. (We recommend to save them in the study's resolution.)

In the Study Builder, you can then import your instructions as Media items, and adjust their scaling to show them in fullscreen if desired.


---

# 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
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

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

```
GET https://help.imotions.com/lab/study-setup-and-design/stimuli/instruction-stimulus.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.

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.
