Start here · Playground
Edit this page on GitHubPlayground
Edit a flow and talk to it right away. The code runs on the real @builderbot/bot core, the same one you install with pnpm create builderbot, so addKeyword, addAnswer, addAction, capture, state, flowDynamic, fallBack, endFlow, gotoFlow and EVENTS behave exactly like in your bot.
app.js
Flow code@builderbot/bot 1.4.4 · runningimport { addKeyword, createFlow } from '@builderbot/bot'
const welcomeFlow = addKeyword(['hello', 'hi'])
.addAnswer('Ey! welcome')
createFlow([welcomeFlow])Engine log
Today
Write “hi”
Try
How it works
- Pick an example from the documentation or write your own flows. Press Run (or ⌘/Ctrl + Enter) to restart the bot with your code.
- Write like you would in a real project: import from
@builderbot/botand pass your flows tocreateFlow([...]). The playground plugs inMemoryDBand a browser provider instead of WhatsApp. - Chat as a contact. Use the event buttons to send an image, a voice note, a document or a location and trigger
EVENTS.MEDIA,EVENTS.VOICE_NOTE,EVENTS.DOCUMENTorEVENTS.LOCATION. - The engine log shows every message in and out, with its timing,
delayandcapture.
Everything runs in your browser. Nothing is sent to WhatsApp and no server is involved, so provider-specific features (real media download, presence, buttons rendered by WhatsApp) are not available here.