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'
const shopify_flow = createShopifyFlow()
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)
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