# 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 %}
