# Tutorial

- [About the tutorial](https://developers.laws.africa/tutorial/about-the-tutorial.md)
- [Module 1: Build a legislation reader](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader.md): Building a basic Django app to display legislation fetched from the Laws.Africa Content API.
- [Introductory concepts](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/introductory-concepts.md): Some key details before we build our legislation app.
- [Create a basic Django app](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/create-a-basic-django-app.md)
- [Create database models](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/create-database-models.md): Create models for storing data in the database.
- [Fetching the data](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/fetching-the-data.md): Fetching and storing data from the Laws.Africa Content API.
- [Work listing page](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/work-listing-page.md): Add a page to list works.
- [Expression detail page](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/expression-detail-page.md): Add a document detail page.
- [Styling with Law Widgets](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/styling-with-law-widgets.md): Adding styles to the document content.
- [Adding interactivity](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/adding-interactivity.md): Adding some basic interactivity using Law Widgets.
- [Staying up to date](https://developers.laws.africa/tutorial/module-1-build-a-legislation-reader/staying-up-to-date.md): Getting the latest data from the Content API.
- [Module 2: Enrichments and interactivity](https://developers.laws.africa/tutorial/module-2-enrichments-and-interactivity.md): Enriching your documents and adding advanced interactivity.
- [Basic enrichments](https://developers.laws.africa/tutorial/module-2-enrichments-and-interactivity/basic-enrichments.md): Adding and displaying simple enrichments.
- [Advanced enrichments](https://developers.laws.africa/tutorial/module-2-enrichments-and-interactivity/advanced-enrichments.md): Fetching enrichments from the Laws.Africa Enrichments API.
- [Advanced interactivity](https://developers.laws.africa/tutorial/module-2-enrichments-and-interactivity/advanced-interactivity.md): Adjusting content styles based on enrichment information.
- [Module 3: Text extraction for search and analysis](https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis.md): How to extract text from Akoma Ntoso XML documents for use in full-text search indexing and machine learning analysis.
- [Why extracting text is important](https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis/why-extracting-text-is-important.md): Why would you want to extract text from an Akoma Ntoso XML document?
- [Basics of text extraction](https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis/basics-of-text-extraction.md): Basic methods of extracting text from an Akoma Ntoso XML document.
- [Advanced text extraction](https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis/advanced-text-extraction.md): How to extract text from particular elements or portions of a document.
- [Extracting text for analysis and machine learning](https://developers.laws.africa/tutorial/module-3-text-extraction-for-search-and-analysis/extracting-text-for-analysis-and-machine-learning.md): How to extract text from all portions of a document, for use in analysis or machine learning.


---

# 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://developers.laws.africa/tutorial.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.
