botmaster-fulfill-actions

1.1.2 • Public • Published

Build Status Coverage Status

Botmaster actions

Useful actions for botmaster fulfill http://botmasterai.com/).

Enable chatbots to perform actions on Node.js.

Find the documentation at the main botmaster website: http://botmasterai.com/middlewares/fulfill/

Reference

pause

Break text up with a separate messages pausing before each one

<pause wait=2000 />

evaluated in series after evaluating all text / xml before removed controller sends text before and then waits before allowing rest of text/xml to be evaluated if the bot implements typing a typing status is sent between pauses.

Parameters

  • wait {String} how long to wait in ms between each defaults to 1000

greet

Greet users with a greeting that reflects the time of day

<greet />
<greet tz='America/New_York' lang='es' />

Outputs based on the detected system language

English (en)

  • between 4 am and 12 pm say "Good morning"
  • between 12 pm and 5pm say "Good afternoon"
  • between 5 pm and 4am say "Good evening"

Spanish (es)

  • between 4 am and 12 pm say "Buenos dias"
  • between 12 pm and 8pm say "Buenas tardes"
  • between 8 pm and 4am say "Buenas noches"

Dutch (nl)

  • between 4 am and 12 pm say "Goedemorgen"
  • between 12 pm and 6 pm say "Goedemiddag"
  • between 6 pm and 12 am say "Goedenavond"
  • between 12 am and 4 am say "Goedenacht"

Parameters

  • tz String Which timezone to use for the time-based greeting. Defaults to GMT. To see available options see http://momentjs.com/timezone/
  • lang String Which language to use. Defaults to system locale setting

Package Sidebar

Install

npm i botmaster-fulfill-actions

Weekly Downloads

111

Version

1.1.2

License

MIT

Last publish

Collaborators

  • jwickens