Hi @Aashay1, sorry for the late reply, I have updated the socket.io
channel for extracting the customData
that you can send from the rasa-webchat, just follow the below steps and it will work:
Step1: Just add the socketChannel.py
file from this repository to your project :
https://github.com/JiteshGaikwad/socketChannel_RasaBot/blob/master/socketChannel.py
Step2: Now register the above channel in your credentials.py
file as mentioned in this repo:
Step3: Now in the bot-ui i.e rasa-webchat
, add the customData that you want to send as mentioned here:
GitHub - botfront/rasa-webchat: A feature-rich chat widget for Rasa and Botfront
Step4: Now if you want to extract the customData
, just write down the below code in your actions.py file:
I have written the function that extracts the metadata from the tracker, you can get it here:
Note: I have just updated the socket.io
channel’s handle_message
method to extract the customData
as metadata
:
Let me know if this helps you