Return image from actions in Rasa x

Viewed 930

I’m doing like that:

dispatcher.utter_message(image='https://dvtb78sd925mn.cloudfront.net/wp-content/uploads/2018/10/15110630/exemplo-marketing-derelacionamento.png')

But rasa x is not showing the image

2 Answers

We can return an image from a custom action server in RASA-X. I have used the below code to return an image from a custom action server. In actions.py file, use the below statement

dispatcher.utter_message(text="Test Image",image="http://localhost:7000/img/charts/TestImage.png")
return []

RASA-X Version : "0.42.0"

RASA : "2.8.0"

Related