# Loading Script Sets

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

Using start up [system-scripts](https://docs.keyfax.biz/product-suite/admin/script-levels/system-scripts "mention") Keyfax can dynamically load different [](https://docs.keyfax.biz/product-suite/admin/script-levels/script-sets "mention") 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="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FZrtB3ACSkCiZihPNY94n%2Fimage.png?alt=media&#x26;token=39a22092-2ee6-4ace-83e7-17946ef626ae" 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="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FNAdMcFPfdN1UX57qgo9h%2Fimage.png?alt=media&#x26;token=b72e21a0-1d7e-4378-933a-665018645c9e" 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;
