Skip to content

Prepare Your Environment

To ensure a smooth start to the workshop, it's important to set up your development environment correctly. Follow these steps to get started:

1. Clone the Repository

Open Visual Studio Code (VS Code) and clone the workshop repository using the following URL: https://github.com/DmitryKatson/Workshop-Generative-AI-Essentials.

  • If you do not have access, please request it from the trainer.

2. Familiarize Yourself with the Repository

After cloning the repository, take some time to read the README file. It will help you understand the repository structure and where to find everything you'll need.

3. Configure launch.json

Create a launch.json file within the .vscode folder of your project. This file should contain the configuration details for connecting to your sandbox environment, whether it's local or in the cloud.

4. Download Symbols

Downloading symbols is a critical step to ensure that you have all the necessary dependencies for AL code development in Business Central:

  • Press Ctrl+Shift+P to open the command palette.
  • Type "AL: Download Symbols" and press Enter.

5. Publish the Extension

Once your symbols are downloaded, you're ready to publish the extension to your environment:

  • Press Ctrl+Shift+P again to open the command palette.
  • Type "AL: Publish without debugging" and press Enter.

6. Open Business Central

Navigate to your Business Central environment in your web browser. Search for and open the 'Event Copilot Setup' page, which is part of the extension you're working on.

7. Set Azure OpenAI Connection Parameters

On the 'Event Copilot Setup' page, enter your Azure OpenAI resource connection parameters. These should include:

  • Endpoint: Specify your endpoint, such as https://[resource].openai.azure.com/
  • Secret Key: Specify your key value.
  • Deployment: The name of your deployment, such as gpt-35-turbo-0125.
  • Embeddings Deployment: The name of your embedding deployment, such as text-embedding-ada-002.

Make sure to save your configuration before moving on to the next steps.

By following these instructions, you'll have a properly configured development environment that's ready to support you through the "Generative AI Essentials" workshop activities.

Now, let's move on to the next section and start building your first AI copilot!