
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@builderbot-plugins/openai-agents
Advanced tools
import "dotenv/config"
import {
createBot,
createProvider,
createFlow,
} from "@bot-whatsapp/bot";
import BaileysProvider from "@bot-whatsapp/provider/baileys";
import MockAdapter from "@bot-whatsapp/database/mock";
import welcomeFlow from "./flows/welcome.flow";
import vendedorFlow from './flows/vendedor.flow';
import expertoFlow from './flows/experto.flow';
import pagarFlow from './flows/pagar.flow';
import {init} from '@builderbot-plugins/openai-agents';
import ServerAPI from './http';
/**
* Configuracion de Plugin
*/
const employeesAddonConfig = {
model: "gpt-3.5-turbo-16k",
temperature: 0,
apiKey: process.env.OPENAI_API_KEY,
};
const employeesAddon = init(employeesAddonConfig);
employeesAddon.employees([
{
name: "EMPLEADO_VENDEDOR",
description:
"Soy Rob el vendedor amable encargado de atentender si tienes intencion de comprar o interesado en algun producto, mis respuestas son breves.",
flow: vendedorFlow,
},
{
name: "EMPLEADO_EXPERTO",
description:
"Saludos, mi nombre es Leifer.Soy el engargado especializado en resolver tus dudas sobre nuestro curso de chatbot, el cual está desarrollado con Node.js y JavaScript. Este curso está diseñado para facilitar la automatización de ventas en tu negocio. Te proporcionaré respuestas concisas y directas para maximizar tu entendimiento.",
flow: expertoFlow,
},
{
name: "EMPLEADO_PAGAR",
description:
"Saludos, mi nombre es Juan encargado de generar los links de pagos necesarios cuando un usuario quiera hacer la recarga de puntos a la plataforma de cursos.",
flow: pagarFlow,
}
])
/**
*
*/
const main = async () => {
const adapterDB = new MockAdapter();
const adapterFlow = createFlow([
welcomeFlow,
vendedorFlow,
expertoFlow,
pagarFlow
]);
const adapterProvider = createProvider(BaileysProvider);
const httpServer = new ServerAPI(adapterProvider, adapterDB)
const configBot = {
flow: adapterFlow,
provider: adapterProvider,
database: adapterDB,
}
const configExtra = {
extensions:{
employeesAddon
}
}
await createBot(configBot,configExtra);
httpServer.start()
};
main();
Elimeleth Capuano https://github.com/elimeleth
FAQs
An Openai plugin for createbots
The npm package @builderbot-plugins/openai-agents receives a total of 31 weekly downloads. As such, @builderbot-plugins/openai-agents popularity was classified as not popular.
We found that @builderbot-plugins/openai-agents demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.