# Scripts

The Scripts Section allows the merchant to create and/or add custom scripts to their online store. This allows the merchant more control over the front end of their online store and how it functions.\
\
An example of where a merchant would add a script is with live chat functionality. The merchant can register with a company that supplies the live chat functionality. These companies usually supply a script that needs to be injected into the website. The merchant can copy this script and just add it to the scripts section for the live chat to get added to their online store.

### How to Add a Script

1. Click on the store name that you wish to add the script to
2. Click on Scripts under Themes
3. Click on the Create Icon
4. Enter the details on the Settings Page
5. Click on the Script Tab
6. Enter your Script
7. Click Save

{% embed url="<https://scribehow.com/embed/How_to_add_a_Script__2PYXUSBwQAedVASFvOGvdQ>" %}


---

# 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://support.storefront.co.za/features/stores/themes/scripts.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.
