New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video/Image Not Showing #41
Comments
Update: I used dispatcher.utter_attachment(message) with message = { |
With Rasa Core it must follow the template schema.
|
I was able to send an image by adding it in the templates of the domain file, but I can't send through the custom actions. I changed the value of the message variable in my actions file into this: Then I used the dispatcher to send it, but it still doesn't show the image. I'm not sure if I'm in the right track here. Is it possible to send image/video through the custom actions or it can only be done through the domain file? |
I have encountered the same problem with you, attachment should be part of response. The reality is that it is part of text. I don't know if you have solved this problem. |
Sorry, I got busy... Anyway, it seems that we need the Rasa core output channel of the webchat to send the video. I checked the rasa-addons link where we supposed can get it but I didn't find it there... |
the socketio.py doesn't seem like it supports video tag, so there is a mismatch. |
It's still not working using custom message. This is the video JSON data I sent to the UI:
I did a debug on the UI and it's acknowledging that it received the data as video but it just doesn't show it. Is there a video JSON format that I should follow? |
Got it finally resolved. These are the steps I did: In CollectingDispatcher class, I added this function:
In SocketIOOutput class of the socketio module, I added the following:
In the Dispatcher class of the dispatcher module, I made the following changes:
|
Sorry, above fix caused some issue when dispatching messages other than video attachment. I made changes to the send_custom_message function in socketio instead:
|
Hi there! I'm trying to send a video/image to the chat UI from Rasa but this is what i'm getting:
This is a snippet of my actions.py code:
I have an actions server and my socket server code is on another Python file. If I use the SocketIOOUtput Class, it will ask me for a recipient ID which I'm not sure where to get. I'm pretty new to Python and Rasa. Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: