> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/build/code-in-n8n/cookbook.md).

# Cookbook

This section contains examples and recipes for common coding tasks in n8n.

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## In this section

* [Built-in methods and variables examples](/build/code-in-n8n/cookbook/built-in-methods-and-variables-examples.md): usage examples for n8n's built-in methods and variables.
* [Code node](/build/code-in-n8n/cookbook/code-node.md): examples and recipes for tasks you can do with the Code node.
* [HTTP Request node](/build/code-in-n8n/cookbook/http-request-node.md): examples for the HTTP Request node.

## Related resources

* [Code in n8n](/build/code-in-n8n.md)
* [Using the Code node](/build/code-in-n8n/using-the-code-node.md)
* [Get coding help from AI](/build/code-in-n8n/get-coding-help-from-ai.md)
* [Use built-in shortcuts](/build/code-in-n8n/use-built-in-shortcuts.md)
* [Define custom variables](/build/code-in-n8n/define-custom-variables.md)
