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. ππ
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!
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.
First, start learning with Azure AI Foundry by completing the Azure AI Foundry learning path: Create Custom Copilots with AI Studio
As a student, you can get free Azure credits by signing up for the Azure for Students offer. Follow these steps to get started:
- Visit the Azure for Students Page: Go to the Azure for Students page.
- Sign Up with Your School Email: Click on the "Activate now" button and sign up using your school email address.
- Verify Your Student Status: Follow the instructions to verify your student status. You may need to provide additional information or documentation.
- 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!
To fork this repository, follow these steps:
- Navigate to the repository on GitHub.
- Click the "Fork" button in the top right corner of the page.
- Choose your GitHub account to fork the repository.
After forking the repository, create a new branch named challenge/Your_Name
in your forked version. Follow these steps:
-
Navigate to the forked repository directory:
cd ChatBot-Challenge-By-NisalGunawardhana
-
Create a new branch:
git checkout -b challenge/Your_Name
-
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.
To clone the forked repository to your local PC, follow these steps:
- Open your terminal or command prompt.
- Run the following command, replacing
your-username
with your GitHub username:git clone https://github.com/your-username/ChatBot-Challenge-By-NisalGunawardhana.git
- Navigate to the cloned directory:
cd ChatBot-Challenge-By-NisalGunawardhana
To set up your environment variables, follow these steps:
-
Copy the
.env.example
file to create a new.env
file:cp .env.example .env
-
Install Composer dependencies:
composer install
-
Install Node.js dependencies:
npm install
-
Generate the application key:
php artisan key:generate
-
Open the
.env
file in your preferred text editor. -
Uncomment the
AZURE_URL
andAPI_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
-
Run the migrations to set up your database:
php artisan migrate
-
Start the development server:
php artisan serve
Now your environment is set up and you can start developing your chatbot!
To find your Azure AI Studio API key and endpoint, follow these steps:
- Sign in to the Azure AI Foundry.
- Navigate to your Project.
- In the left-hand menu, select the "Overview" section.
- You will see your API keys and endpoint URL listed on this page. Copy these values to use in your
.env
file.
After setting up your environment variables, you need to configure the OpenAI services in the config/services.php
file. Follow these steps:
- Open the
config/services.php
file in your preferred text editor. - Find the commented
openai
service variable. - 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!
After completing the project, submit it to receive your certificate. Follow these steps:
- Ensure you have completed the learning path and attached the completion badge.
- Enter your correct name and email address.
- Provide your LinkedIn profile URL.
- Include the link to your forked repository.
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
Before running the project, ensure you have the following installed:
- Laravel: A PHP framework for web artisans. Laravel Documentation
Here are some YouTube videos to help you with setting up a Laravel development environment:
-
PHP >= 8.0: A popular general-purpose scripting language that is especially suited to web development. PHP Documentation
-
Composer: A dependency manager for PHP. Composer Documentation
-
Node.js & npm: Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine, and npm is the package manager for Node.js. Node.js Documentation
-
A web server like Xampp or Nginx: Xampp is an easy-to-install Apache distribution containing MySQL, PHP, and Perl. Nginx is a high-performance HTTP server and reverse proxy. Xampp Documentation | Nginx Documentation
To set up the project, follow these steps:
- Install PHP: Follow the instructions in the PHP documentation to install PHP on your system.
- Install Composer: Download and install Composer by following the instructions in the Composer documentation.
- Install Node.js & npm: Download and install Node.js, which includes npm, by following the instructions in the Node.js documentation.
- 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.
Here are some YouTube videos to help you with the installation process:
-
Installing PHP on Windows/Mac/Linux:
-
Installing Composer:
-
Installing Node.js and npm:
-
Setting Up a Web Server:
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.
Stay connected and follow me on social media for updates and more: