Back to Top

Guide for Bagisto ChatGPT AI Review Translator

Updated 28 September 2023

Bagisto ChatGPT AI Review Translator Extension is used to translate reviews into the default language of your store. It is built on the Langchain framework, which is a powerful language translation platform.

The AI Translator module uses OpenAI’s API key to translate reviews. This means that the module has access to OpenAI’s large language model, which is one of the most advanced language models in the world.

This allows the module to translate reviews into various languages, including English, French, German, Spanish, Hindi, and more.

Features

  • Bagisto ChatGPT AI Review Translator Extension translates reviews to the selected language of the store.
  • The Translate button only appears if the review is not in the default language of your store.
  • The extension supports multiple languages and provides accurate and understandable translations.
  • Customers can also choose which languages to translate from the store.
  • The extension uses LangChain OpenAI to automate the translation process.
  • ChatGPT AI Review Translator module is easy to configure.

Installation

For the Installation of Bagisto, you can follow the Link.

After the Fresh Installation of the Bagisto ChatGPT AI Review Translator, we need to configure all the information related to the Langchain AI.

Start your headless eCommerce
now.
Find out More

Once that is done, we need to follow the below installation process

Unzip the respective extension zip and then merge the “packages” folder into the project root directory.

Installation-01-

Go to the config/app.php file and add the following line under providers.

Webkul\AITranslator\Providers\AITranslatorServiceProvider::class
Installation code -Bagisto ChatGPT AI Review Translator

Goto composer.json file and add the following line under ‘psr-4’

"Webkul\\AITranslator\\": "packages/Webkul/AITranslator/src"
Installation code -Bagisto ChatGPT AI Review Translator -3

Run the following commands to publish the package:

composer dump-autoload
php artisan optimize
php artisan vendor:publish --force

Press the number before “Webkul\AITranslator\Providers\AITranslatorProvider” and then press enter to publish all assets and configurations.

Generate OpenAI Key – OpenAI Account

The user has to first create an OpenAI account and log in to the OpenAI dashboard as shown in the screenshot.

OpenAI- API for Installation-Bagisto ChatGPT AI Review Translator

Now, the user can click on the Personal option in the upper-right corner. Once click popup appears on the screen, within this popup, users will find the “View API Keys” choice, which they can select to proceed.

openAI

The user is redirected to another page where the Create New Secret Key will be visible as shown in the screenshot.

OpenAI-03

When the user clicks on this button, a pop-up will appear showing the API key. In the pop-up, there will be a “Copy” button that allows the user to easily copy the key to their clipboard.

OpenAI- API for Installation-Bagisto ChatGPT AI Review Translator

The generated key is to be used in the configuration settings section under the Open AI key.

Langchain Configuration

This chatbot is built on the Langchain framework and uses the OpenAI API key to translate reviews.

Setup OpenAI credentials in .env file

<strong>OPENAI_API_KEY=
PINECONE_API_KEY=
</strong>

Note: Create a .env file in the root directory, copy everything from the .env.example, and paste it into the .env file.

Installation

Install the npm dependencies but run the following command

<strong>npm i
</strong>

Run the following command to run the node js server

<strong>npm run dev
</strong>
screenshot_1693976761844

API Documentation for AI Translator

<code><strong>POST /api/translate</strong></code>

Admin Configuration – Bagisto ChatGPT AI Review Translator

In the Bagisto Admin Panel, The Admin goes to the configuration page and enters the API URL and API key provided by OpenAI to make the Review translation work.

Note: You can also check Bagisto AI content generator for AI-driven content for your website like product, category, and CMS page.

Admin Configuration - Bagisto ChatGPT AI Review Translator

Note- Before proceeding, the admin must create multiple backend store views. This step allows the store to support different languages and regions.

You can also check the Bagisto ChatGPT Chatbot module which can improve customer support by answering questions and helping customers to buy products.

View the Translated Review at Storefront

Users visit the storefront and click on a product they’re interested in.

They are redirected to the product page, where they can view details and read product reviews from other customers.

Initially, users see product reviews in the default language of the store.

Customer view-Webkul_Laravel_Bagisto-AI-Review-Translator-Extension_S-02

Customers can select their desired language from the store’s language options.

screenshot_1693984535934

Once users choose their preferred language, the entire store is translated into their selected language.

Webkul_Laravel_Bagisto-AI-Review-Translator-Extension_S-04-png-1120×880-

After the translation, users will see a “Translate” button under each review, but only if the review is not already in the default language of the store.

The review is translated and displayed to the user in their selected local language.

After checking the other reviews customers can checkout and place the order for respective orders.

Webkul_Laravel_Bagisto-AI-Review-Translator-Extension1

Support

That’s all about the “Bagisto ChatGPT AI Review Translator“. However, If you have any queries regarding the plugin, please contact us at Webkul Support System. You may also check our quality Bagisto Extensions.

Current Product Version - v1.5.1

Supported Framework Version - Bagisto v1.5.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content