Socket
Socket
Sign inDemoInstall

@builderbot-plugins/shopify

Package Overview
Dependencies
11
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @builderbot-plugins/shopify

An shopify utility for bot-whatsapp


Version published
Maintainers
2
Created

Readme

Source

Shopify Adapter for bot-whatsapp

The shopify adapter using Langchain for bot-whatsapp bot. You can apply this provider into your createProvider function.

Usage

import 'dotenv/config'
import { createBot, MemoryDB, createProvider } from '@bot-whatsapp/bot'
import { createShopifyFlow } from '@builderbot-plugins/shopify'
import { TelegramProvider } from '@builderbot-plugins/telegram'

/*
there three ways for using this plugin below you find the examples for its using

*/

/*
#1 default

you need set this enviroments into your .env file

OPENAI_API_KEY=
SHOPIFY_API_KEY=
SHOPIFY_DOMAIN=
*/
const shopify_flow = createShopifyFlow()

/** -------------------------------------------------------------- */

/*
#2 setting configurations

*/
const configurations = {
  modelName: 'gpt-3.5-turbo-16k',
  temperature: 0,
  openApiKey: 'YOUR_OPENAI_APIKEY',
  shopifyApiKey: 'YOUR_SHOPIFY_APIKEY',
  shopifyDomain: 'YOUR_SHOPIFY_DOMAIN',

}

const shopify_flow = createShopifyFlow(configurations)


/** -------------------------------------------------------------- */


/*
#3 setting configurations and extra flows

*/
const configurations = {
    modelName: 'gpt-3.5-turbo-16k',
    temperature: 0,
    openApiKey: 'YOUR_OPENAI_APIKEY',
    shopifyApiKey: 'YOUR_SHOPIFY_APIKEY',
    shopifyDomain: 'YOUR_SHOPIFY_DOMAIN'
}

const extra { 
  flows: [
      {
          name: YOUR_AGENT_NAME,
          description: YOUR_DESCRIPTION_AGENT,
          flow: YOUR_FLOW,
      },
      {
          name: YOUR_AGENT_NAME,
          description: YOUR_DESCRIPTION_AGENT,
          flow: YOUR_FLOW,
      }
      {
          name: YOUR_AGENT_NAME,
          description: YOUR_DESCRIPTION_AGENT,
          flow: YOUR_FLOW,
      }
    ]
}

const shopify_flow = createShopifyFlow(configurations, extra)

/** -------------------------------------------------------------- */

const main = async () => {
  const provider = createProvider(TelegramProvider, {})

  await createBot({
    database: new MemoryDB(),
    provider,
    flow: shopify_flow,
  })
}

main()

Author

Elimeleth Capuano https://github.com/elimeleth

FAQs

Last updated on 07 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc