Skip to content

nisalgunawardhana/ChatBot-Challenge-By-NisalGunawardhana

Repository files navigation

Build Your Own AI-Powered Chatbot with Azure AI Foundry πŸ€–πŸ’‘

Description

Join the AI Chatbot Challenge and elevate your skills by combining the power of Laravel and Azure AI Foundry! In this challenge, you’ll explore how to create a custom AI-powered chatbot using Azure AI Studio while enhancing your backend expertise with Laravel. Complete the project, showcase your work, and receive a certificate of achievement to share on LinkedIn and beyond. πŸ“œπŸŽ“ Intro Image

Join the Discussion πŸ’¬

Have questions or need help? Join the discussion and get support from the community:

Feel free to ask questions, share your progress, and help others in the community!

Benefits of Participating 🎁

By joining this challenge, you will:

  • Earn a certificate of achievement to showcase your skills.
  • Stand a chance to win LinkedIn Premium vouchers.
  • Gain hands-on experience with Azure AI Foundry.
  • Have the opportunity to win Azure free vouchers.
  • Enhance your backend development skills with Laravel.
  • Expand your professional network and career opportunities.

Step 01

Getting Started with Azure AI Foundry πŸš€

First, start learning with Azure AI Foundry by completing the Azure AI Foundry learning path: Create Custom Copilots with AI Studio

How to Get Azure Free Credit with Student Sign-Up πŸŽ“πŸ’³

As a student, you can get free Azure credits by signing up for the Azure for Students offer. Follow these steps to get started:

  1. Visit the Azure for Students Page: Go to the Azure for Students page.
  2. Sign Up with Your School Email: Click on the "Activate now" button and sign up using your school email address.
  3. Verify Your Student Status: Follow the instructions to verify your student status. You may need to provide additional information or documentation.
  4. Receive Your Free Credits: Once your student status is verified, you will receive $100 in Azure credits, which you can use for various Azure services.

With these credits, you can explore and use Azure services to build and deploy your projects without any cost. Happy learning and building!

Step 02

Setting Up the Chatbot πŸ› οΈ

How to Fork this Repository 🍴

To fork this repository, follow these steps:

  1. Navigate to the repository on GitHub.
  2. Click the "Fork" button in the top right corner of the page.
  3. Choose your GitHub account to fork the repository.

Creating a New Branch for the Challenge 🌿

After forking the repository, create a new branch named challenge/Your_Name in your forked version. Follow these steps:

  1. Navigate to the forked repository directory:

    cd ChatBot-Challenge-By-NisalGunawardhana
  2. Create a new branch:

    git checkout -b challenge/Your_Name
  3. Push the new branch to your forked repository:

    git push origin challenge/Your_Name

Replace Your_Name with your actual name to personalize the branch name. This helps in organizing your work and making it easier to track your progress.

How to Clone to Local PC πŸ’»

To clone the forked repository to your local PC, follow these steps:

  1. Open your terminal or command prompt.
  2. Run the following command, replacing your-username with your GitHub username:
    git clone https://github.com/your-username/ChatBot-Challenge-By-NisalGunawardhana.git
  3. Navigate to the cloned directory:
    cd ChatBot-Challenge-By-NisalGunawardhana

Setting Up Environment Variables 🌐

To set up your environment variables, follow these steps:

  1. Copy the .env.example file to create a new .env file:

    cp .env.example .env
  2. Install Composer dependencies:

    composer install
  3. Install Node.js dependencies:

    npm install
  4. Generate the application key:

    php artisan key:generate
  5. Open the .env file in your preferred text editor.

  6. Uncomment the AZURE_URL and API_KEY lines by removing the # at the beginning of the lines and provide the appropriate values:

    AZURE_URL=your_azure_url
    API_KEY=your_api_key
  7. Run the migrations to set up your database:

    php artisan migrate
  8. Start the development server:

    php artisan serve

Now your environment is set up and you can start developing your chatbot!

Finding Your Azure AI Studio API Key and Endpoint πŸ”‘

To find your Azure AI Studio API key and endpoint, follow these steps:

  1. Sign in to the Azure AI Foundry.
  2. Navigate to your Project.
  3. In the left-hand menu, select the "Overview" section.
  4. You will see your API keys and endpoint URL listed on this page. Copy these values to use in your .env file.

Project Screenshot

Configuring OpenAI Services πŸ› οΈ

After setting up your environment variables, you need to configure the OpenAI services in the config/services.php file. Follow these steps:

  1. Open the config/services.php file in your preferred text editor.
  2. Find the commented openai service variable.
  3. Uncomment the openai service variable by removing the /* and */ around it.

Your config/services.php file should look like this:

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */

    'postmark' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'resend' => [
        'key' => env('RESEND_KEY'),
    ],

    'slack' => [
        'notifications' => [
            'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
            'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
        ],
    ],

    //uncomment this code
    
    'openai' => [
         'api_url' => env('AZURE_BOT_API_URL'),
         'api_key' => env('AZURE_BOT_API_KEY'),
    ],

];

Make sure to replace your_api_key your_api_endpoint with your actual OpenAI API key in the .env file:

AZURE_BOT_API_URL=your_api_endpoint
AZURE_BOT_API_KEY=your_api_key

Now your Bot services are configured and ready to use!

Step 03

Submit Project and Get Certificate πŸŽ‰πŸ†

After completing the project, submit it to receive your certificate. Follow these steps:

  1. Ensure you have completed the learning path and attached the completion badge.
  2. Enter your correct name and email address.
  3. Provide your LinkedIn profile URL.
  4. Include the link to your forked repository.

Chance to Win LinkedIn Premium Vouchers 🎁

By participating in this challenge, you also stand a chance to win LinkedIn Premium vouchers! Showcase your project, complete the submission form, and you might be one of the lucky winners to receive a LinkedIn Premium voucher to boost your professional network and career opportunities.

Fill out the submission form here: Google Form

Prerequisites πŸ“‹

Before running the project, ensure you have the following installed:

Helpful YouTube Videos for Setting Up Laravel πŸŽ₯

Here are some YouTube videos to help you with setting up a Laravel development environment:

To set up the project, follow these steps:

  1. Install PHP: Follow the instructions in the PHP documentation to install PHP on your system.
  2. Install Composer: Download and install Composer by following the instructions in the Composer documentation.
  3. Install Node.js & npm: Download and install Node.js, which includes npm, by following the instructions in the Node.js documentation.
  4. Set up a web server: Install and configure a web server like Xampp or Nginx by following the respective documentation.

Once you have all the prerequisites installed, you can proceed with cloning the repository and setting up the environment variables as described in the previous sections.

Helpful YouTube Videos for Installation πŸŽ₯

Here are some YouTube videos to help you with the installation process:

  1. Installing PHP on Windows/Mac/Linux:

  2. Installing Composer:

  3. Installing Node.js and npm:

  4. Setting Up a Web Server:

License πŸ“„

This project is licensed under the MIT License. You are free to use it for educational purposes. The Laravel framework is open-sourced software licensed under the MIT license.

Follow Me 🌐

Stay connected and follow me on social media for updates and more:

About

chatbot-By-NisalGunawardhana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published