> For the complete documentation index, see [llms.txt](https://guides.ia.numerique.gouv.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.ia.numerique.gouv.fr/assistant-ia/guides-pratiques/fiches-reflexes/rediger-son-premier-prompt.md).

# Rédiger son premier prompt

{% columns %}
{% column width="50%" %}
Connectez-vous via **ProConnect** sur [assistant.numerique.gouv.fr](https://assistant.numerique.gouv.fr/home/), puis démarrez une conversation depuis la barre de saisie centrale.

1. **Donnez le contexte** : qui vous êtes, dans quel cadre vous écrivez.
2. **Précisez la tâche demandée**, de façon claire et concrète.
3. **Indiquez le format** de réponse attendu (longueur, ton, structure).

{% prompt description="Exemple de prompt" icon="lightbulb" defaultExpanded="full" %}

```markdown
« Tu es un agent RH. Rédige un mail de convocation à un entretien annuel, ton formel, 150 mots maximum. »
```

{% endprompt %}
{% endcolumn %}

{% column width="50%" %}

<figure><img src="https://2276914903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCHYOyJVWgymiHRO07sl0%2Fuploads%2Fsa3Aj09TIdaKRoghtJHR%2FRe%CC%81diger%20son%20premier%20prompt.jpg?alt=media&amp;token=00f6e9b7-738c-40b7-8f29-1bd075b7db5f" alt=""><figcaption></figcaption></figure>

&#x20;             <a href="https://ia.numerique.gouv.fr/documents/45/Rediger_son_premier_prompt.pdf" class="button primary">Télécharger la fiche réflexe</a>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %} <mark style="color:$primary;">**Astuce :**</mark>

Plus le prompt est précis, plus la réponse est pertinente. Gardez un regard critique sur les réponses produites.
{% endhint %}


---

# 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://guides.ia.numerique.gouv.fr/assistant-ia/guides-pratiques/fiches-reflexes/rediger-son-premier-prompt.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.
