Laravel Bagisto ChatGPT content generator helps you generate content in real-time through AI for various entities. Administrators can generate content for product pages, category pages, email templates, and CMS pages.
Administrators leverage AI-driven content to deliver data-rich websites to their customers. It also supports multiple languages, which is an added benefit for customers and store owners.
- Bagisto AI content generator uses Langchain framework.
- The OpenAI Large Language Model Service generates AI content for various pages.
- Administrators can use this feature on various pages such as products, categories, email templates, and CMS pages.
- Generate AI data in real time.
- The administrator will get all the relevant information about the word entered and the content will be displayed accordingly.
This AI content generator is built on the Langchain framework and uses OpenAI keys to generate content.
An administrator must set an open API key in the .env file.
OPENAI_API_KEY=
Note: Create a .env file in your root directory and copy everything from .env.example and paste it into your .env file.
Install the npm dependencies by running the following command:
npm i
Run the node js server by running the following command in your terminal:
npm run dev
API documentation for checkout
The server’s response to this POST request depends on how the server is configured to handle custom checkout messages. Returns an automatically generated order checkout message and runs it against the provided data.
POST /api/custom-checkout-message
Click the link to install Bagisto.
Installation – Laravel Bagisto AI Content Generator
later Installation of BagistNow we need to configure all the information that Langchain AI needs to establish Vector Storage. Once this configuration is complete, proceed with the installation process described below.
Unzip each extension zip and merge the “packages” folder into the root directory of your project.
going to config/app.php Open the file and add the following line under “providers”:
going to composer.json Create a file and add the following line below it psr-4.
Administrator navigates Settings > Configuration > AI Content To configure the module. Please refer to the image below for a better understanding.
- Admins can enable or disable store status.
- The administrator enters the web address for the module to communicate with another service in the API URL and provides an OpenAI API key that allows the module to connect and share with the OpenAI service.
Note – API URL – Here the server details and port number are added followed by “:”. This is generated by the Langchain command npm run dev.
Once the local host port and OpenAI API key are set, store owners can generate automatic content for various pages.
Product page
Admins can generate AI-driven content on product pages and enter various details such as description and SEO information.To add content, administrators must go to Products > Add or edit products.
Now, in the right-hand corner, you will see a button to automatically generate content.
Once saved, it will be visible to the customer.
Category page
Follow a similar process on the category page to add content to any category.
Frontend view of categories
CMS page
Front-end view of CMS pages
mail template
Administrators can also leverage the Auto AI content generator to create a variety of email templates.
Note: Admins can also deploy Bagisto Laravel chatbot openAI ChatGPT LLM chatbot to their store for other AI features.
that’s all.Laravel Bagisto AI Content Generator ”. However, if you have any questions regarding the plugin, please contact the Webkul support system.. Also check out our high-quality Bagisto extensions.
Current product version – V1.5.1
Supported framework versions – Bagisto V1.5.x