# AnyWidget Module

`AnyWidgetModule` allows you to utilize any widget in our workshop.

It differs from other modules. Apart from `widget_id` and `output_name`, all other fields are specific to the individual widget in use. Consequently, it is not feasible to list field descriptions in advance. However, we can offer examples using common widgets and instructions on how to determine widget configurations.

Please note that the outcomes generated by the `AnyWidgetModule` are contingent on the specific widget and its underlying AI models. Therefore, we are unable to assure that the widget configuration will consistently yield the anticipated results with your setup.

We advise fine-tuning the parameters on the widget webpage and subsequently incorporating them into your Pro Config settings for optimal results.

<figure><img src="/files/ja4AEX5aNoLlAbdg6V2N" alt=""><figcaption><p>Melo TTS</p></figcaption></figure>

`AnyWidgetConfig`

| Field's Name | JSON Type (Required/Optional) | Description                                                                                                                 | Example               |
| ------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| widget\_id   | string (Required)             | Creators can select their desired widget in the Workshop, and copy the widget id.                                           | '1743340032770445312' |
| output\_name | string (Required)             | Specifies the name of the output in AnyWidgetConfig.                                                                        | 'result'              |
| cache        | boolean (Optional)            | <p>Flag to enable cache mode. When set to true, the state will run only once and store the result.<br>Default to false.</p> |                       |


---

# 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.myshell.ai/create/pro-config-mode/api-reference/module/anywidget-module.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.
