A powerful Laravel-based AI bot built using HuggingFace API and advanced prompt engineering techniques. This project demonstrates how to integrate pre-trained language models to process user inputs, generate structured responses, and handle conversational tasks. Perfect for building order processing bots, customer service assistants, form autofills and more.
- Laravel 12
- HuggingFace Inference API
- GuzzleHTTP (For API request)
💡: Hugging Face API-Inference DOCS
-
Clone the repository
https://github.com/kpodjison/larabot.git cd larabot
-
Install dependencies
composer install
-
Set up the environment
copy .env.example file and rename it to .env update HUGGING_FACE_API_KEY key in env with your Hugging Face API key -
Start backend server
php artisan serve
-
Make a post request to the API endpoint api/bot in your API client
{ "prompt":"I would like to create a laravel course", "userId":"jvc12343" } Example of context-aware conversations { "prompt":"I want to include topics like routes, controllers, and views.", "userId":"jvc12343" }