Custom payloads for custom web chat widget

You’re completely right, but I don’t think you need it in this case, since you’re using the REST channel. So please try just using rest for the channel name.

I did try that, but that always returned the non-channels specific responses. But that makes sense, because my widget does not include any metadata about the fact that it wants to receive the ‘chatwidgets_com’ responses. But even if my widget would include it as metadata, it seems to be ignored currently, I found out after reading this topic Channel specific utterances not working [using rest channel and set the input_channel in post request]. (There’s a feature request for it here: Channel-specific responses for REST channel with using input_channel in post request · Issue #7384 · RasaHQ/rasa · GitHub)

That being said, I managed to get it to work using my custom channel after finding this issue on github: Custom Channels Not Responding with Channel-Specific Responses · Issue #8228 · RasaHQ/rasa · GitHub. I was missing an output class for my channel.

For those interested, here’s my final custom connector chatwidgets.py (5.8 KB). The extra output class is specified at line 173 and it is instantiated at line 126.

Thanks very much for your help Chris!

1 Like