(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[458],{1465:function(s,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/examples/ecommerce",function(){return n(4600)}])},4600:function(s,e,n){"use strict";n.r(e),n.d(e,{__toc:function(){return a}});var o=n(5893),i=n(2673),r=n(3393),l=n(8426);n(9128);var t=n(2643);let a=[{depth:4,value:"Example",id:"example"}];function _createMdxContent(s){let e=Object.assign({h1:"h1",p:"p",h4:"h4",ul:"ul",li:"li",a:"a",pre:"pre",code:"code",span:"span",blockquote:"blockquote"},(0,t.a)(),s.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h1,{children:"E-Commerce Whatsapp Bot"}),"\n",(0,o.jsx)(e.p,{children:"One popular use case for LLMs and RAG in B2B is a retrieval-based chatbot for e-commerce that helps customers find related products in a shop and answer their questions about the products."}),"\n",(0,o.jsx)(e.p,{children:"HyperChat™ can ingest structured databases that define such shop catalogs, run retrieval based on customer queries, and respond with the database element representing that product (e.g, JSON) to enable integrations with platforms like Whatsapp and Slack."}),"\n",(0,o.jsx)(e.p,{children:"An example collection is provided here so that you can experience chatting with the bot to search the catalog get information about the products."}),"\n",(0,o.jsx)(e.h4,{id:"example",children:"Example"}),"\n",(0,o.jsx)(e.p,{children:"Consider the following 5 JSON files that describe products in the catalog of a hypothetical shop that sells skincare products:"}),"\n",(0,o.jsxs)(e.ul,{children:["\n",(0,o.jsx)(e.li,{children:(0,o.jsx)(e.a,{href:"https://docs.hyperbee.ai/json/radianceboost-serum.json",children:"RadianceBoost Skin Serum 30 mL.json"})}),"\n",(0,o.jsx)(e.li,{children:(0,o.jsx)(e.a,{href:"https://docs.hyperbee.ai/json/purebalance-gel.json",children:"PureBalance Hydrating Gel 50 mL.json"})}),"\n",(0,o.jsx)(e.li,{children:(0,o.jsx)(e.a,{href:"https://docs.hyperbee.ai/json/glowmax-cream.json",children:"GlowMax Moisturizing Cream 50 mL.json"})}),"\n",(0,o.jsx)(e.li,{children:(0,o.jsx)(e.a,{href:"https://docs.hyperbee.ai/json/dermacare-cream.json",children:"DermaCare Soothing Cream 30 mL.json"})}),"\n",(0,o.jsx)(e.li,{children:(0,o.jsx)(e.a,{href:"https://docs.hyperbee.ai/json/balancehydra-cream.json",children:"BalanceHydra Moisture Cream 50 mL.json"})}),"\n"]}),"\n",(0,o.jsx)(e.p,{children:'The following is an example script for chatting with this Collection using our REST APIs over Python. The script appends the referred retrieved products to the message as "Sources" and writes the JSON files for the products to local files, simulating a scenario in which a platform integration might take place (i.e., the platform integration component can read the JSON and transform it for the platform as needed to display the data).'}),"\n",(0,o.jsx)(e.pre,{"data-language":"python","data-theme":"default",children:(0,o.jsxs)(e.code,{"data-language":"python","data-theme":"default",children:[(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" time"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" os"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" requests"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" json"})]}),"\n",(0,o.jsx)(e.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"namespace_id "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"81870dba-88c8-4d6f-95ad-3001a53d6211"'})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"questions "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ["})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"   "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"I have very dry skin, especially in the winter. Can you recommend a moisturizer that will give me long-lasting hydration?"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"   "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"I struggle with oily skin and frequent breakouts. Do you have a product that can help control oil without clogging my pores?"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"   "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"I have combination skin, and I need a face cream that won\'t be too heavy but still provides enough hydration. What do you recommend?"'})]}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"for"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" q "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"in"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" questions"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"="'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"20"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Question: "'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", q, "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"\\n"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    headers   "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"{"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Content-Type"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"application/json"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Authorization"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"   "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Bearer "'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"os"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"environ"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"HYPERBEE_API_KEY"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"]}"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    json_data "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"{"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"namespace"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"       namespace_id"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"model"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"           "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"hyperchat"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"optimization"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"premium"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"thread_message"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  q"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"stream"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"          "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"False"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                 "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"max_num_results"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"2"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-comment)"},children:"# arbitrary choice"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"}"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    response      "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" requests"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"post"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"https://api-rag.hyperbee.ai/v1/chat/completions"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", headers"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"headers, json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"json_data)"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    response_json "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"()"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    thread_id     "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"thread_id"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"None"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    answer        "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"choices"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"]"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"message"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"content"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Thread ID:"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", thread_id,"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"\\n"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Answer:   "'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", answer,"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"\\n"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "})}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    files "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"files"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", [])"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    refstr "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"len"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(files)"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:">"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"        refstr "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"Sources:\\n"'})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"        "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"for"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" i"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" file "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"in"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"enumerate"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(files):"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"            refstr "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"f"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"{"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"i "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"1}"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:") "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"{"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"file"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"split"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"', url:'"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"}"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"\\n"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"'})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(refstr)"})]}),"\n",(0,o.jsx)(e.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"additional_outputs"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"in"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"and"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"additional_outputs"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"]:"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"        additional_output "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" response_json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"additional_outputs"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"]."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"get"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"contents"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"No additional outputs"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"})]}),"\n",(0,o.jsx)(e.span,{className:"line",children:" "}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    matched_products "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" [] "})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"for"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" f "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"in"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" files"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"        "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"for"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ao "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"in"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" additional_output"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"            "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(f"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"split"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"("}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"', url:'"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"0"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"] "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"loads"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(ao)"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"item_link"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"])"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                json_filename "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" json"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"."}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"loads"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(ao)"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"details"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]["}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"product_name"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"with"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"open"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(json_filename "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'".json"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:", "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"w"'}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:")"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"as"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ff"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:":"})]}),"\n",(0,o.jsxs)(e.span,{className:"line",children:[(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"                    "}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"print"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"(ao, file"}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,o.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:"ff)"})]})]})}),"\n",(0,o.jsxs)(e.blockquote,{children:["\n",(0,o.jsx)(e.p,{children:"Hint: the namespace used in this example is public, you can use the Collection ID as is in your examples"}),"\n"]}),"\n",(0,o.jsx)(e.p,{children:"The output is given in the following, where the script also saves the database JSON files of the referenced products from the catalog to local files for the answer of each question:"}),"\n",(0,o.jsx)(e.pre,{"data-language":"text","data-theme":"default",children:(0,o.jsxs)(e.code,{"data-language":"text","data-theme":"default",children:[(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"===================="})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Question:  I have very dry skin, especially in the winter. Can you recommend a moisturizer that will give me long-lasting hydration? "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Thread ID: 6716143b982213326e5ca3a9 "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Answer:    For very dry skin, especially in the winter, I recommend the **GlowMax Moisturizing Cream 50 mL**. This rich moisturizer is designed specifically for dry skin and deeply hydrates while restoring the skin’s barrier with shea butter and hyaluronic acid. It provides long-lasting hydration and leaves the skin feeling soft and smooth."})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"You can find more details and purchase it here. "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Sources:"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"1) https://example.com/product-hydration-cream"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"===================="})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Question:  I struggle with oily skin and frequent breakouts. Do you have a product that can help control oil without clogging my pores? "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Thread ID: 67161460f5acc90d1dd710b3 "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:'Answer:    For controlling oil and preventing breakouts without clogging your pores, I recommend the "PureBalance Hydrating Gel 50 mL." This lightweight gel helps control shine and reduce sebum levels with ingredients like tea tree oil and salicylic acid, which are known for their effectiveness in preventing breakouts and keeping the skin clear. You can find more details here. '})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Sources:"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"1) https://example.com/product-skin-balancing-gel"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"===================="})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Question:  I have combination skin, and I need a face cream that won't be too heavy but still provides enough hydration. What do you recommend? "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Thread ID: 67161464982213326e5ca3ac "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Answer:    I recommend the **BalanceHydra Moisture Cream 50 mL**. This moisturizing cream is ideal for normal to combination skin, balancing hydration levels with aloe vera and jojoba oil. It provides moisture to dry areas while keeping oily regions under control, leaving the skin fresh and non-greasy."})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"You can find more details here. "})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"}})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"Sources:"})}),"\n",(0,o.jsx)(e.span,{className:"line",children:(0,o.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"1) https://example.com/product-skin-hydration-cream"})})]})})]})}let c={MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,t.a)(),s.components);return e?(0,o.jsx)(e,{...s,children:(0,o.jsx)(_createMdxContent,{...s})}):_createMdxContent(s)},pageOpts:{filePath:"pages/examples/ecommerce.mdx",route:"/examples/ecommerce",timestamp:1729517707e3,pageMap:[{kind:"Meta",data:{index:"About HyperChat™",quickstart:"Quickstart",models:{title:"Models ↗",href:"https://platform.hyperbee.ai/",newWindow:!0},api_and_libraries:"API & Libraries",examples:"Examples",perfguide:"Performance Guide",technology:"Technology",Platform:{title:"Platform ↗",type:"page",href:"https://platform.hyperbee.ai/",newWindow:!0},Chat:{title:"Chat ↗",type:"page",href:"https://chat.hyperbee.ai/",newWindow:!0}}},{kind:"Folder",name:"api_and_libraries",route:"/api_and_libraries",children:[{kind:"Meta",data:{restapi:"REST API",nodejs_client:"node.js",python_client:"Python",integration:"Integration"}},{kind:"MdxPage",name:"integration",route:"/api_and_libraries/integration"},{kind:"MdxPage",name:"nodejs_client",route:"/api_and_libraries/nodejs_client"},{kind:"MdxPage",name:"python_client",route:"/api_and_libraries/python_client"},{kind:"MdxPage",name:"restapi",route:"/api_and_libraries/restapi"}]},{kind:"Folder",name:"examples",route:"/examples",children:[{kind:"Meta",data:{chatbot:"Chatbot",ecommerce:"E-Commerce",simpleretrieval:"Retrieval Bot",styledgeneration:"Styled Generation"}},{kind:"MdxPage",name:"chatbot",route:"/examples/chatbot"},{kind:"MdxPage",name:"ecommerce",route:"/examples/ecommerce"},{kind:"MdxPage",name:"simpleretrieval",route:"/examples/simpleretrieval"},{kind:"MdxPage",name:"styledgeneration",route:"/examples/styledgeneration"}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"MdxPage",name:"models",route:"/models"},{kind:"Folder",name:"perfguide",route:"/perfguide",children:[{kind:"Meta",data:{optimizationmodes:"Optimization Modes",prompts:"Prompting",tips4collections:"Tips for Collections"}},{kind:"MdxPage",name:"optimizationmodes",route:"/perfguide/optimizationmodes"},{kind:"MdxPage",name:"prompts",route:"/perfguide/prompts"},{kind:"MdxPage",name:"tips4collections",route:"/perfguide/tips4collections"}]},{kind:"MdxPage",name:"quickstart",route:"/quickstart"},{kind:"MdxPage",name:"technology",route:"/technology"}],flexsearch:{codeblocks:!0},title:"E-Commerce Whatsapp Bot",headings:a},pageNextRoute:"/examples/ecommerce",nextraLayout:r.ZP,themeConfig:l.Z};e.default=(0,i.j)(c)},8426:function(s,e,n){"use strict";var o=n(5893);n(7294);let i={logo:(0,o.jsx)("img",{className:"dark-logo",src:"/img/logo.svg",alt:"Hyperbee",style:{height:"28px"}}),docsRepositoryBase:"https://www.hyperbee.ai/",head:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",href:"/img/new-favicon-32x32.png"}),(0,o.jsx)("meta",{property:"og:title",content:"HyperbeeAI Docs"}),(0,o.jsx)("meta",{property:"og:description",content:"Explore HyperChat™ developer resources, API docs, examples and more."}),(0,o.jsx)("meta",{property:"og:url",content:"https://docs.hyperbee.ai"})]}),footer:{text:(0,o.jsxs)("span",{children:[(0,o.jsxs)("a",{href:"https://www.hyperbee.ai/",target:"_blank",children:["HyperbeeAI ",new Date().getFullYear()," \xa9"," "]}),"."]})},useNextSeoProps:()=>({titleTemplate:"%s - HyperbeeAI Docs"}),darkMode:!1,nextThemes:{forcedTheme:"dark"},toc:{backToTop:!0},primaryHue:{light:83,dark:83},primarySaturation:{light:26,dark:26},editLink:{text:""},feedback:{content:"",labels:""}};e.Z=i},5789:function(){}},function(s){s.O(0,[774,890,888,179],function(){return s(s.s=1465)}),_N_E=s.O()}]);