{"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-09-18T08:35:00","modified_gmt":"2026-09-18T08:35:00","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>Bagisto Chatbot<\/strong> module lets shoppers search your catalog, build a cart, and check out in one conversation, no page hunting required.<\/p>\n\n\n\n<p>A single agent, built on the Laravel AI SDK, picks the right tool per question and remembers earlier turns in the conversation.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Admin can enable or disable the chatbot and pick its AI model from Configuration &gt; Chatbot &gt; General &gt; Settings.<\/li>\n\n\n\n<li>Customers can ask about products, pricing, availability, and catalog details to receive instant responses.<\/li>\n\n\n\n<li>Semantic product search runs on Elasticsearch vector search or, new in this release, MariaDB&#8217;s native VECTOR type, no separate search cluster required.<\/li>\n\n\n\n<li>Structured catalog queries cover cheapest or most expensive product, price range, stock availability, and product count.<\/li>\n\n\n\n<li>Customers can add items to cart, view the cart, remove items, and update quantities directly from the chat.<\/li>\n\n\n\n<li>A full checkout flow saves addresses, picks shipping and payment methods, and places the order, all without leaving the conversation.<\/li>\n\n\n\n<li>Conversational responses come from the AI provider configured through MagicAI, including OpenAI, Anthropic, Gemini, and Mistral.<\/li>\n\n\n\n<li>Multi-turn conversation memory lets customers ask natural follow-up questions without repeating context.<\/li>\n\n\n\n<li>Guest shoppers keep their conversation history too, tracked by a long-lived cookie, and old guest history can be cleaned up on a schedule.<\/li>\n\n\n\n<li>Products, categories, and CMS pages are indexed automatically and kept in sync whenever they change.<\/li>\n\n\n\n<li>Works with every Bagisto product type: Simple, Virtual, Configurable, Grouped, Bundle, Downloadable, and Booking.<\/li>\n\n\n\n<li>Compatible with Bagisto v2.4.11.<\/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<\/h3>\n<\/div><\/div>\n\n\n\n<p>After installing the <strong>Bagisto Chatbot<\/strong>, configure a search driver, Elasticsearch or MariaDB, and an AI provider. Then follow the steps below.<\/p>\n\n\n\n<p><p><strong>Step 1: Extract the Extension<\/strong><\/p><\/p>\n\n\n\n<p><p>Unzip the extension and merge the <strong>packages<\/strong> folder into the root directory of your Bagisto project.<\/p><\/p>\n\n\n\n<p><p><strong>Step 2: Configure Autoloading<\/strong>Open the <strong>composer.json<\/strong> file and add the following line under the <strong>psr-4<\/strong> section.<\/p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;Webkul\\\\Chatbot\\\\&quot;: &quot;packages\/Webkul\/Chatbot\/src&quot;<\/pre>\n\n\n\n<p><p><strong>Step 3: Register the Service Provider<\/strong>Open the <strong>bootstrap\/providers.php<\/strong> file and add the following provider to the array.<\/p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">Webkul\\Chatbot\\Providers\\ChatbotServiceProvider::class,<\/pre>\n\n\n\n<p><strong>Step 4: Complete the Setup<\/strong><\/p>\n\n\n\n<p>composer dump-autoload<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan migrate<\/pre>\n\n\n\n<p>The migration only creates a table for the MariaDB driver, and only when the connection is MariaDB 11.7 or newer.<\/p>\n\n\n\n<p>On any other database it does nothing, so it is safe to run either way.<\/p>\n\n\n\n<p><p><strong>Step 5: Index Existing Data<\/strong>After installation, index the products, categories, and CMS pages into the active search driver.<\/p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index<\/pre>\n\n\n\n<p>The chatbot now indexes your catalog data and automatically updates the index whenever products, categories, or CMS pages change.<\/p>\n\n\n\n<p>You can also index specific entity types.<\/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 drop and recreate the index before indexing, required after mapping changes, run this instead.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php artisan chatbot:index --fresh<\/pre>\n\n\n\n<p>New products, categories, and pages are indexed automatically through event listeners whenever they are created or updated.<\/p>\n\n\n\n<p>Guest conversations build up over time, so schedule this command to clear out old ones, 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: Elasticsearch or MariaDB<\/h3>\n<\/div><\/div>\n\n\n\n<p>Elasticsearch remains the default and needs a running Elasticsearch 8.x cluster reachable from Bagisto.<\/p>\n\n\n\n<p>If you would rather avoid running a separate search service, switch to the MariaDB driver instead.<\/p>\n\n\n\n<p>It stores vectors in a native VECTOR column and searches them with cosine distance, right inside your existing database.<\/p>\n\n\n\n<p>MariaDB support needs version 11.7 or newer.<\/p>\n\n\n\n<p>The admin panel only shows the MariaDB option when your connection actually supports it, so you cannot pick a driver that would fail at runtime.<\/p>\n\n\n\n<p>Pick the driver from Configuration &gt; Chatbot &gt; General &gt; Settings &gt; Search Driver.<\/p>\n\n\n\n<p>Then reindex your catalog with <strong>chatbot:index &#8211;fresh<\/strong>, since each driver keeps its own separate 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 &#8211; OpenAI Account<\/h3>\n<\/div><\/div>\n\n\n\n<p>The chatbot works with any AI provider supported by MagicAI. This walkthrough uses OpenAI as an example.<\/p>\n\n\n\n<p>The user has to first create an&nbsp;<a href=\"https:\/\/platform.openai.com\/account\/usage\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">OpenAI account<\/a>&nbsp;and log in to the OpenAI dashboard as shown in the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-duotone-unset-1\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/dashboard.webp\" alt=\"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>Now, the user can click on the API Keys option located 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=\"API Keys\" 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>Now user need to click on <strong>Create New Secret Key<\/strong> button as shown in the screenshot. 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\" 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>In the pop-up, there will be a &#8220;Copy&#8221; button that allows the user to easily copy the key to their clipboard.<\/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 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<p>The generated key goes into the configuration settings section under the OpenAI key.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Admin Configuration of the AI Chatbot<\/h3>\n<\/div><\/div>\n\n\n\n<p>After generating the OpenAI API key, add it in the Bagisto admin panel under <strong>Configuration &gt; Magic AI &gt; Providers<\/strong>.<\/p>\n\n\n\n<p>Paste the key there to enable the OpenAI provider for the chatbot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-duotone-unset-2\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/magic.webp\" alt=\"API Configuration\" 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<p>After configuring the API key, go to <strong>Configuration &gt; Chatbot &gt; General<\/strong> in the admin panel.<\/p>\n\n\n\n<p>Enable <strong>Status<\/strong> to activate the chatbot on the storefront and select the <strong>AI Model<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-duotone-unset-3\"><img decoding=\"async\" width=\"1508\" height=\"1000\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/chatbotconfig.webp\" alt=\"Configuration\" 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<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Storefront Workflow: Search, Cart, and Checkout in Chat<\/h3>\n<\/div><\/div>\n\n\n\n<p>Shoppers click the chat icon on the storefront to get started.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-duotone-unset-4\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store1.webp\" alt=\"Storefront chatbot icon\" 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 asks how it can help, then the shopper states what they 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, and answers based on the shopper&#8217;s needs.<\/p>\n\n\n\n<p>Follow-up questions carry the earlier context automatically, so shoppers can refine results without repeating themselves.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full wp-duotone-unset-5\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/store2.webp\" alt=\"Storefront chatbot\" 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 can add a product to the cart, provide an address, choose shipping and payment, and confirm the order, all inside the chat.<\/p>\n\n\n\n<p>Clicking a product link still takes shoppers to the full product page whenever they want to check out from there instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"support\">Support<\/h3>\n\n\n\n<p>That is all about the&nbsp;<strong>Bagisto Chatbot<\/strong> extension.&nbsp;If you have any queries regarding the module, please contact us at&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">Webkul Support System<\/a><strong>.<\/strong><\/p>\n\n\n\n<p>You can add an AI shopping assistant to your <a href=\"https:\/\/bagisto.com\/en\/\">Bagisto Laravel E-commerce<\/a> platform as well.<\/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","protected":false},"excerpt":{"rendered":"<p>The Bagisto Chatbot module lets shoppers search your catalog, build a cart, and check out in one conversation, no page hunting required. A single agent, built on the Laravel AI SDK, picks the right tool per question and remembers earlier turns in the conversation. After installing the Bagisto Chatbot, configure a search driver, Elasticsearch or <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-09-18T08:35:00+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-09-18T08:35:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/webkul.com\\\/blog\\\/bagisto-chatbot-using-openai-chatgpt-documentation\\\/\"},\"wordCount\":936,\"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-09-18T08:35:00+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-09-18T08:35:00+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-09-18T08:35:00+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/bagisto-chatbot-using-openai-chatgpt-documentation\/"},"wordCount":936,"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-09-18T08:35:00+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":33,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/394230\/revisions"}],"predecessor-version":[{"id":558566,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/394230\/revisions\/558566"}],"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}]}}