trying to make the chatbot respond with a video at a specific input, but keep getting this error TypeError: can only concatenate str (not “dict”) to str
this is a link to my rasa directory show the problems.
Additionally here is the code of interest action=> acton.py from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_intro_show_video"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
msg = { "type": "video", "payload": { "title": "Link name", "src": "https://www.youtube.com/watch?v=6IeAiaPNw7s" } }
dispatcher.utter_message(text="Check this video: ",attachment=msg)
return []
domain.py
utter_winter_byYe:
- text: “why not present Dr.Livesey” attachment: { “type”:“video”, “payload”:{ “src”: “Doctor Livesey Chad Walk (1 Hour Loop) | Ghostface Playa - Why Not - YouTube” } }
the goal is have the phonk walk video produce base on the response walk but I get the error
any help is great apprecated.