> For the complete documentation index, see [llms.txt](https://docs.mylinkconnect.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mylinkconnect.com/actions-and-operations/content/custom-class.md).

# Custom Class

The Custom Class action will append a custom [Style Sheet class](https://www.w3schools.com/cssref/sel_class.asp) to the parent content action.

![](/files/-M2i66LxqUS_ifMqMYMJ)

### Settings

The action uses the following settings:

| Setting    | Description                                                  | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ---------- | ------------------------------------------------------------ | ---------------------------------------------------- |
| Class Name | The name of the class you wish to add to your parent content | :white\_check\_mark:                                 |

### Remarks

This operation can be used to apply to your Web chatbot some additional styles based on rules or context. The custom classes may refer to a separate style sheet available in your page or to a style sheet [attached directly](/basic-concepts/publishing/channels/web.md#style-sheet) to your Web chatbot.

By default, MyLINK Connect style sheet will define the following additional classes you can use without including any external style sheet

| Class Name                   | Result                                              |
| ---------------------------- | --------------------------------------------------- |
| mylinkconnect-ok-button      | Add a green background and white text to a button   |
| mylinkconnect-warning-button | Add an orange background and white text to a button |
| mylinkconnect-danger-button  | Add a red background and white text to a button     |

### Trigger

This action has no triggers.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability    |
| ---------------- | --------------- |
| Facebook         | Not Applicable  |
| WhatsApp         | Not Applicable  |
| Telegram         | Not Applicable  |
| Web              | Fully Available |
| Alexa            | Not Applicable  |
| Google Assistant | Not Applicable  |
| Slack            | Not Applicable  |
| API              | Not Applicable  |

This action can be used only inside interactions and not as child of other actions.&#x20;


---

# 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://docs.mylinkconnect.com/actions-and-operations/content/custom-class.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.
