# Getting Started with AI Script Generation

This page walks through the prerequisites and the different ways to launch and create an AI Script Generation in Appvance IQ.

<div id="bkmrk-prerequisite%3A-before" style="background-color:#FFF3E0;border-left:5px solid #2872FA;border-radius:6px;padding:14px 18px;margin:16px 0;color:#1A1A1A;">**Prerequisite:** before you can work with AI Script Generation, you must have a **repository configured** to store your AISG files. *Storing files locally is not supported.*

</div>### Launching AISG

You can access AI Script Generation in two ways from the AIQ home screen:

- From the top-line menu, click **AI Driven**.
- From the left menu, expand **Autonomous Testing** and select **AI Script Generation**.

<div id="bkmrk-the-ai-driven-option" style="background-color:#f4f6f8;border:1px solid #dde3e9;border-radius:8px;padding:12px;margin:18px 0;text-align:center;">![AI Driven option](https://docs.appvance.net/Content/Resources/Images/AISG/AIDrivenOption.png)*The AI Driven option on the top-line menu.*

</div><div id="bkmrk-autonomous-testing-%3E" style="background-color:#f4f6f8;border:1px solid #dde3e9;border-radius:8px;padding:12px;margin:18px 0;text-align:center;">![Autonomous Testing menu](https://docs.appvance.net/Content/Resources/Images/AISG/AIQ5_AutonomousTestingMenu.png)*Autonomous Testing &gt; AI Script Generation in the left menu.*

</div>### Ways to begin

- **Upgrade** an existing pre-AIQ 5.0 Blueprint file to the AI Script Generation format.
- **Create a New Web AI Script Generation** — for web applications.
- **Create a New Mobile Digital Twin** — for mobile apps.
- **Use an AI Script Generation Template** — export an existing AISG as a reusable `.abpt` template.

### Upgrading pre-5.0 Blueprints

1. Navigate to **Autonomous Testing &gt; AI Script Generation** (or click **AI Driven**).
2. Click **Open** and navigate to the repository containing your AISG files.
3. Open a blueprint. The **Create New Template** dialog informs you that the blueprint must be updated.
4. Click **Confirm**. Once the AISG file loads, the upgrade is complete — SmartTags and validations carry over automatically.

<div id="bkmrk-opening-the-reposito" style="background-color:#f4f6f8;border:1px solid #dde3e9;border-radius:8px;padding:12px;margin:18px 0;text-align:center;">![Open repository](https://docs.appvance.net/Content/Resources/Images/AISG/ConvertBPOpenRepo.png)*Opening the repository that holds your blueprint files.*

</div><div id="bkmrk-the-create-new-templ" style="background-color:#f4f6f8;border:1px solid #dde3e9;border-radius:8px;padding:12px;margin:18px 0;text-align:center;">![Confirm upgrade](https://docs.appvance.net/Content/Resources/Images/AISG/ConvertBPConfirm.png)*The Create New Template confirmation dialog.*

</div><div id="bkmrk-the-upgraded-ai-scri" style="background-color:#f4f6f8;border:1px solid #dde3e9;border-radius:8px;padding:12px;margin:18px 0;text-align:center;">![Upgraded blueprint](https://docs.appvance.net/Content/Resources/Images/AISG/ConvertBPOpened.png)*The upgraded AI Script Generation file, ready to execute.*

</div>### What happens behind the scenes on upgrade

- A backup of the old blueprint is created as `<blueprint_name>-backup.abp`.
- A blueprint template file (`<blueprint_name>.abpt`) is created.
- A new folder named after the blueprint is created, and all linked files (SmartTags, validations) are copied into it.
- A new blueprint file with the same name is created from the template.

Source: [Launching AI Script Generation (docs.appvance.net)](https://docs.appvance.net/Content/AIQ/AI3/AISG_LaunchBPDesigner.htm)