# Clause9 Tutorials

## Clause9 tutorials

- [Welcome!](https://tutorials.clause9.com/welcome.md)
- [Getting started](https://tutorials.clause9.com/basic/getting-started.md)
- [1. Creating your document and automating your first clause](https://tutorials.clause9.com/basic/1.-creating-your-document-and-automating-your-first-clause.md)
- [2. Creating flexible terminology](https://tutorials.clause9.com/basic/2.-creating-flexible-terminology.md)
- [3. Importing clauses](https://tutorials.clause9.com/basic/3.-importing-clauses.md)
- [4. Creating variable information](https://tutorials.clause9.com/basic/4.-creating-variable-information.md)
- [5. Conditional logic (I)](https://tutorials.clause9.com/basic/5.-conditional-logic-i.md)
- [5. Conditional logic (II)](https://tutorials.clause9.com/basic/5.-conditional-logic-ii.md)
- [5. Conditional logic (III)](https://tutorials.clause9.com/basic/5.-conditional-logic-iii.md)
- [6. Grammatical conjugations](https://tutorials.clause9.com/basic/6.-grammatical-conjugations.md)
- [7. Special functions](https://tutorials.clause9.com/basic/7.-special-functions.md)
- [8. Cross-references](https://tutorials.clause9.com/basic/8.-cross-references.md)
- [9. Definitions](https://tutorials.clause9.com/basic/9.-definitions.md)
- [10. Tables](https://tutorials.clause9.com/basic/10.-tables.md)
- [11. Creating a questionnaire](https://tutorials.clause9.com/basic/11.-creating-a-questionnaire.md)
- [Getting started](https://tutorials.clause9.com/intermediate/getting-started.md)
- [1. Structuring your document](https://tutorials.clause9.com/intermediate/1.-structuring-your-document.md)
- [2. Alternatives](https://tutorials.clause9.com/intermediate/2.-alternatives.md)
- [3. Action buttons](https://tutorials.clause9.com/intermediate/3.-action-buttons.md)
- [4. Repeating list datafields](https://tutorials.clause9.com/intermediate/4.-repeating-list-datafields.md)
- [5. Some more special functions](https://tutorials.clause9.com/intermediate/5.-some-more-special-functions.md)
- [6. Binders](https://tutorials.clause9.com/intermediate/6.-binders.md)
- [7. Styling](https://tutorials.clause9.com/intermediate/7.-styling.md)
- [8. Q\&A optimisation](https://tutorials.clause9.com/intermediate/8.-q-and-a-optimisation.md)
- [Exercises](https://tutorials.clause9.com/clause9-campus-exercises/exercises.md)
- [Module 1: Grammar](https://tutorials.clause9.com/clause9-campus-exercises/module-1-grammar.md)
- [Module 2: Basic Q\&A exercises](https://tutorials.clause9.com/clause9-campus-exercises/module-2-basic-q-and-a-exercises.md)
- [Module 3: Basic styling](https://tutorials.clause9.com/clause9-campus-exercises/module-3-basic-styling.md)
- [Module 4: Document Assemble Intermediate](https://tutorials.clause9.com/clause9-campus-exercises/module-4-document-assemble-intermediate.md)
- [Module 5: Q\&A Intermediate](https://tutorials.clause9.com/clause9-campus-exercises/module-5-q-and-a-intermediate.md)
- [Module 6: Special functions](https://tutorials.clause9.com/clause9-campus-exercises/module-6-special-functions.md)
- [Module 7: Writing conditions](https://tutorials.clause9.com/clause9-campus-exercises/module-7-writing-conditions.md)
- [Final exercise](https://tutorials.clause9.com/clause9-campus-exercises/final-exercise.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://tutorials.clause9.com/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.
