> For the complete documentation index, see [llms.txt](https://docs-en.dydu.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-en.dydu.ai/integration/channels/chatbox/integration-of-a-chatbox-into-a-webview.md).

# Integration of a chatbox into a webview

To integrate a chatbox into a webview, you need to:

1. Create an empty HTML page, this page should only contain the following script tag:

```
<html><head><script src="...bundle.min.js"></script></head><body></body></html>
```

2. Then , in the Java code, you need to enable the **JavaScript** ans the **DomStorage** in the webview:

```
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setJavaScriptEnabled(true);
```
