Open jsalwen opened 6 years ago
@slvnperron I can create a PR for this.
This can be fixed by adding channelId
and options: {}
to raw
https://github.com/botpress/botpress-api.ai/blob/962d4a28b9cb1da2dfd53c86e3cda9a0bdadbaa0/src/index.js#L55-L63
Do you see any problem with this approach?
@jsalwen I think that's reasonable. Ideally we would make it as channel-independent as possible but I guess sometimes it's hard to avoid.
Perhaps check copying channelId if provided would be better (i.e. no platform checking)?
I created a new bot using the Slack and API.AI modules. API.AI module is in
Fulfillment
mode.The following error is returned when the bot tries to send the response to the user in Slack:
This is because the
botpress-slack
is excepting a value forraw.channelId
whenevent.bp.middlewares.sendOutgoing
is called.