How to Export or Import a Scenario?
When you need to save a backup copy of a scenario or transfer it between projects, export and import allow saving the complete scenario structure to a file and restoring it later. This instruction will help export and import scenarios.
When Needed
- You need to create a backup copy of the scenario before major changes.
- You need to transfer the scenario from one project to another.
- You need to restore the scenario from a previous version.
- You need to share the scenario with other users or the team.
What's Important to Know
- Export — saving scenario structure to a file (usually in JSON format).
- Import — loading a scenario from a file and restoring its structure.
- Backup — regular export of scenarios to protect against data loss.
Prerequisites
Export Scenario
1. Open Scenario Editor
- Navigate to the Dialog module via
Apps -> Dialog. - Select the bot whose scenario needs to be exported.
- Open the scenario editor via route
/dialog/bot-scenario/:id.
2. Open Export Menu
- In the scenario editor, find the "Export" or "Export Scenario" button (usually located near the "Save" button or in the settings menu).
- Click the export button — a modal window with export options opens.
3. Configure Export Parameters
- In the modal window, select what exactly needs to be exported:
- All sections — export the entire scenario with all sections.
- Current section — export only the active section.
- Include translations — export translations for all languages.
- Click the "Export" button — the system creates a file with the scenario structure.
4. Download File
- The file automatically downloads to your computer (usually in JSON or ZIP format).
- Save the file in a safe place for further use.
Import Scenario
1. Open Scenario Editor
- Navigate to the Dialog module via
Apps -> Dialog. - Select the bot for which you need to import the scenario (or create a new bot).
- Open the scenario editor via route
/dialog/bot-scenario/:id.
2. Open Import Menu
- In the scenario editor, find the "Import" or "Import Scenario" button (usually located near the "Export" button or in the settings menu).
- Click the import button — a modal window with import options opens.
3. Upload File
- In the modal window, click the "Select File" or "Upload File" button.
- Select the file with the exported scenario on your computer.
- The system automatically checks the file format and data validity.
4. Configure Import Parameters
- In the modal window, select import options:
- Replace existing scenario — completely replace the current scenario with the imported one.
- Add to existing — add imported sections to the current scenario.
- Create backup — automatically export the current scenario before import.
- Click the "Import" button — the system begins processing the file.
5. Confirm Import
- The system shows a preview of the imported scenario (list of sections and nodes).
- Check that all data is correct.
- Click the "Confirm Import" button — the system imports the scenario and updates the canvas.
6. Verify Result
- After import, check the scenario structure on the canvas.
- Make sure all sections and nodes are imported correctly.
- Check translations (if they were included in the export).
7. Save Changes
- After verification, click the "Save" button at the bottom of the screen.
- The system saves the imported scenario and creates a new version in history.
What Happens After
After Export:
- File with scenario structure is saved on your computer.
- You can use this file for backup or transfer between projects.
After Import:
- Scenario structure is restored from the file.
- All sections, nodes, and translations (if included) are restored.
- The scenario is ready to use after saving.
How to Verify It Worked
For Export:
- Check that the file downloaded to your computer.
- Open the file and make sure it contains structured scenario data.
For Import:
- Check that all sections appeared in the sections list.
- Make sure all nodes are displayed on the canvas.
- Check translations (if they were included in the export).