{"id":394230,"date":"2023-08-25T11:18:57","date_gmt":"2023-08-25T11:18:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=394230"},"modified":"2026-10-15T14:25:39","modified_gmt":"2026-10-15T14:25:39","slug":"bagisto-chatbot-using-openai-chatgpt-documentation","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/","title":{"rendered":"Guide for Bagisto Chatbot Using OpenAI ( ChatGPT ) LLM"},"content":{"rendered":"\n<p>The <strong><a href=\"https:\/\/store.webkul.com\/Bagisto.html\">Bagisto Chatbot<\/a><\/strong> module lets shoppers search your catalog, build a cart, and check out in one conversation.<\/p>\n\n\n\n<p>A single agent, built on the Laravel AI SDK, picks the right tool for each question. It also remembers earlier turns in the conversation.<\/p>\n\n\n\n<p>Discover our premium-quality <a href=\"https:\/\/bagisto.com\/en\/extensions\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Bagisto Extensions<\/strong><\/a> to extend and enhance your store.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Requirements of Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bagisto<\/strong>: v2.5.0<\/li>\n\n\n\n<li><strong>PHP<\/strong>: 8.4 or later<\/li>\n\n\n\n<li><strong>Database<\/strong>: MySQL, MariaDB or PostgreSQL<\/li>\n\n\n\n<li><strong>Search<\/strong>: Elasticsearch 8.x, or MariaDB 11.7 or later<\/li>\n\n\n\n<li><strong>MagicAI<\/strong>: installed, with at least one AI provider key<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Features of Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The admin enables the chatbot and picks the AI model under <strong>Configuration&gt;Chatbot&gt;General<\/strong>.<\/li>\n\n\n\n<li>Customers ask about products, prices, and stock in plain words.<\/li>\n\n\n\n<li>Semantic product search runs on Elasticsearch, or natively on the MariaDB VECTOR type with no extra search cluster.<\/li>\n\n\n\n<li>Catalog queries find the cheapest item, the priciest one, a price range, or a product count.<\/li>\n\n\n\n<li>Customers add items to the cart, view it, remove items, and update quantities in the chat.<\/li>\n\n\n\n<li>A full checkout flow saves addresses, picks shipping and payment, and places the order.<\/li>\n\n\n\n<li>Answers come from any AI provider you set up in MagicAI, including OpenAI, Anthropic, Gemini, and Mistral.<\/li>\n\n\n\n<li>Chat memory lets customers ask follow-up questions with no repeats.<\/li>\n\n\n\n<li>Guests keep their chat history with a cookie, and a command clears old history.<\/li>\n\n\n\n<li>Products, categories, and CMS pages stay indexed automatically and in sync.<\/li>\n\n\n\n<li>Every Bagisto product type works: Simple, Virtual, Configurable, Grouped, Bundle, Downloadable, and Booking.<\/li>\n\n\n\n<li>Runs on MySQL, MariaDB, and PostgreSQL, with or without a table prefix, in 22 languages.<\/li>\n\n\n\n<li>Supports Bagisto v2.5.0.<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Installation of Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<p>First, choose a search driver and an AI provider. Then follow the steps below to install the module.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Extract the extension<\/h3>\n\n\n\n<p>Unzip the extension and merge the <strong>packages<\/strong> folder into the root directory of your Bagisto project.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Configure autoloading<\/h3>\n\n\n\n<p>Next, open the <strong>composer.json<\/strong> file and add the following line under &#8216;<strong>psr-4<\/strong>&#8216;.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;Webkul\\\\Chatbot\\\\&quot;: &quot;packages\/Webkul\/Chatbot\/src&quot;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Register the service provider<\/h3>\n\n\n\n<p>Then open the <strong>bootstrap\/providers.php<\/strong> file and add the following line under <strong>Provider<\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">Webkul\\Chatbot\\Providers\\ChatbotServiceProvider::class,<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Complete the setup<\/h3>\n\n\n\n<p>After that, run these commands from the project root.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">composer dump-autoload<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan migrate<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan optimize:clear<\/pre>\n\n\n\n<p>The migration creates a table only for the MariaDB driver, and only on MariaDB 11.7 or newer. On any other database it does nothing, so it is safe to run.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Index existing data<\/h3>\n\n\n\n<p>Finally, index the products, categories, and CMS pages into the active search driver.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index<\/pre>\n\n\n\n<p>You can also index one entity type at a time.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index --type=products<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index --type=categories<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index --type=pages<\/pre>\n\n\n\n<p>To clear the store before indexing, run the command with the fresh option.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index --fresh<\/pre>\n\n\n\n<p>After that, the module indexes new and changed products, categories, and pages through queued jobs. So keep a queue worker running.<\/p>\n\n\n\n<p>Guest conversations build up over time. Therefore, schedule this command to clear old ones, which uses thirty days by default.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:cleanup-guests<\/pre>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Choosing a Search Driver for Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<p>Elasticsearch stays the default. It needs a running Elasticsearch 8.x cluster that Bagisto can reach.<\/p>\n\n\n\n<p>If you do not want a second search service, switch to the MariaDB driver. It keeps vectors in a native VECTOR column and finds the closest ones.<\/p>\n\n\n\n<p>This driver needs MariaDB 11.7 or newer. The admin panel shows the option only when your connection supports it.<\/p>\n\n\n\n<p>Pick the Bagisto Chatbot driver under <strong>Configuration&gt;Chatbot&gt;General<\/strong> in the Search Driver field.<\/p>\n\n\n\n<p>Then reindex your catalog with <strong>chatbot:index &#8211;fresh<\/strong>, because each driver keeps its own store.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Generate OpenAI Key for Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<p>The chatbot works with any AI provider that MagicAI supports. This walkthrough uses OpenAI as an example.<\/p>\n\n\n\n<p>First, create an <a href=\"https:\/\/platform.openai.com\/account\/usage\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">OpenAI account<\/a> and log in to the OpenAI dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp\" alt=\"OpenAI dashboard\" class=\"wp-image-529923\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Next, click the API Keys option in the sidebar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/apikey-2.webp\" alt=\"OpenAI API Keys page\" class=\"wp-image-529935\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/apikey-2.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/apikey-2-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/apikey-2-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/apikey-2-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Then click the <strong>Create New Secret Key<\/strong> button. A pop-up appears to create the key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generate.webp\" alt=\"Create secret key pop-up\" class=\"wp-image-529936\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generate.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generate-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generate-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generate-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After that, copy the key with the Copy button in the pop-up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generated.webp\" alt=\"Generated OpenAI key\" class=\"wp-image-529937\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generated.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generated-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generated-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/generated-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Admin Configuration of Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Add the AI provider key<\/h3>\n\n\n\n<p>Open <strong>Configuration&gt;Magic AI&gt;Providers<\/strong> in the admin panel and paste the key there. This enables the provider for the chatbot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic.webp\" alt=\"Magic AI provider configuration for Bagisto Chatbot\" class=\"wp-image-529942\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Enable the chatbot<\/h3>\n\n\n\n<p>Next, open <strong>Configuration&gt;Chatbot&gt;General<\/strong>. Then turn on <strong>Status<\/strong> to show the chatbot on the storefront.<\/p>\n\n\n\n<p>Also select the <strong>Model<\/strong> and the <strong>Search Driver<\/strong> here. If you leave the model empty, the chatbot uses the MagicAI default.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1508\" height=\"1000\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig.webp\" alt=\"Bagisto Chatbot configuration in the admin panel\" class=\"wp-image-529946\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig.webp 1508w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig-300x199.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig-1200x796.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig-250x166.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig-768x509.webp 768w\" sizes=\"(max-width: 1508px) 100vw, 1508px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Set the chat window<\/h3>\n\n\n\n<p>You can also set the chat window title and the bot avatar in the same section.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Storefront Workflow of Bagisto Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<p>First, shoppers click the Bagisto Chatbot icon on the storefront.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1.webp\" alt=\"Bagisto Chatbot icon on the storefront\" class=\"wp-image-529948\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>The chatbot greets the shopper, and the shopper then states the need in their own words.<\/p>\n\n\n\n<p>The agent picks the right tool for the question: product search, catalog lookup, cart, or checkout. Then it answers.<\/p>\n\n\n\n<p>Follow-up questions keep the earlier context, so shoppers refine results fast.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2.webp\" alt=\"Bagisto Chatbot conversation on the storefront\" class=\"wp-image-529951\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>When a shopper is ready, they add a product to the cart and give an address. After that, they choose shipping and payment, and confirm the order in the chat.<\/p>\n\n\n\n<p>The chatbot always asks you to confirm before it places an order.<\/p>\n\n\n\n<p>Shoppers can still open a product link and check out on the full product page.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Support<\/h3>\n<\/div><\/div>\n\n\n\n<p>So, that was a bit about the <strong>Bagisto Chatbot<\/strong> extension. For any queries, contact us at the <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">Webkul Support System<\/a>.<\/p>\n\n\n\n<p>You can also add an AI shopping assistant to your <a href=\"https:\/\/bagisto.com\/en\/\">Bagisto Laravel E-commerce<\/a> platform.<\/p>\n\n\n\n<p>You may also check our quality <a href=\"https:\/\/store.webkul.com\/Bagisto.html\">Bagisto Extensions<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>The Bagisto Chatbot module lets shoppers search your catalog, build a cart, and check out in one conversation. A single agent, built on the Laravel AI SDK, picks the right tool for each question. It also remembers earlier turns in the conversation. Discover our premium-quality Bagisto Extensions to extend and enhance your store. First, choose <a href=\"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":491,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8396],"tags":[],"class_list":["post-394230","post","type-post","status-publish","format-standard","hentry","category-bagisto"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT<\/title>\n<meta name=\"description\" content=\"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT\" \/>\n<meta property=\"og:description\" content=\"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-25T11:18:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-15T14:25:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp\" \/>\n<meta name=\"author\" content=\"Priyanshi Goyal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Priyanshi Goyal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\"},\"author\":{\"name\":\"Priyanshi Goyal\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#\\\/schema\\\/person\\\/009004c1b16791f560a54d753deb8a6f\"},\"headline\":\"Guide for Bagisto Chatbot Using OpenAI ( ChatGPT ) LLM\",\"datePublished\":\"2023-08-25T11:18:57+00:00\",\"dateModified\":\"2026-10-15T14:25:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\"},\"wordCount\":892,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/dashboard.webp\",\"articleSection\":[\"Bagisto\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\",\"url\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\",\"name\":\"User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/dashboard.webp\",\"datePublished\":\"2023-08-25T11:18:57+00:00\",\"dateModified\":\"2026-10-15T14:25:39+00:00\",\"description\":\"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdnblog.webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/dashboard.webp\",\"contentUrl\":\"https:\\\/\\\/cdnblog.webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/dashboard.webp\",\"width\":1120,\"height\":880},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/webkul.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guide for Bagisto Chatbot Using OpenAI ( ChatGPT ) LLM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/webkul.com\\\/blog\\\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/webkul.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\\\/\\\/webkul.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdnblog.webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\\\/\\\/cdnblog.webkul.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webkul\\\/\",\"https:\\\/\\\/x.com\\\/webkul\",\"https:\\\/\\\/www.instagram.com\\\/webkul\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webkul\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/webkul\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/#\\\/schema\\\/person\\\/009004c1b16791f560a54d753deb8a6f\",\"name\":\"Priyanshi Goyal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Priyanshi Goyal\"},\"url\":\"https:\\\/\\\/webkul.com\\\/blog\\\/author\\\/priyanshigoyal-ba548\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT","description":"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/","og_locale":"en_US","og_type":"article","og_title":"User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT","og_description":"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.","og_url":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-08-25T11:18:57+00:00","article_modified_time":"2026-10-15T14:25:39+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp","type":"","width":"","height":""}],"author":"Priyanshi Goyal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Priyanshi Goyal","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/"},"author":{"name":"Priyanshi Goyal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/009004c1b16791f560a54d753deb8a6f"},"headline":"Guide for Bagisto Chatbot Using OpenAI ( ChatGPT ) LLM","datePublished":"2023-08-25T11:18:57+00:00","dateModified":"2026-10-15T14:25:39+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/"},"wordCount":892,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp","articleSection":["Bagisto"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/","url":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/","name":"User Guide for Laravel Bagisto Chatbot Using OpenAI ChatGPT","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp","datePublished":"2023-08-25T11:18:57+00:00","dateModified":"2026-10-15T14:25:39+00:00","description":"Documentation of Bagisto Chatbot Using OpenAI shows how to use the chatbot at the store to answer about store products via friendly chat.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp","width":1120,"height":880},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Guide for Bagisto Chatbot Using OpenAI ( ChatGPT ) LLM"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/009004c1b16791f560a54d753deb8a6f","name":"Priyanshi Goyal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cfb8e1d31f507e79b5ad2f798f22cb84a0c0ca85a0c202d6da89b645f81f96af?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Priyanshi Goyal"},"url":"https:\/\/webkul.com\/blog\/author\/priyanshigoyal-ba548\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/394230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/491"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=394230"}],"version-history":[{"count":34,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/394230\/revisions"}],"predecessor-version":[{"id":560987,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/394230\/revisions\/560987"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=394230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=394230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=394230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}