Laravel Order Checkout AI Message shows personalised checkout messages in real-time. When the purchasers place an order, they’ll obtain an auto-generated message with their Order ID on the checkout web page.
This extension makes use of two modules, that are – the AI Checkout Message Module and the Langchain Node Module. Langchain simplifies invoking the OpenAI API utilizing a Langchain and retrieves {custom} order success messages to customers.
- Laravel Order Checkout AI Message makes use of the Langchain framework.
- OpenAI massive language mannequin generates AI content material for checkout.
- Each buyer will get a personalised distinctive order success message.
This practice checkout is constructed on the Langchain framework and makes use of an openAI key to generate {custom} messages.
Admin must arrange an open API key within the .env file.
OPENAI_API_KEY=
Be aware: Create a .env file within the root listing, copy every little thing from the .env.instance, and paste it into the .env file.
Set up
Run the next command to put in the npm dependencies
npm i
Run the next command in your terminal to run the node js server
npm run dev
API Documentation for Checkout
The server’s response to this POST request will rely upon how the server is configured to deal with the {custom} checkout message. It returns an auto-generated order checkout message and performs on the supplied information.
POST /api/custom-checkout-message
For the Set up of Bagisto, you possibly can comply with the Link.
Set up – Extension
After the Bagisto set up, we have to configure all the required info for Langchain AI to determine the Vector Storage. As soon as this configuration is full, proceed with the set up course of outlined under:
Unzip the respective extension zip after which merge the “packages” folder into the challenge root listing.

Go to the config/app.php file and add the next line below ‘suppliers’

Go to the composer.json file and add the next line below psr-4.

Preliminary Admin Configuration
To configure the module, the admin will navigate by way of transport > configuration > AI Checkout. Please discuss with the under picture for a greater understanding.

Right here, the admin can –
- Allow and disable the standing for the shop.
- Enter the online handle within the API URL the place the module will talk with one other service and supply the OpenAI API key which permits the module to attach and talk with the OpenAI service.
Be aware – API URL – right here the server particulars and port quantity will likely be added adopted by “:” and this will likely be generated through Langchain command npm run dev.
To handle the shop, the admin will enter the next particulars. To take action, the admin will navigate by way of transport > configuration > gross sales as per the under screenshots.

The Prospects will choose the product/merchandise on the retailer and additional proceed to checkout.

The shopper getting into all the main points on the checkout web page buyer will click on on the place order button as proven within the above picture.
After putting the order, the shopper will get an auto-generated AI order message with the order ID on the checkout web page as proven within the under snapshots.

That’s all about the “Laravel Order Checkout AI Message“. Nevertheless, In case you have any queries relating to the plugin, please contact us at Webkul Support System. You might also test our high quality Bagisto Extensions.
Present Product Model – V1.5.1
Supported Framework Model – Bagisto v1.5.x
#Laravel #Ecommerce #Order #Checkout #Message #Person #Information