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

# Blocks

A Block is a component made of a Code in a specific Language. It might have [parameters](/socrates/fundamentals/parameters.md) (available as ENV variables to the code), defaults, and a Pre-Code in `Shell` to execute before the main. It may also be directly attached to a file in [Github](/socrates/configuration/settings/github.md).&#x20;

* Any files created during execution will be saved as [Artifacts](/socrates/fundamentals/instances/artifacts.md).
* Outputs can be set by printing following syntax: `::set-output key=value`.

## Creating a Block

Go to `/block/create/`

#### Fill in Basic Details

![Fill In the Details](/files/3nYNuC6T1j933M6ICA6Y)

#### Fill your Block's Parameters

![Parameters](/files/hjAJjF44wf3u1RFlw3Gg)

#### Write your Code or Choose from Github

{% hint style="warning" %}
If choosing a Github file, you won't be able to change and save the code. Your Block will always match what's in Github. In order to write custom code, copy the file's code and disconnect from Github. Then you will be able to edit.
{% endhint %}

![](/files/1jYJrugtVGH7Pbe1nSf4)

#### Review and Create

![](/files/F6ovzSL4u0s3Guiamk2a)


---

# 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://socrates.gitbook.io/socrates/fundamentals/projects.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.
