# JSON Builder in the Asagi bot

## Where is JSON code used?

This code can be inserted into commands such as:

`/say` **-** Send a message on behalf of the bot&#x20;

`/settings` **-> Notifications -> Greetings to new members on the server**&#x20;

`/settings` **-> Notifications -> Greetings to new members in DM**&#x20;

`/settings` **-> Notifications -> Farewells**

`/settings` **-> Moderation** (all filters)

{% hint style="info" %}
Using any Embed Builder, you risk not getting the expected result.

We recommend using [https://oldeb.nadeko.bot](https://oldeb.nadeko.bot/)
{% endhint %}

## Description of the website fields

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FLwqVzKdWoQLPbj64izo6%2F%D0%91%D0%B5%D0%B7%20%D0%B8%D0%BC%D0%B5%D0%BD%D0%B8-1%20(2).png?alt=media&#x26;token=d08b07b2-91dc-4825-8603-a510cfd94404" alt=""><figcaption></figcaption></figure>

## Changing the color of the embed bar

To choose the color for the bar, click on it.

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FcPLAVnapGVVvekCDQODm%2Fopera_xy8SkhVXsI.gif?alt=media&#x26;token=2d95d6ae-1fe7-48b7-b19e-fbca58f6b3ce" alt=""><figcaption></figcaption></figure>

You can select from a range of basic colors, but if you prefer a custom color, visit [htmlcolorcodes.com](https://htmlcolorcodes.com/), choose your desired color, copy the code (#), and then paste it into the builder.

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2Fp4ak4TjZZN1hByn6Yd2I%2Fopera_BYwgBwTxTG.gif?alt=media&#x26;token=97fe763a-3982-45fe-81ef-7c5aef14ac93" alt=""><figcaption></figcaption></figure>

## Inline parameter

The "Inline" parameter controls the arrangement of fields (in line or column).

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FvP3YIMs0RZai373mmkKg%2Fopera_zMojXEETUS.png?alt=media&#x26;token=f16be4b5-4a03-429e-8b02-d050b3cf72cf" alt=""><figcaption></figcaption></figure>

Fields with "Inline" disabled:

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FrfYnsYfuF6O2pVQYLEP5%2Fopera_oDCgUHbC4Q.png?alt=media&#x26;token=58f4f5eb-ce57-4c6e-aeb0-1478a320c42b" alt=""><figcaption></figcaption></figure>

Fields with "Inline" enabled:

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FsaTP4K39ZLTou8v46IbN%2FDiscord_CBlSfb0IGC.png?alt=media&#x26;token=df32b0cf-6a34-44b8-8a33-1fa7fdebb53f" alt=""><figcaption></figcaption></figure>

## Getting Image URL

{% hint style="info" %}
Image can be either static (**png**, **jpeg**, **jpg**, **webm**) or dynamic (**gif**).
{% endhint %}

{% hint style="info" %}
Example: The website <https://giphy.com/> is used.&#x20;

You can choose any other website, but copying the link may be done differently, including using your browser's right-click menu (PC).
{% endhint %}

\
To copy the image link, follow these steps:

1. Find the image you're interested in.
2. Click on the "Share" button on the right sidebar.
3. Click on the "Copy GIF Link" button.

To use the image link, follow these steps:

1. Go to the Embed Builder.
2. Paste the image into the fields you need.

{% hint style="info" %}
Image insertion is available for the following fields:

* Icon URL
* Thumbnail URL
* Image URL
* Footer icon URL
  {% endhint %}

{% hint style="danger" %}
Example: All fields are filled, including where an image can be inserted.
{% endhint %}

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FSXgNv1GdYZj4IhstmyAG%2Fchrome_NMuyIXRYp5.gif?alt=media&#x26;token=3dbe5132-46cf-497f-9601-897f3d13ded5" alt=""><figcaption></figcaption></figure>

## Completing the Editing

After finishing the editing, click the "Copy" button, and the JSON code will be copied to your clipboard for use.

{% hint style="danger" %}
The example demonstrates copying the code. This code still requires additional modifications.

it won't work as shown!
{% endhint %}

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FfBnTiAVzFzvT9OZW7Tbg%2Fchrome_83TNTSlb2I.gif?alt=media&#x26;token=5366046d-0ada-434a-8a41-fc0d538300dd" alt=""><figcaption></figcaption></figure>

To use our JSON code, follow these steps:

1. Enter the command `/say`
2. Paste the copied text.

<figure><img src="https://3927572991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hy8ldYgZJ9GQJFAuYLR%2Fuploads%2FoF8Opud0qprXYNjo9jh6%2Fopera_03nIJyoVpj.gif?alt=media&#x26;token=92e9ea50-d8a0-4e6b-894c-895b44465a4a" alt=""><figcaption></figcaption></figure>


---

# 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.asagi.xyz/guides/json-builder-in-the-asagi-bot.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.
