> For the complete documentation index, see [llms.txt](https://docs.trustlesswork.com/trustless-work/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlesswork.com/trustless-work/v2-en/introduction/readme/ai-optimized-docs.md).

# AI optimized docs

Trustless Work docs are written for humans **and** for machines.

Humans get clarity, precision, and examples. Agents get structure, consistency, and predictable semantics.

### Why this matters

The next generation of builders won’t just code. They’ll prompt, automate, and delegate work to agents.

An AI-ready doc set lets you:

* Export content for training and internal copilots.
* Feed pages into your LLM memory or RAG pipeline.
* Let agents reason through flows and generate SDK/API calls.

{% hint style="info" %}
Goal: make the documentation itself a building block for automation.
{% endhint %}

### Export formats

You can export any section of the docs as PDF or Markdown.

<figure><img src="/files/5eTcrhZWCBddAV6o3SJB" alt=""><figcaption></figcaption></figure>

* **PDF** for onboarding manuals and reference packs.
* **Markdown (.md)** for ingestion and context injection.
* **Prompt blocks** for pasting into GPT, Cursor, or v0.dev.

{% hint style="success" %}
Check the SDK pages for prompt-first workflows that generate and debug escrow flows.
{% endhint %}

### Ask the docs (search)

Search is optimized for natural language. Use intent-focused prompts, not just keywords.

Example prompts:

```
fund a multi-release escrow with testnet USDC
create an SDK snippet to mark milestone as done
explain the difference between approver and release signer
```

{% hint style="info" %}
Search rewrites your question into a structured query and returns the best snippets.
{% 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 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://docs.trustlesswork.com/trustless-work/v2-en/introduction/readme/ai-optimized-docs.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.
