Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including botpress-webhook with all npm packages installed. Try it out:

var botpressWebhook = require("botpress-webhook")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

botpress-webhook v1.0.1

Create and manage webhooks to your bot

botpress-webhook

Provides an interface and APIs to manage webhooks to your bot.

Quick start

From the module page you can create and delete platforms. A platform is an http endpoint where you can post to.

For example you can create a new "test" platform.

The endpoint will be:

https://<hostname>:<port>/api/botpress-webhook/webhook/test

You can now post to it:

curl -H "Content-Type: application/json" -X POST -d '{"payload":"value"}' https://<hostname>:<port>/api/botpress-webhook/webhook/test?text=Cheers&type=curl

And an incoming message is sent to be heard:

{  
   platform:'test',
   type:'curl',
   text:'Cheers',
   raw:{  
      payload:'value'
   }
}

Community

There's a Slack community where you are welcome to join us, ask any question and even help others.

Get an invite and join us now! 👉https://slack.botpress.io

License

botpress-webhook is licensed under AGPL-3.0

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free