WhatsApp Chatbot for E-commerce
This is a WhatsApp chatbot project that helps customers with their purchases on an e-commerce store. The chatbot uses a workflow gerated by a flow chart creator per connection. It integrates with the e-commerce store's API to provide a seamless customer experience.
Responds to customer inquiries about products Recommends products based on customer preferences Provides product information and pricing Allows customers to make purchases directly from the chatbot Integrates with e-commerce store's API for seamless checkout
- PHP 8.3
- Laravel 11
- laravel reverb
- Laravel Sail
- Laravel Pest
- Laravel Pint
- Laravel Sanctum
- laravel tinker
- Laravel Pail
- Laravel Promps
- Mysql
- Redis
- Docker
- Docker Composer
- E-commerce store API (braip)
- Whataspp Evolution API
Factory pattern to integration and payment checkout
Repository pattern to isolate code steps and repetitive code,
Strategy pattern to notification features.
Customer initiates conversation with the chatbot on WhatsApp
chatbot responds to customer inquiries using EVOLUTION API
chatbot recommends products based on customer preferences by connection
Customer selects product and marinabot flow that`s provides a product url link.
soon Customer makes purchase directly from the chatbot
chatbot integrates with e-commerce store's API for seamless checkout
Welcome to marinaBot, create a new branch and starting coding with us. Step to setup project in your machine.
Docker and Docker Compose installation method varies depending on your system. For Linux Ubuntu:
Install Docker using the convenience script provided by Docker:
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
After installation, give your user the permission to run Docker commands:
sudo usermod -aG docker ${USER}
To apply these new permissions, log out and log back in, or you can use:
newgrp docker
Download the current stable release of Docker Compose with:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
Verify the installation by checking the version:
docker-compose --version
Now install Laravel sail following this steps: https://laravel.com/docs/11.x/sail#installing-sail-into-existing-applications
then start development server with:
sail up -d
# or
./vendor/bin/sail up -d
Make sure to install the dependencies and run migrations:
# Laravel sail
sail artisan install && sail artisan migrate
Start the development server on http://laravel.test or localhost
:
sail up -d
When you done, close server connection with:
sail down -d
Check out the Laravel Documentation and Postman Collection for more information.
Evolution API Laravel Pint Laravel Eloquent Laravel Rerverb Introduction to the Repository Pattern Understanding the Strategy Design Pattern in PHP Understanding the Factory Design Pattern in PHP