> For the complete documentation index, see [llms.txt](https://docs.myshell.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshell.ai/create/pro-config-mode/api-reference/module/anywidget-module/prompt-widget.md).

# Prompt Widget

### Widgets in Workshop

![Prompt widget](/files/rXJ2HMpiNGzvGz5xMgCU)

### Config

Fields besides `widget_id` and `output_name`

| Field's Name | JSON Type (Required/Optional) | Description                                      | Example  |
| ------------ | ----------------------------- | ------------------------------------------------ | -------- |
| content      | string (Required)             | User input message processed by language models. | ‘Hello.’ |

### Example

```json
{
  "id": "test",
  "initial": "home_state",
  "states": {
    "home_state": {
      "inputs": {
        "input_message": {
          "type": "text",
          "user_input": true
        }
      },
      "tasks": [
        {
          "name": "any_module_test_task",
          "module_type": "AnyWidgetModule",
          "module_config": {
            "widget_id": "1743157315558707200",
            "content": "{{input_message}}",
            "output_name": "result"
          }
        }
      ],
      "render": {
        "text": "{{result}}",
        "buttons": [
          {
            "content":"Chat Again",
            "description":"",
            "on_click":"chat"
          }
          ]
      },
      "transitions": {
        "chat": "home_state"
      }
    }
  }
}
```
