# Execute Client Script Action

This action will execute a script on the browser. You can use this action to integrate your own events or plugins in the webpage or chatbot area.

![](/files/-LgMEMstkbsnrTEPAg5z)

### Settings

The action uses the following settings:

| Setting | Description                          | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ------- | ------------------------------------ | ---------------------------------------------------- |
| Source  | The Javascript source to be executed | :white\_check\_mark:                                 |

### Remarks

This action will evaluate the specified Javascript using the current browser Javascript runtime and will, of course, only work when used inside [Web Channel Chatbots.](/basic-concepts/publishing/channels/web.md)

The script can reference any variable or function currently defined inside the page hosting the Xenioo chatbot.

Xenioo does not check or enforce any execution sandboxing on this javascript code. The code is executed directly by the current browser JS engine.

### Trigger

This action does not trigger any event.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

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

This action can be used only inside interactions and not as child of other actions. This action requires a [Premium Account](/basic-concepts/your-account/upgrading-from-free.md) to be used on a live chatbot.


---

# 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://docs10.xenioo.com/actions-and-operations/integration/xenioo.bots.actions.base.clientjsaction.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.
