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

# Examples instructions

Throughout the documentation you will see links directly to Codesandbox that will allow you to interact with the library in real time. To keep our examples up to date we have decided to use the [synced templates](https://codesandbox.io/docs/learn/devboxes/synced-templates) functionality of Codesandbox.

This feature allows you to quickly and easily work with the most updated version of the example. You just need to follow the steps below:

1. Sign in to [codesanbox.io](https://codesandbox.io/), If you don't have an account, you can create an account by [signing up](https://codesandbox.io/signin?utm_source=landingpage).
2. Click on one of the links below for an example of this documentation.
3. Click on the 'Fork' button in the upper right corner.

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

4. Open a new terminal.

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

5. Execute the required command (you can find command examples for each example in its README).

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

If you have any problem we are always available on our [Discord](https://discord.com/invite/7RRmc35UEG)&#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://xchainjs.gitbook.io/xchainjs/examples-instructions.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.
