> For the complete documentation index, see [llms.txt](https://help.supporthunt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.supporthunt.com/integrations/codeblock.md).

# Codeblock

{% hint style="warning" %}
This block is not publicly available and access is granted only by the Support Hunt team. You can email us at <info@supporthunt.com> to request for the access
{% endhint %}

### Use-case Scenario:&#x20;

Some cases where Codeblock can be used are;

* Fetching data from the databases and rendering them dynamically as buttons, or carousels&#x20;
* Integration with third-party systems

### How do I set it up?&#x20;

You can follow the following steps to set up the codeblock in Support Hunt;&#x20;

* Add an action block on canvas by clicking on '**+**' <br>
* Choose '**Codeblock**' <br>
* Double click on '**Codeblock**' to configure it on the right panel<br>
  * **Define function:** \
    \
    You can either use the existing function or create new function using code (JSON format) in the provided space

{% hint style="info" %}
You can enlarge the code space by clicking on '**Enlarge**' icon at the top right corner
{% 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:

```
GET https://help.supporthunt.com/integrations/codeblock.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.
