# Code Examples

In this section are several code examples outlining some common functions around interacting with Stacks and CityCoins.

Also be sure to look at the [CityCoins Scripts](https://github.com/citycoins/scripts) as part of the [General resources page](/developer-resources/general.md#citycoins), which include some Node.js prompt-driven console app examples.

{% hint style="info" %}
Have something you'd like to add? Feedback for what's here? [Open an issue!](https://github.com/citycoins/docs/issues/new)
{% endhint %}


---

# 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://docs.citycoins.co/developer-resources/code-examples.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.
