# Loading Script Sets

{% embed url="<https://youtu.be/CPmUNU3jFdk>" %}

Using start up [System Scripts](/product-suite/admin/script-levels/system-scripts.md) Keyfax can dynamically load different [Script Sets](/product-suite/admin/script-levels/script-sets.md) based on supplied start-up data or other business criteria. On this page we present some basic examples for both Repairs Diagnostics and Repairs Self-Service to help you understand how dynamically loading Script Sets can be achieved for both call centre advisors and self-service tenants alike.

### Repair Diagnostics

{% hint style="info" %}
**TIP:** Write the desired script set code to `Startup/Tenancy/text()`.
{% endhint %}

In the below example we present unique out of hours scripts if the advisor visits Keyfax before 8am or after 6pm. During business hours the user would be presented with the default script set.

<figure><img src="/files/2P49TRNbtXTJIKX11FpS" alt=""><figcaption><p>Conditionally loading Repairs Diagnostic Script Sets</p></figcaption></figure>

This works by setting the `Startup/Tenancy` start-up element to the script set code we wish to display to the advisor.&#x20;

### Repairs Self Service

{% hint style="info" %}
**TIP** Write the desired script set code to `Startup/ScriptSet/text()`.
{% endhint %}

You can see below for Repairs Self Service we are asking the tenant to select a specific example script set via a list question within a Keyfax start up system script...

<figure><img src="/files/CrqPw9kqRNrMM1mIbljZ" alt=""><figcaption><p>Conditionally loading Repairs Self Service Script Sets</p></figcaption></figure>

This writes the script set code for the list item the tenant selected into the `Startup/ScriptSet` start-up element which instructs Keyfax Repairs Self Service to load the selected script set.&#x20;


---

# 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.keyfax.biz/product-suite/admin/script-levels/script-sets/loading-script-sets.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.
