Botfuel / botfuel-dialog

Botfuel SDK to build highly conversational chatbots
https://docs.botfuel.io
Other
102 stars 18 forks source link

feat: handle UserMessage with origin option in botfuel-adapter #267

Closed KevinDepuydt closed 5 years ago

KevinDepuydt commented 5 years ago

In the Botfuel adapter, new messages are now handled by building a UserMessage instead of sending the request body to the bot.

These messages have now a options.origin property which have the following format:

...
payload: {
  value: <value>
  options: {
    origin: {
      platform: 'Botfuel Webchat',
      referrer: <the_referrer_url>
    }
  }
}
...
codecov[bot] commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@121f487). Click here to learn what that means. The diff coverage is 9.52%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #267   +/-   ##
=========================================
  Coverage          ?   85.73%           
=========================================
  Files             ?       85           
  Lines             ?     1717           
  Branches          ?      236           
=========================================
  Hits              ?     1472           
  Misses            ?      203           
  Partials          ?       42
Impacted Files Coverage Δ
...ges/botfuel-dialog/src/adapters/botfuel-adapter.js 36.36% <9.52%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 121f487...8d0d508. Read the comment docs.