botpress-webhook

1.0.1 • Public • Published

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

Keywords

none

Install

npm i botpress-webhook

DownloadsWeekly Downloads

1

Version

1.0.1

License

AGPL-3.0

Last publish

Collaborators

  • allardy
  • michael.masson
  • franklevasseur
  • slvnperron