1.11.0 • Published 3 years ago
smbpnode v1.11.0
Botpress node client
Backend botpress client for Node.js
Installation
npm install botpress
or yarn add botpress
Usage
import { Botpress } from 'botpress'
const bp = new Botpress('http://YOUR_BOTPRESS_URL', 'YOUR_BOTPRESS_API_KEY')
const bot = bp.forBot('YOUR_BOT_ID')
const conversation = await bp.conversations.create('test-user')
const message = await bot.messages.send(conversation.id, bot.render.text('Hello I am a bot!'))