Im doing bot for school and I need to use custom action to get sub intent of FAQ and get the response from database, but I cant get sub intent.
Im using latest rasa version and I found code on git that might help but it doesnt work
full_intent = (
tracker.latest_message.get("response_selector", {})
.get("faq", {})
.get("full_retrieval_intent")
)
if full_intent:
topic = full_intent.split("/")[1]
else:
topic = None