> For the complete documentation index, see [llms.txt](https://artroomai.gitbook.io/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://artroomai.gitbook.io/tutorials/resources/prompting-tutorials/prompt-order.md).

# Prompt order

Prompt order matters. Generally speaking the AI considers whatever you write first as more important than what you write later. So if you want to make sure something has a larger impact, mention it first. Lets go back to the basic prompt from the previous page.

An oil painting of a Dwarf warrior, with (red) hair, holding a sword, Surrealism, dark, moddy, by Rembrant

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrjzSinvVPe17AZtDte0Z%2Fuploads%2FdsjfxiAg0kwcbr39M9Kw%2F00694_An_oil_painting_of_a_Dwarf_warrior_with_red_hair_holding_a_sword_Surrealism_dark_moddy_by_Rembrant_seed_3896763499.png?alt=media&token=f58f348a-fdaf-40a4-a891-dbccc837be14>" %}

As you can see, by rebramt is in the prompt, but its not having a major effect. So lets change our prompt to:

by Rembrant, An oil painting of a Dwarf warrior, with (red) hair, holding a sword, Surrealism, dark, moddy,

<figure><img src="/files/cw3SusSv49pnTAV9H23u" alt=""><figcaption></figcaption></figure>

As you can see, the effect is much stronger. The clothing has changed and even the way the image looks like.

Another place where its particularly noticeable is when you use multiple colors in a prompt:

<figure><img src="/files/BV0gUkT6M97rhdwGmNJ0" alt=""><figcaption><p>A woman, with blue eyes, wearing a red dress, in front of a field of flowers.</p></figcaption></figure>

<figure><img src="/files/SkwkDgtQNOeZiKNhnJwq" alt=""><figcaption><p>A woman, wearing a red dress, with blue eyes, in front of a field of flowers.</p></figcaption></figure>

As you can see, in the first example, the AI decided to not make the dress but rather the flowers red. The dress became blue, as blue is listed first in the order.&#x20;


---

# 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 dynamically by asking a question.

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

```
GET https://artroomai.gitbook.io/tutorials/resources/prompting-tutorials/prompt-order.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
