# Using The Utilities

Using the utilities is quite easy. All you have to do is import one namespace and you have all of the functionality you could ever wish for.

```javascript
import { QuackJSUtils } from '@n-f9/quack.js'
```

[Further documentation of the features can be found here](/quack.js/api/namespace/quackjsutils.md). An example of the utilities in action can be found below, it converts any type of color into a hexa code.

```javascript
import { QuackJSUtils } from '@n-f9/quack.js'

export default (Quack) => {
  Quack.CreateTrigger({
    name: 'color',
    trigger: /color: /g,
    execute(client, message) {
      const color = message.content.replace('color: ', '')
      try {
        const conversion = QuackJSUtils.Color(color)
        message.reply(
          QuackJSUtils.Discord.Embed({
            embeds: [
              {
                title: color,
                color: conversion,
                description: '#' + conversion.toString(16),
              },
            ],
          }),
        )
      } catch (error) {
        message.reply(
          QuackJSUtils.Discord.Embed({
            embeds: [
              {
                title: 'Ahh! An Error!',
              },
            ],
          }),
        )
      }
    },
  })
}
```


---

# 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://n-f9.gitbook.io/quack.js/guide/using-the-utilities.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.
