Saving and publishing a script
Every script in HyperScript has two versions: the one you edit in the Designer and the one your operators work with. That is why changes take two steps: first you save them, and when the script is ready, you publish it. Until a script is published, operators cannot see it.
Save the changes
As soon as you change something in the Designer, a green Save the changes button appears next to Map. Click it to save your work.

- There is no autosave. If you close the tab or leave the page without clicking the button, your browser will warn you. If you leave anyway, unsaved changes are lost.
- Saved changes are visible to the script's other administrators when they open it. Operators do not see them: they work with the latest published version.
- If several people edit a script at the same time, the version saved last is kept: it replaces the one saved before it in full. To avoid losing someone else's edits, agree on who is editing the script and reload the page before you start.
Publish script
When your changes are ready to be used, click the blue Publish script button in the top right corner.

The publishing window opens. Enter a version name (required) and, if you like, describe the version changes, then click Publish. The name and description cannot be changed after publishing. You will find the version by its name in the version history and in the version filter in analytics, so name versions after what changed in them.

After publishing:
- operators get the new version in the Operator's App and in CRM widgets. They do not need to reload the page, and if they are in the middle of a call, the script is updated when the call ends;
- runs and conversion in Analytics are counted separately for each version;
- a Version history link appears under the buttons: it shows who published each version and when, with its name and description.
If you have unsaved changes, publishing saves them first and then publishes. When nothing has been saved since the last publication, the Publish script button is inactive: there is nothing to publish.
Until the script is published
- Operators cannot use it, even if you have given them access. Instead of the script, they see the message “The script is not published yet by the owner”.
- Nothing arrives in Analytics and Data. Both sections have a Publish first version button.
How to check a script before publishing
Open the Operator's view tab and go through the script the way an operator would. The tab shows the script as it is in the Designer right now, unsaved changes included. Operators will see it the same way only after you publish it.
In short
| Save the changes | Publish script | |
|---|---|---|
| What it does | Saves your work in the Designer | Creates a new version of the script for operators |
| Who sees the changes | The script's administrators | Administrators and operators |
| Analytics | Does not change | Counted for the new version |
| When to click | Often, so you do not lose your work | When the changes are ready to be used with clients |
